Closed Bug 496846 Opened 16 years ago Closed 16 years ago

JavaScript Tests - run browser tests via file:

Categories

(Testing Graveyard :: Sisyphus, defect)

x86
All
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: bc, Assigned: bc)

References

()

Details

Attachments

(1 file)

Attached patch patchSplinter Review
I finally looked into the problem with why the JavaScript Tests can't be run using file:. It appears that when using file: instead of http:; the jsTestDriverBrowserInit() function, which inserts the test scripts via document.write, the first document.written script is ignored which causes failures in cases where the subsuite's shell.js script is required. For example: file:///PathToRepo/js/tests/js-test-driver-standards.html?test=e4x%2FExpressions%2F11.2.2.js;language=type;text/javascript If I insert a blank script prior to the first real script, it works. I tried simple tests cases but could not reproduce. Blake, before I work around this, would you care to look?
Blocks: jsreftests
http://hg.mozilla.org/tracemonkey/rev/3c03e96d6910 /cvsroot/mozilla/js/tests/browser.js,v <-- browser.js new revision: 1.14; previous revision: 1.13
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Flags: in-testsuite-
Resolution: --- → FIXED
Product: Testing → Testing Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: