Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 476350

Summary: Spurious test failures on IE
Product: [ECD] Orion Reporter: Michael Rennie <Michael_Rennie>
Component: JS ToolsAssignee: Michael Rennie <Michael_Rennie>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 10.0   
Target Milestone: 10.0   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Michael Rennie CLA 2015-09-01 11:15:35 EDT
The last few builds have had test failures (https://hudson.eclipse.org/orion/job/orion-client-dev/952/). These failures do not happen locally, and could be related to the test worker not being stopped correctly.
Comment 1 Michael Rennie CLA 2015-09-02 12:42:42 EDT
After looking at the sauce labs test info, it lead me to the fact that IE is having issues with the tests, specifically the tern assist and cross file tests:

"before all" hook: Message the server for warm up on cross file tests 
‣
TypeError: Object doesn't support this action
   at WrappedWorker (http://mrennie-unit-tests.orion.eclipse.org:9000/js-tests/javascript/testingWorker.js:39:5)
   at instance (http://mrennie-unit-tests.orion.eclipse.org:9000/js-tests/javascript/testingWorker.js:94:4)
   at Anonymous function (http://mrennie-unit-tests.orion.eclipse.org:9000/js-tests/javascript/crossFileTests.js:172:4)
   at Runnable.prototype.run (http://mrennie-unit-tests.orion.eclipse.org:9000/mocha/mocha.js:4311:7)
   at next (http://mrennie-unit-tests.orion.eclipse.org:9000/mocha/mocha.js:4613:5)
   at Anonymous function (http://mrennie-unit-tests.orion.eclipse.org:9000/mocha/mocha.js:4630:5)
   at timeslice (http://mrennie-unit-tests.orion.eclipse.org:9000/mocha/mocha.js:5761:5)


✖
"after all" hook: Shutting down the test worker 
‣
TypeError: Unable to get property 'terminate' of undefined or null reference
   at Anonymous function (http://mrennie-unit-tests.orion.eclipse.org:9000/js-tests/javascript/crossFileTests.js:190:4)
   at callFn (http://mrennie-unit-tests.orion.eclipse.org:9000/mocha/mocha.js:4338:5)
   at Runnable.prototype.run (http://mrennie-unit-tests.orion.eclipse.org:9000/mocha/mocha.js:4331:7)
   at next (http://mrennie-unit-tests.orion.eclipse.org:9000/mocha/mocha.js:4613:5)
   at Anonymous function (http://mrennie-unit-tests.orion.eclipse.org:9000/mocha/mocha.js:4630:5)
   at timeslice (http://mrennie-unit-tests.orion.eclipse.org:9000/mocha/mocha.js:5761:5)
Comment 2 Michael Rennie CLA 2015-09-02 12:54:36 EDT
The problem was that IE does not provide any native support for the URL class, I had to bring in URL-shim.

Fixsed in:

http://git.eclipse.org/c/orion/org.eclipse.orion.client.git/commit/?id=cd788f2b53be94d53ae9db5a18d65b87b64f4284

all tests pass.

leaving open until the next build passes:

https://hudson.eclipse.org/orion/job/orion-client-dev/954/
Comment 3 Michael Rennie CLA 2015-09-02 13:24:50 EDT
Closing fixed. The JS suite passes fine in the latest build.