mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1207495 - Remove use of expression closure from layout/. r=bz
This commit is contained in:
parent
a68d8c7152
commit
2cbde0e629
@ -69,7 +69,7 @@ function runTest()
|
||||
|
||||
// key events should also be retargeted when the focus changes to an
|
||||
// element in a chrome document from a content document.
|
||||
i4.addEventListener("keydown", function () $("i3").focus(), false);
|
||||
i4.addEventListener("keydown", () => $("i3").focus(), false);
|
||||
|
||||
synthesizeKey("c", { code: "KeyC", keyCode: KeyboardEvent.DOM_VK_C });
|
||||
|
||||
|
@ -61,15 +61,15 @@ SimpleTest.waitForFocus(function() {
|
||||
[textAreaWithValue, inputWithValue].forEach(function (elem) {
|
||||
is(elem.value, "test", "Value should persist correctly");
|
||||
});
|
||||
[inputWithoutValue, inputWithValue].forEach(function (elem) elem.type = "submit");
|
||||
[inputWithoutValue, inputWithValue].forEach(elem => elem.type = "submit");
|
||||
document.body.offsetWidth;
|
||||
is(inputWithoutValue.value, "", "Value should persist correctly");
|
||||
is(inputWithValue.value, "test", "Value should persist correctly");
|
||||
[inputWithoutValue, inputWithValue].forEach(function (elem) elem.type = "text");
|
||||
[inputWithoutValue, inputWithValue].forEach(elem => elem.type = "text");
|
||||
document.body.offsetWidth;
|
||||
is(inputWithoutValue.value, "", "Value should persist correctly");
|
||||
is(inputWithValue.value, "test", "Value should persist correctly");
|
||||
[inputWithoutValue, inputWithValue].forEach(function (elem) elem.focus()); // initialze the editor
|
||||
[inputWithoutValue, inputWithValue].forEach(elem => elem.focus()); // initialze the editor
|
||||
reframeDiv.style.display = "none";
|
||||
document.body.offsetWidth;
|
||||
reframeDiv.style.display = "";
|
||||
|
@ -17,7 +17,7 @@
|
||||
|
||||
/** Test for textbox resizing **/
|
||||
SimpleTest.waitForExplicitFinish();
|
||||
addLoadEvent(function() SimpleTest.executeSoon(doTheTest));
|
||||
addLoadEvent(() => SimpleTest.executeSoon(doTheTest));
|
||||
|
||||
// -1 means use the default value which is 'both', then test explicitly
|
||||
// setting each possible value.
|
||||
|
@ -31,7 +31,7 @@ onhashchange = function() {
|
||||
};
|
||||
function runTest() {
|
||||
var image = document.getElementById("image");
|
||||
SimpleTest.waitForFocus(function() synthesizeMouse(image, 10, 10, {}));
|
||||
SimpleTest.waitForFocus(() => synthesizeMouse(image, 10, 10, {}));
|
||||
}
|
||||
addLoadEvent(runTest);
|
||||
</script>
|
||||
|
@ -78,7 +78,7 @@ function doTest() {
|
||||
}
|
||||
|
||||
SimpleTest.waitForExplicitFinish();
|
||||
addLoadEvent(function() setTimeout(doTest, 0));
|
||||
addLoadEvent(() => setTimeout(doTest, 0));
|
||||
|
||||
]]></script>
|
||||
|
||||
|
@ -66,10 +66,10 @@ window.addEventListener('load', function() {
|
||||
}, false);
|
||||
});
|
||||
|
||||
cases.forEach(function(aCase) aCase.className = 'another' );
|
||||
cases.forEach(aCase => aCase.className = 'another' );
|
||||
|
||||
window.setTimeout(function() cases[0].className = '', 500);
|
||||
window.setTimeout(function() cases[1].className = cases[2].className = '', 250);
|
||||
window.setTimeout(() => cases[0].className = '', 500);
|
||||
window.setTimeout(() => cases[1].className = cases[2].className = '', 250);
|
||||
|
||||
}, false);
|
||||
|
||||
|
@ -207,8 +207,8 @@ function titledPanelWindowOpened(panelwindow)
|
||||
{
|
||||
var panel = panelwindow.document.documentElement.firstChild;
|
||||
panel.openPopup();
|
||||
panel.addEventListener("popupshown", function() doTitledPanelTest(panel), false);
|
||||
panel.addEventListener("popuphidden", function() done(panelwindow), false);
|
||||
panel.addEventListener("popupshown", () => doTitledPanelTest(panel), false);
|
||||
panel.addEventListener("popuphidden", () => done(panelwindow), false);
|
||||
}
|
||||
|
||||
function doTitledPanelTest(panel)
|
||||
|
Loading…
Reference in New Issue
Block a user