Closed
Bug 1105393
Opened 10 years ago
Closed 9 years ago
Remove deprecated for-each-in loops from mochitest/server.js
Categories
(Testing :: Mochitest, defect)
Testing
Mochitest
Tracking
(firefox36 wontfix, firefox37 fixed)
RESOLVED
FIXED
mozilla37
People
(Reporter: cpeterson, Assigned: cpeterson)
References
Details
Attachments
(1 file, 1 obsolete file)
2.57 KB,
patch
|
jmaher
:
review+
|
Details | Diff | Splinter Review |
Bug 1083467 will log console warnings for JavaScript 1.6's deprecated for-each-in loops. This patch will replaces some for-each-in loops in the mochitest harness itself with for-of loops to reduce test warning spam.
Attachment #8529170 -
Flags: review?(jmaher)
Comment 1•10 years ago
|
||
Comment on attachment 8529170 [details] [diff] [review] 1083467_fix-mochitest-server.patch Review of attachment 8529170 [details] [diff] [review]: ----------------------------------------------------------------- my only concern here is we run this from xpcshell and peg a certain version of javascript with -v 170. I would like to ensure that we successfully test this on mochitest and reftest (remote). here are the two cases I see of invoking server.js: http://dxr.mozilla.org/mozilla-central/source/layout/tools/reftest/remotereftest.py#208 http://dxr.mozilla.org/mozilla-central/source/testing/mochitest/runtests.py#328 ::: testing/mochitest/server.js @@ +548,5 @@ > function jsonArrayOfTestFiles(links) > { > var testFiles = []; > arrayOfTestFiles(links, testFiles); > + testFiles = [for (file of testfiles) '"' + file['url'] + '"']; I know this is a direct conversion of what was in place before, but shouldn't we use a let to define file?
Attachment #8529170 -
Flags: review?(jmaher) → review+
Assignee | ||
Comment 2•10 years ago
|
||
Remove deprecated for-each-in loops from mochitest/server.js, but this time don't use any ES6/ES7 language features that are not available in the Android emulators' ancient (2012) hostutils.zip xpcshell. (mostly) green Try test: https://tbpl.mozilla.org/?tree=Try&rev=7814367ffb08
Attachment #8529170 -
Attachment is obsolete: true
Attachment #8539923 -
Flags: review?(jmaher)
Comment 3•10 years ago
|
||
Comment on attachment 8539923 [details] [diff] [review] fix-mochitest-server-v2.patch Review of attachment 8539923 [details] [diff] [review]: ----------------------------------------------------------------- thanks!
Attachment #8539923 -
Flags: review?(jmaher) → review+
Assignee | ||
Comment 4•9 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/19423317b16e
status-firefox36:
--- → wontfix
status-firefox37:
--- → fixed
Comment 5•9 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/19423317b16e
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla37
You need to log in
before you can comment on or make changes to this bug.
Description
•