Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign up'console' is undefined with Qunit in IE 9 #212
Comments
|
https://stackoverflow.com/a/14714140 Secondly, I learned that |
|
Using https://github.com/paulmillr/console-polyfill I can workaround this problem... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Expected Behavior
QUnit test suite with 1 simple test passes successfully.
Actual Behavior
QUnit test suite with 1 simple test fails with global failure due to error `'console' is undefined (see screenshot).
Steps to Reproduce the Problem
index.html{ "test_framework" : "qunit", "test_path": [ "index.html" ], "exit_with_fail": true, "browsers": [ "ie_9" ] }node_modules/.bin/browserstack-runnerPlatform details
0.9.0Details
See screenshot:
The error points to:
browserstack-runner/lib/_patch/browserstack.js
Line 40 in 52b23f0
If I remember IE pecularities correctly this might be because you cannot do
var x = foo || ...whenfoohas never been set up before, i.e. is very much indeed undefined. A test liketypeof foo == 'undefined'might work better/be needed. This could be IE 6-8 knowledge though.PS: also, the runner will just hang until it times out...