Closed
Bug 451678
Opened 16 years ago
Closed 16 years ago
TM: mochi chrome tests fail under TM
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
RESOLVED
FIXED
mozilla1.9.1
People
(Reporter: sayrer, Assigned: brendan)
References
Details
(Keywords: testcase)
Attachments
(4 files)
Looks like the harness overlay isn't working correctly. ************************************************************ * Call to xpconnect wrapped JSObject produced this error: * [Exception... "'[JavaScript Error: "srvScope.makeTags is not a function" {file: "chrome://mochikit/content/harness-overlay.xul" line: 46}]' when calling method: [nsIDOMEventListener::handleEvent]" nsresult: "0x80570021 (NS_ERROR_XPC_JAVASCRIPT_ERROR_WITH_DETAILS)" location: "<unknown>" data: yes] ************************************************************
Reporter | ||
Comment 1•16 years ago
|
||
Reproduce: python runtests.py --chrome
Updated•16 years ago
|
Severity: normal → major
OS: Mac OS X → All
Version: unspecified → Trunk
Comment 2•16 years ago
|
||
As a note, this is probably happening on all platforms - Linux and Mac buildbots show it properly in tinderbox waterfall summaries but we're just not as good with reporting it on Windows. I just logged into the SeaMonkey Windows unit test box and it sits there with having the mochichrome test framework open, no tests executed, and the error console shows the error from comment #0.
Comment 3•16 years ago
|
||
Just to test, I added the for in around: var srvScope = {}; scriptLoader.loadSubScript("chrome://mochikit/content/server.js", srvScope); for (var name in srvScope) dump(name + " " + srvScope[name] + "\n"); Output: SERVER_PORT 8888 server undefined tags undefined makeTagFunc ... (the right thing) makeTags A,ABBR,ACRONYM,ADDRESS... (contents of what should be tags) ...
Comment 4•16 years ago
|
||
Simplified testcase, requires the JS file I'll attach next. Also, it needs an absolute file:// URI in there to feed the subscript loader, so modify as appropriate. :-/
Comment 5•16 years ago
|
||
Comment 6•16 years ago
|
||
Much easier to use, just apply the patch and "make libs check" in js/src/xpconnect/test.
Reporter | ||
Comment 7•16 years ago
|
||
here's ted's test as a single file. this creates a file in /tmp to load the subscript from.
Comment 8•16 years ago
|
||
IIRC, we just had problems with files created in /tmp - if you create a file, could you do it somewhere under the objdir, please?
Comment 9•16 years ago
|
||
I don't think his attachment is a replacement for mine, just an easier way to run the test for debugging purposes. My patch should be just fine for checkin as a regression test.
Reporter | ||
Comment 10•16 years ago
|
||
Works in tracemonkey revision 18304, and fails in revision 18311. This points to upvars breaking this.
Assignee: general → brendan
Assignee | ||
Comment 11•16 years ago
|
||
Fixed on tracemonkey: http://hg.mozilla.org/tracemonkey/index.cgi/rev/cb7a52881bd0 And on mozilla-central, r=shaver: http://hg.mozilla.org/mozilla-central/index.cgi/rev/a81c9fa9a583 /be
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Updated•16 years ago
|
Attachment #335082 -
Flags: review?(brendan)
Assignee | ||
Comment 12•16 years ago
|
||
Comment on attachment 335082 [details] [diff] [review] as an xpcshell unit test Looks good, thanks. /be
Attachment #335082 -
Flags: review?(brendan) → review+
Comment 13•16 years ago
|
||
Comment on attachment 335082 [details] [diff] [review] as an xpcshell unit test Pushed to m-c: http://hg.mozilla.org/mozilla-central/index.cgi/rev/2989d7b99db3
Updated•16 years ago
|
Flags: in-testsuite+
Target Milestone: --- → mozilla1.9.1
You need to log in
before you can comment on or make changes to this bug.
Description
•