Closed Bug 521151 Opened 16 years ago Closed 16 years ago

/content/ unit tests fail on JavaScript 'strict' mode

Categories

(Core :: General, defect)

defect
Not set
trivial

Tracking

()

RESOLVED FIXED
mozilla1.9.3a1
Tracking Status
status1.9.2 --- final-fixed

People

(Reporter: lusian, Assigned: lusian)

References

Details

Attachments

(1 file, 2 obsolete files)

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.3a1pre) Gecko/20091007 Minefield/3.7a1pre (.NET CLR 3.5.30729) Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.3a1pre) Gecko/20091007 Minefield/3.7a1pre (.NET CLR 3.5.30729) $ make -C content/test/ xpcshell-tests make: Entering directory `/c/mozilla-build/mozilla-central/content/test' c:/mozilla-build/python25/python2.5.exe -u /c/mozilla-build/mozilla-central/conf ig/pythonpath.py \ -I/c/mozilla-build/mozilla-central/build \ /c/mozilla-build/mozilla-central/testing/xpcshell/runxpcshelltests.py \ --symbols-path=../../dist/crashreporter-symbols \ ../../dist/bin/xpcshell \ ../../_tests/xpcshell/test_content/unit TEST-UNEXPECTED-FAIL | c:\mozilla-build\mozilla-central\_tests\xpcshell\test_con tent\unit\test_isequalnode.js | test failed (with xpcshell return code: 0), see following log: >>>>>>> TEST-INFO | (xpcshell/head.js) | test 1 pending TEST-PASS | c:/mozilla-build/mozilla-central/_tests/xpcshell/test_content/unit/h ead_content.js | [ParseFile : 76] true == true TEST-UNEXPECTED-FAIL | (xpcshell/head.js) | TypeError: assignment to undeclared variable fileStr <<<<<<< TEST-UNEXPECTED-FAIL | c:\mozilla-build\mozilla-central\_tests\xpcshell\test_con tent\unit\test_nodelist.js | test failed (with xpcshell return code: 0), see fol lowing log: >>>>>>> TEST-INFO | (xpcshell/head.js) | test 1 pending TEST-PASS | c:/mozilla-build/mozilla-central/_tests/xpcshell/test_content/unit/h ead_content.js | [ParseFile : 76] true == true TEST-UNEXPECTED-FAIL | (xpcshell/head.js) | TypeError: assignment to undeclared variable fileStr <<<<<<< TEST-UNEXPECTED-FAIL | c:\mozilla-build\mozilla-central\_tests\xpcshell\test_con tent\unit\test_normalize.js | test failed (with xpcshell return code: 0), see fo llowing log: >>>>>>> TEST-INFO | (xpcshell/head.js) | test 1 pending TEST-PASS | c:/mozilla-build/mozilla-central/_tests/xpcshell/test_content/unit/h ead_content.js | [ParseFile : 76] true == true TEST-UNEXPECTED-FAIL | (xpcshell/head.js) | TypeError: assignment to undeclared variable fileStr <<<<<<< TEST-UNEXPECTED-FAIL | c:\mozilla-build\mozilla-central\_tests\xpcshell\test_con tent\unit\test_range.js | test failed (with xpcshell return code: 0), see follow ing log: >>>>>>> TEST-INFO | (xpcshell/head.js) | test 1 pending TEST-PASS | c:/mozilla-build/mozilla-central/_tests/xpcshell/test_content/unit/t est_range.js | [getParsedDocument : 219] true == true TEST-PASS | c:/mozilla-build/mozilla-central/_tests/xpcshell/test_content/unit/t est_range.js | [getParsedDocument : 220] true == true TEST-PASS | c:/mozilla-build/mozilla-central/_tests/xpcshell/test_content/unit/t est_range.js | [getParsedDocument : 221] true == true TEST-PASS | c:/mozilla-build/mozilla-central/_tests/xpcshell/test_content/unit/t est_range.js | [getParsedDocument : 222] true == true TEST-UNEXPECTED-FAIL | (xpcshell/head.js) | TypeError: assignment to undeclared variable i <<<<<<< TEST-PASS | c:\mozilla-build\mozilla-central\_tests\xpcshell\test_content\unit\t est_treewalker.js | test passed TEST-PASS | c:\mozilla-build\mozilla-central\_tests\xpcshell\test_content\unit\t est_xml_parser.js | test passed TEST-PASS | c:\mozilla-build\mozilla-central\_tests\xpcshell\test_content\unit\t est_xml_serializer.js | test passed INFO | Result summary: INFO | Passed: 3 INFO | Failed: 4 make: *** [xpcshell-tests] Error 1 make: Leaving directory `/c/mozilla-build/mozilla-central/content/test' Reproducible: Always Steps to Reproduce: 1. Run the xpcshell test with the '-S' option Actual Results: Failed Expected Results: Passed
Attached patch Fix the errors (obsolete) — Splinter Review
Attachment #405187 - Flags: review?(alex)
Attached patch Convert to UNIX newline (obsolete) — Splinter Review
Attachment #405187 - Attachment is obsolete: true
Attachment #405442 - Flags: review?(alex)
Attachment #405187 - Flags: review?(alex)
Blocks: 524781
Attachment #405442 - Flags: review?(alex)
Attachment #405442 - Attachment is obsolete: true
Summary: xpcshell-tests fail with 'strict' & 'werror' turned on → /content/ unit tests fail on JavaScript 'strict' mode
Attachment #409426 - Flags: review?(darin.moz)
Attachment #409426 - Flags: review?(Olli.Pettay)
Comment on attachment 409426 [details] [diff] [review] /content/ unit tests fail on JS strict mode Darin Fisher, can you review head_content.js? Olli Pettay, please review test_range.js & xtfComponent.js.
Comment on attachment 409426 [details] [diff] [review] /content/ unit tests fail on JS strict mode I just found Darin no longer reviews. Jeff, please review head_content.js.
Attachment #409426 - Flags: review?(darin.moz) → review?(jwalden+bmo)
Attachment #409426 - Flags: review?(Olli.Pettay) → review+
Attachment #409426 - Flags: review?(jwalden+bmo) → review+
Assignee: nobody → lusian
Status: UNCONFIRMED → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.9.3a1
Flags: in-testsuite+
Keywords: checkin-needed
Whiteboard: [c-n: m-1.9.2, m-1.9.1]
Version: unspecified → Trunk
Pushed to 1.9.2: http://hg.mozilla.org/releases/mozilla-1.9.2/rev/bf15ba83f27c Is this really clear to land on 1.9.2? No approval necessary?
Whiteboard: [c-n: m-1.9.2, m-1.9.1] → [c-n: m-1.9.1]
Clearing checkin keywords since these patches don't have 1.9.1 approval. Please request approval on the patches, and once granted, replace the checkin keyword.
Keywords: checkin-needed
Whiteboard: [c-n: m-1.9.1]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: