зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
13600a1cb5
Коммит
9065b64733
|
@ -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>
|
||||
|
|
Загрузка…
Ссылка в новой задаче