Bug 1207494 - Part 7: Remove use of expression closure from dom/html/. r=peterv

--HG--
extra : commitid : FrP0WhG4UG1
extra : rebase_source : 29f2a04781285026a0cbcdf8db9d29ccf3c087c8
This commit is contained in:
Tooru Fujisawa 2015-09-23 18:39:14 +09:00
Родитель 13600a1cb5
Коммит 9065b64733
4 изменённых файлов: 7 добавлений и 7 удалений

Просмотреть файл

@ -42,13 +42,13 @@ onhashchange = function() {
if (!second) {
second = true;
is(location.hash, "#x", "First map");
SimpleTest.waitForFocus(function() synthesizeMouse(images[1], 50, 50, {}));
SimpleTest.waitForFocus(() => synthesizeMouse(images[1], 50, 50, {}));
} else {
is(location.hash, "#y", "Second map");
SimpleTest.finish();
}
};
SimpleTest.waitForFocus(function() synthesizeMouse(images[0], 50, 50, {}));
SimpleTest.waitForFocus(() => synthesizeMouse(images[0], 50, 50, {}));
</script>
</pre>
</body>

Просмотреть файл

@ -42,13 +42,13 @@ onhashchange = function() {
if (!second) {
second = true;
is(location.hash, "#x", "First map");
SimpleTest.waitForFocus(function() synthesizeMouse(images[1], 50, 50, {}));
SimpleTest.waitForFocus(() => synthesizeMouse(images[1], 50, 50, {}));
} else {
is(location.hash, "#y", "Second map");
SimpleTest.finish();
}
};
SimpleTest.waitForFocus(function() synthesizeMouse(images[0], 50, 50, {}));
SimpleTest.waitForFocus(() => synthesizeMouse(images[0], 50, 50, {}));
</script>
</pre>
</body>

Просмотреть файл

@ -41,7 +41,7 @@ onhashchange = function() {
is(location.hash, "#PASS", "Should get the first map in tree order.");
SimpleTest.finish();
};
SimpleTest.waitForFocus(function() synthesizeMouse(images[0], 50, 50, {}));
SimpleTest.waitForFocus(() => synthesizeMouse(images[0], 50, 50, {}));
</script>
</pre>
</body>

Просмотреть файл

@ -42,13 +42,13 @@ onhashchange = function() {
if (!second) {
second = true;
is(location.hash, "#x", "First map");
SimpleTest.waitForFocus(function() synthesizeMouse(images[1], 50, 50, {}));
SimpleTest.waitForFocus(() => synthesizeMouse(images[1], 50, 50, {}));
} else {
is(location.hash, "#y", "Second map");
SimpleTest.finish();
}
};
SimpleTest.waitForFocus(function() synthesizeMouse(images[0], 50, 50, {}));
SimpleTest.waitForFocus(() => synthesizeMouse(images[0], 50, 50, {}));
</script>
</pre>
</body>