зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1171440
- Stop using for-each loops in reftest.js; r=dbaron
--HG-- extra : commitid : 2mj8f35nTBx
This commit is contained in:
Родитель
b7bc0d5b7c
Коммит
d5fa7d0cfe
|
@ -835,7 +835,7 @@ function ReadManifest(aURL, inherited_status)
|
||||||
var lineNo = 0;
|
var lineNo = 0;
|
||||||
var urlprefix = "";
|
var urlprefix = "";
|
||||||
var defaultTestPrefSettings = [], defaultRefPrefSettings = [];
|
var defaultTestPrefSettings = [], defaultRefPrefSettings = [];
|
||||||
for each (var str in lines) {
|
for (var str of lines) {
|
||||||
++lineNo;
|
++lineNo;
|
||||||
if (str.charAt(0) == "#")
|
if (str.charAt(0) == "#")
|
||||||
continue; // entire line was a comment
|
continue; // entire line was a comment
|
||||||
|
@ -923,7 +923,7 @@ function ReadManifest(aURL, inherited_status)
|
||||||
var [precondition_str, fallback_action] = args;
|
var [precondition_str, fallback_action] = args;
|
||||||
var preconditions = precondition_str.split(/&&/);
|
var preconditions = precondition_str.split(/&&/);
|
||||||
cond = false;
|
cond = false;
|
||||||
for each (var precondition in preconditions) {
|
for (var precondition of preconditions) {
|
||||||
if (precondition === "debugMode") {
|
if (precondition === "debugMode") {
|
||||||
// Currently unimplemented. Requires asynchronous
|
// Currently unimplemented. Requires asynchronous
|
||||||
// JSD call + getting an event while no JS is running
|
// JSD call + getting an event while no JS is running
|
||||||
|
@ -1768,7 +1768,7 @@ function LoadFailed(why)
|
||||||
function RemoveExpectedCrashDumpFiles()
|
function RemoveExpectedCrashDumpFiles()
|
||||||
{
|
{
|
||||||
if (gExpectingProcessCrash) {
|
if (gExpectingProcessCrash) {
|
||||||
for each (let crashFilename in gExpectedCrashDumpFiles) {
|
for (let crashFilename of gExpectedCrashDumpFiles) {
|
||||||
let file = gCrashDumpDir.clone();
|
let file = gCrashDumpDir.clone();
|
||||||
file.append(crashFilename);
|
file.append(crashFilename);
|
||||||
if (file.exists()) {
|
if (file.exists()) {
|
||||||
|
|
Загрузка…
Ссылка в новой задаче