Bug 1644863 - fix trailing whitespace in cross-tree tests, r=emilio,marionette-reviewers,whimboo

Differential Revision: https://phabricator.services.mozilla.com/D79202
This commit is contained in:
Gijs Kruitbosch 2020-06-17 22:45:31 +00:00
Родитель d523471eac
Коммит 222e2d1158
81 изменённых файлов: 431 добавлений и 431 удалений

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

@ -5,14 +5,14 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=423375
-->
<head>
<title>Test for Bug 423375</title>
<script src="/tests/SimpleTest/SimpleTest.js"></script>
<script src="/tests/SimpleTest/SimpleTest.js"></script>
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
</head>
<body>
<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=423375">Mozilla Bug 423375</a>
<p id="display"></p>
<div id="content" style="display: none">
<iframe id="load-frame"></iframe>
<iframe id="load-frame"></iframe>
</div>
<pre id="test">
<script class="testbody" type="text/javascript">

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

@ -1,16 +1,16 @@
<!DOCTYPE html>
<html>
<head>
<script>
function boom()
{
window.__proto__ = null;
for (var i = 0; i < 10000; ++i) {
self.document;
}
}
</script></head>
<body onload="boom();"></body>
</html>
<!DOCTYPE html>
<html>
<head>
<script>
function boom()
{
window.__proto__ = null;
for (var i = 0; i < 10000; ++i) {
self.document;
}
}
</script></head>
<body onload="boom();"></body>
</html>

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

@ -1,16 +1,16 @@
<!DOCTYPE html>
<html>
<head>
<script>
function boom()
{
window.__proto__ = function(){};
for (var i = 0; i < 10000; ++i) {
self.document;
}
}
</script></head>
<body onload="boom();"></body>
</html>
<!DOCTYPE html>
<html>
<head>
<script>
function boom()
{
window.__proto__ = function(){};
for (var i = 0; i < 10000; ++i) {
self.document;
}
}
</script></head>
<body onload="boom();"></body>
</html>

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

@ -13,7 +13,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=560072
<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=560072">Mozilla Bug 560072</a>
<p id="display"></p>
<div id="content" style="display: none">
</div>
<pre id="test">
<script type="application/javascript">

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

@ -13,7 +13,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=759621
<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=759621">Mozilla Bug 759621</a>
<p id="display"></p>
<div id="content" style="display: none">
</div>
<pre id="test">
<script type="application/javascript">

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

@ -13,7 +13,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=742156
<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=742156">Mozilla Bug 742156</a>
<p id="display"></p>
<div id="content" style="display: none">
</div>
<pre id="test">
<script type="application/javascript">

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

@ -12,7 +12,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=462428
<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=462428">Mozilla Bug 462428</a>
<p id="display"></p>
<div id="content" style="display: none">
</div>
<pre id="test">
<script type="application/javascript">

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

@ -13,7 +13,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=744772
<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=744772">Mozilla Bug 744772</a>
<p id="display"></p>
<div id="content" style="display: none">
</div>
<pre id="test">
<script type="application/javascript">

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

@ -14,7 +14,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=952365
var onvolumechange;
var x = {};
(function() {
onvolumechange = x;
is(onvolumechange, x,

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

@ -58,7 +58,7 @@
y.addEventListener("MozAfterPaint", handleMozAfterPaint, true);
y.addEventListener("MozScrolledAreaChanged", handleMozScrolledAreaChanged, true);
}
function loadURL(url) {
document.getElementById('page').setAttribute('src', url);
}
@ -77,7 +77,7 @@
function openWindow() {
window.open('chrome://global/content/test-ipc.xhtml', '_blank', 'chrome,resizable,width=800,height=800');
}
function closeWindow() {
window.close();
}
@ -96,32 +96,32 @@
alert("Should have two child processes!");
}
var childprocessmm = ppm.getChildAt(1); // 0 is the in-process child process mm
childprocessmm.addMessageListener("ppm-sync",
function(m) {
if (m.target != childprocessmm) alert("Wrong target!");
document.getElementById("messageLog").value += "[SYNC1 PPM]";
document.getElementById("messageLog").value += "[SYNC1 PPM]";
}
);
ppm.addMessageListener("ppm-sync",
function(m) {
// Check that global process message manager gets the per-process mm as target.
if (m.target != childprocessmm) alert("Wrong target!");
document.getElementById("messageLog").value += "[SYNC2 PPM]";
document.getElementById("messageLog").value += "[SYNC2 PPM]";
}
);
childprocessmm.addMessageListener("ppm-async",
function(m) {
if (m.target != childprocessmm) alert("Wrong target!");
document.getElementById("messageLog").value += "[ASYNC1 PPM]";
document.getElementById("messageLog").value += "[ASYNC1 PPM]";
}
);
ppm.addMessageListener("ppm-async",
function(m) {
// Check that global process message manager gets the per-process mm as target.
if (m.target != childprocessmm) alert("Wrong target!");
document.getElementById("messageLog").value += "[ASYNC2 PPM]";
document.getElementById("messageLog").value += "[ASYNC2 PPM]";
}
);
messageManager.loadFrameScript("chrome://global/content/remote-test-ipc.js", true);
@ -130,7 +130,7 @@
// 2. Test that adding message listener works, and that receiving a sync message works.
messageManager.addMessageListener("linkclick",
function(m) {
// This checks that json sending works in sync messages.
// This checks that json sending works in sync messages.
document.getElementById("messageLog").value = m.name + ": " + m.json.href;
return { message: "linkclick-received" };
});

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

@ -37,7 +37,7 @@ function getUncontrolledClients(sw) {
}
addEventListener('load', function(event) {
if (!navigator.serviceWorker.controller) {
if (!navigator.serviceWorker.controller) {
return fail(window.location.href + ' is not controlled!');
}

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

@ -15,7 +15,7 @@
<pre id="test"></pre>
<script class="testbody" type="text/javascript">
/**
*
*
*/
let iframe;
let registration;

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

@ -63,7 +63,7 @@
SimpleTest.finish();
})();
});
});
}
]]>

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

@ -1,14 +1,14 @@
<html>
<head>
<script>
window.onload = function(){
var frame = document.getElementById('test_iframe');
var win = frame.contentWindow;
frame.remove();
win.onvrdisplayactivate = function () {}
};
</script></head>
<body>
<iframe id="test_iframe"></iframe>
</body>
</html>
<html>
<head>
<script>
window.onload = function(){
var frame = document.getElementById('test_iframe');
var win = frame.contentWindow;
frame.remove();
win.onvrdisplayactivate = function () {}
};
</script></head>
<body>
<iframe id="test_iframe"></iframe>
</body>
</html>

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

@ -1,51 +1,51 @@
<!DOCTYPE html>
<html>
<head>
<title>VRDisplay ExitPresent</title>
<meta name="timeout" content="long"/>
<meta http-equiv="Content-type" content="text/html;charset=UTF-8">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="VRSimulationDriver.js"></script>
<script src="runVRTest.js"></script>
</head>
<body>
<script>
function testExitPresentOnOtherIframe(content) {
return content.navigator.getVRDisplays().then((displays) => {
content.vrDisplay = displays[0];
return content.vrDisplay.exitPresent();
});
}
var initVRPresentation = function(content) {
return VRSimulationDriver.AttachWebVRDisplay().then(() => {
return content.navigator.getVRDisplays().then((displays) => {
content.vrDisplay = displays[0];
content.canvas = content.document.createElement("canvas");
content.canvas.id = "vrCanvas";
return content.vrDisplay.requestPresent([{source:content.canvas}]);
});
});
}
function startTest() {
var ifr1 = document.getElementById("iframe1");
var ifr2 = document.getElementById("iframe2");
var frame1 = ifr1.contentWindow;
var frame2 = ifr2.contentWindow;
promise_test((test) => {
return VRSimulationDriver.AttachWebVRDisplay().then(() => {
return initVRPresentation(frame1).then(() => {
promise_test((test) => {
return promise_rejects(test, null, testExitPresentOnOtherIframe(frame2));
}, "We cannot exit VR presentation established by another content, this promise is expected to be rejected.")
});
});
}, "Finish running WebVR exitPresent test.");
}
runVRTest(startTest);
</script>
<iframe id="iframe1"></iframe>
<iframe id="iframe2"></iframe>
</body>
<!DOCTYPE html>
<html>
<head>
<title>VRDisplay ExitPresent</title>
<meta name="timeout" content="long"/>
<meta http-equiv="Content-type" content="text/html;charset=UTF-8">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="VRSimulationDriver.js"></script>
<script src="runVRTest.js"></script>
</head>
<body>
<script>
function testExitPresentOnOtherIframe(content) {
return content.navigator.getVRDisplays().then((displays) => {
content.vrDisplay = displays[0];
return content.vrDisplay.exitPresent();
});
}
var initVRPresentation = function(content) {
return VRSimulationDriver.AttachWebVRDisplay().then(() => {
return content.navigator.getVRDisplays().then((displays) => {
content.vrDisplay = displays[0];
content.canvas = content.document.createElement("canvas");
content.canvas.id = "vrCanvas";
return content.vrDisplay.requestPresent([{source:content.canvas}]);
});
});
}
function startTest() {
var ifr1 = document.getElementById("iframe1");
var ifr2 = document.getElementById("iframe2");
var frame1 = ifr1.contentWindow;
var frame2 = ifr2.contentWindow;
promise_test((test) => {
return VRSimulationDriver.AttachWebVRDisplay().then(() => {
return initVRPresentation(frame1).then(() => {
promise_test((test) => {
return promise_rejects(test, null, testExitPresentOnOtherIframe(frame2));
}, "We cannot exit VR presentation established by another content, this promise is expected to be rejected.")
});
});
}, "Finish running WebVR exitPresent test.");
}
runVRTest(startTest);
</script>
<iframe id="iframe1"></iframe>
<iframe id="iframe2"></iframe>
</body>
</html>

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

@ -1,43 +1,43 @@
<html>
<head>
<title>VRDisplay onvrdisplayconnect test</title>
<meta name="timeout" content="long"/>
<meta http-equiv="Content-type" content="text/html;charset=UTF-8">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="VRSimulationDriver.js"></script>
<script src="WebVRHelpers.js"></script>
<script src="requestPresent.js"></script>
<script src="runVRTest.js"></script>
</head>
<body>
<script>
function eventAfterConnectedTest() {
async_test(function (test) {
window.addEventListener("vrdisplayconnect", () => {
test.done();
});
}, "vrdisplayconnect should fire as soon as content listens for it, \
even if the VR display was already connected.");
}
function startTest() {
promise_test((test) => {
return attachVRDisplay(test).then(() => {
return promise_test((test) => {
return setupVRDisplay(test).then(() => {
VRSimulationDriver.UpdateVRDisplay();
eventAfterConnectedTest();
VRSimulationDriver.UpdateVRDisplay();
});
});
});
});
}
runVRTest(startTest);
</script>
<iframe id="iframe1"></iframe>
</body>
<html>
<head>
<title>VRDisplay onvrdisplayconnect test</title>
<meta name="timeout" content="long"/>
<meta http-equiv="Content-type" content="text/html;charset=UTF-8">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="VRSimulationDriver.js"></script>
<script src="WebVRHelpers.js"></script>
<script src="requestPresent.js"></script>
<script src="runVRTest.js"></script>
</head>
<body>
<script>
function eventAfterConnectedTest() {
async_test(function (test) {
window.addEventListener("vrdisplayconnect", () => {
test.done();
});
}, "vrdisplayconnect should fire as soon as content listens for it, \
even if the VR display was already connected.");
}
function startTest() {
promise_test((test) => {
return attachVRDisplay(test).then(() => {
return promise_test((test) => {
return setupVRDisplay(test).then(() => {
VRSimulationDriver.UpdateVRDisplay();
eventAfterConnectedTest();
VRSimulationDriver.UpdateVRDisplay();
});
});
});
});
}
runVRTest(startTest);
</script>
<iframe id="iframe1"></iframe>
</body>
</html>

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

@ -21,7 +21,7 @@ var tests = [
test47, // Make sure onerror/onclose aren't called during close()
test48, // see bug 1227136 - client calls close() from onopen() and waits
// until WebSocketChannel::mSocketIn is nulled out on socket thread
test49, // Test that we fail if subprotocol returned from server doesn't match
test49, // Test that we fail if subprotocol returned from server doesn't match
];
function testWebSocket() {

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

@ -13,7 +13,7 @@
<script class="testbody" type="text/javascript">
function debug(msg) {
function debug(msg) {
ok(1, msg);
}
@ -67,7 +67,7 @@ var responseType;
function check(index)
{
debug("Checking message #" + index + ".");
ok(receivedMessages[index] instanceof ArrayBuffer,
ok(receivedMessages[index] instanceof ArrayBuffer,
"Should receive an arraybuffer!");
checkArrayBuffer(index, receivedMessages[index], expectedValues[index]);
}

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

@ -13,7 +13,7 @@
<script class="testbody" type="text/javascript">
function debug(msg) {
function debug(msg) {
ok(true, msg);
}
@ -69,7 +69,7 @@ function check(index)
}
debug("Checking message #" + index + ".");
ok(receivedMessages[index] instanceof Blob,
ok(receivedMessages[index] instanceof Blob,
"We should be receiving a Blob");
var reader = new FileReader();
reader.readAsArrayBuffer(receivedMessages[index]);

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

@ -13,7 +13,7 @@
<script class="testbody" type="text/javascript">
function debug(msg) {
function debug(msg) {
ok(1, msg);
}

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

@ -1,60 +1,60 @@
<!--
Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/
-->
<!DOCTYPE html>
<html>
<!--
Tests of DOM Worker Blob constructor
-->
<head>
<title>Test for DOM Worker Blob constructor</title>
<script src="/tests/SimpleTest/SimpleTest.js"></script>
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
</head>
<body>
<p id="display"></p>
<div id="content" style="display: none">
</div>
<pre id="test">
<script class="testbody" type="text/javascript">
(function() {
onerror = function(e) {
ok(false, "Main Thread had an error: " + event.data);
SimpleTest.finish();
};
function f() {
onmessage = function(e) {
var b = new Blob([e.data, "World"],{type: "text/plain"});
var fr = new FileReaderSync();
postMessage({text: fr.readAsText(b), type: b.type});
};
}
var b = new Blob([f,"f();"]);
var u = URL.createObjectURL(b);
var w = new Worker(u);
w.onmessage = function(e) {
URL.revokeObjectURL(u);
is(e.data.text, fr.result);
is(e.data.type, "text/plain");
SimpleTest.finish();
};
w.onerror = function(e) {
is(e.target, w);
ok(false, "Worker had an error: " + e.message);
SimpleTest.finish();
};
b = new Blob(["Hello, "]);
var fr = new FileReader();
fr.readAsText(new Blob([b, "World"],{}));
fr.onload = function() {
w.postMessage(b);
};
SimpleTest.waitForExplicitFinish();
})();
</script>
</pre>
</body>
</html>
<!--
Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/
-->
<!DOCTYPE html>
<html>
<!--
Tests of DOM Worker Blob constructor
-->
<head>
<title>Test for DOM Worker Blob constructor</title>
<script src="/tests/SimpleTest/SimpleTest.js"></script>
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
</head>
<body>
<p id="display"></p>
<div id="content" style="display: none">
</div>
<pre id="test">
<script class="testbody" type="text/javascript">
(function() {
onerror = function(e) {
ok(false, "Main Thread had an error: " + event.data);
SimpleTest.finish();
};
function f() {
onmessage = function(e) {
var b = new Blob([e.data, "World"],{type: "text/plain"});
var fr = new FileReaderSync();
postMessage({text: fr.readAsText(b), type: b.type});
};
}
var b = new Blob([f,"f();"]);
var u = URL.createObjectURL(b);
var w = new Worker(u);
w.onmessage = function(e) {
URL.revokeObjectURL(u);
is(e.data.text, fr.result);
is(e.data.type, "text/plain");
SimpleTest.finish();
};
w.onerror = function(e) {
is(e.target, w);
ok(false, "Worker had an error: " + e.message);
SimpleTest.finish();
};
b = new Blob(["Hello, "]);
var fr = new FileReader();
fr.readAsText(new Blob([b, "World"],{}));
fr.onload = function() {
w.postMessage(b);
};
SimpleTest.waitForExplicitFinish();
})();
</script>
</pre>
</body>
</html>

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

@ -16,7 +16,7 @@ Tests of DOM Worker Threads (Bug 437152)
<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=437152">DOM Worker Threads Bug 437152</a>
<p id="display"></p>
<div id="content" style="display: none">
</div>
<pre id="test">
<script class="testbody" type="text/javascript">

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

@ -14,7 +14,7 @@
<iframe></iframe>
<p id="display"></p>
<div id="content" style="display: none">
</div>
<pre id="test">
<script class="testbody" type="text/javascript">

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

@ -16,7 +16,7 @@ Tests of DOM Worker Threads (Bug 437152)
<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=437152">DOM Worker Threads Bug 437152</a>
<p id="display"></p>
<div id="content" style="display: none">
</div>
<pre id="test">
<script class="testbody" type="text/javascript">

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

@ -16,7 +16,7 @@ Tests of DOM Worker Threads (Bug 437152)
<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=437152">DOM Worker Threads Bug 437152</a>
<p id="display"></p>
<div id="content" style="display: none">
</div>
<pre id="test">
<script class="testbody" type="text/javascript">

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

@ -16,7 +16,7 @@ Tests of DOM Worker Threads (Bug 437152)
<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=437152">DOM Worker Threads Bug 437152</a>
<p id="display"></p>
<div id="content" style="display: none">
</div>
<pre id="test">
<script class="testbody" type="text/javascript">

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

@ -16,7 +16,7 @@ Tests of DOM Worker Threads (Bug 437152)
<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=437152">DOM Worker Threads Bug 437152</a>
<p id="display"></p>
<div id="content" style="display: none">
</div>
<pre id="test">
<script class="testbody" type="text/javascript">

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

@ -1,42 +1,42 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<script>
function boom() {
a = new AudioContext();
b = new XMLHttpRequest({});
c = new ArrayBuffer(34464);
d = new XMLHttpRequest();
try {
d.open('G', '', false);
} catch (e) {}
try {
x = new ArrayBuffer(1);
a.decodeAudioData(x, function() {}, function() {
try {
b.open('G', '', false);
} catch (e) {}
try {
b.send();
} catch (e) {}
try {
d.open('P', '', false);
} catch (e) {}
try {
d.send();
} catch (e) {}
})
} catch (e) {}
try {
d.send();
} catch (e) {}
}
boom();
</script>
</head>
<body></body>
</html>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<script>
function boom() {
a = new AudioContext();
b = new XMLHttpRequest({});
c = new ArrayBuffer(34464);
d = new XMLHttpRequest();
try {
d.open('G', '', false);
} catch (e) {}
try {
x = new ArrayBuffer(1);
a.decodeAudioData(x, function() {}, function() {
try {
b.open('G', '', false);
} catch (e) {}
try {
b.send();
} catch (e) {}
try {
d.open('P', '', false);
} catch (e) {}
try {
d.send();
} catch (e) {}
})
} catch (e) {}
try {
d.send();
} catch (e) {}
}
boom();
</script>
</head>
<body></body>
</html>

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

@ -46,7 +46,7 @@ window.addEventListener("message", function (aEvent) {
if (data.type === "todo_is") {
SimpleTest.todo_is(data.actual, data.expected, data.message);
window.postMessage("pong", "*");
}
});

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

@ -3,7 +3,7 @@
<head>
<meta charset="utf-8">
<title>Test for XMLHttpRequest with system privileges</title>
<script src="/tests/SimpleTest/SimpleTest.js"></script>
<script src="/tests/SimpleTest/SimpleTest.js"></script>
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
</head>
<body onload="setup();">
@ -11,7 +11,7 @@
<iframe id="loader"></iframe>
</p>
<div id="content" style="display: none">
</div>
<pre id="test">
<script class="testbody" type="application/javascript">

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

@ -13,7 +13,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=743666
<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=743666">Mozilla Bug 743666</a>
<p id="display"></p>
<div id="content" style="display: none">
</div>
<pre id="test">
<script type="application/javascript">

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

@ -3,14 +3,14 @@
<head>
<meta charset="utf-8">
<title>Test for XMLHttpRequest with system privileges</title>
<script src="/tests/SimpleTest/SimpleTest.js"></script>
<script src="/tests/SimpleTest/SimpleTest.js"></script>
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
</head>
<body onload="runTests();">
<p id="display">
</p>
<div id="content" style="display: none">
</div>
<pre id="test">
<script class="testbody" type="application/javascript">

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

@ -40,7 +40,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=525816
}
if (event.data.type == "ok") {
SimpleTest.ok(event.data.bool, event.data.msg);
}
});
// Final test harness setup and launch.

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

@ -13,7 +13,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=651072
<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=651072">Mozilla Bug 651072</a>
<p id="display"></p>
<div id="content" style="display: none">
</div>
<pre id="test">
<script class="testbody" type="text/javascript">
@ -65,7 +65,7 @@ function continueAfterReport() {
}
}
xhr.open("GET", "file_html_in_xhr2.html");
xhr.send();
xhr.send();
}
function testNonParsingText() {
@ -79,13 +79,13 @@ function testNonParsingText() {
}
xhr.open("GET", "file_html_in_xhr2.html");
xhr.responseType = "text";
xhr.send();
xhr.send();
}
function testSyncXHR() {
xhr = new XMLHttpRequest();
xhr.open("GET", "file_html_in_xhr3.html", false);
xhr.send();
xhr.send();
is(xhr.responseText, "SUCCESS\n", "responseText should be ready by now");
is(xhr.responseXML, null, "responseXML should be null in the sync case");
SimpleTest.finish();

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

@ -12,7 +12,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=
<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=">Mozilla Bug </a>
<p id="display"></p>
<div id="content" style="display: none">
</div>
<pre id="test">
<script type="application/javascript">

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

@ -52,7 +52,7 @@ worker.addEventListener("message", function (aEvent) {
}
if (data.status === "end") {
SpecialPowers.removeObserver(requestObserver, "specialpowers-http-notify-request");
}
}
});

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

@ -39,7 +39,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=498998
}
if (event.data.type == "ok") {
SimpleTest.ok(event.data.bool, event.data.msg);
}
});
// Final test harness setup and launch.

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

@ -13,7 +13,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=814064
<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=814064">Mozilla Bug 814064</a>
<p id="display"></p>
<div id="content" style="display: none">
</div>
<pre id="test">
<script type="application/javascript">

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

@ -6,8 +6,8 @@
-moz-user-modify: read-write;
}
/* Styles to alter look of things in the Editor content window
* that should NOT be removed when we display in completely WYSIWYG
/* Styles to alter look of things in the Editor content window
* that should NOT be removed when we display in completely WYSIWYG
* "Browser Preview" mode.
* Anything that should change, like appearance of table borders
* and Named Anchors, should be placed in EditorContent.css instead of here.
@ -19,13 +19,13 @@
cursor: text;
}
/* Use default arrow over objects with size that
/* Use default arrow over objects with size that
are selected when clicked on.
Override the browser's pointer cursor over links
*/
img, img[usemap], area,
object, object[usemap],
object, object[usemap],
applet, hr, button, input, textarea, select,
a:link img, a:visited img, a:active img,
a[name]:-moz-only-whitespace {
@ -41,7 +41,7 @@ a:link img, a:visited img {
-moz-user-input: none;
}
/* We suppress user/author's prefs for link underline,
/* We suppress user/author's prefs for link underline,
so we must set explicitly. This isn't good!
*/
a:link {

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

@ -12,8 +12,8 @@
height: 200px;
overflow-y: auto;
}
#transform {
transform: translate(0);
#transform {
transform: translate(0);
}
#sticky {
background-color: white;

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

@ -33,7 +33,7 @@ waitUntilApzStable()
height: 1000px; /* so the subframe has room to scroll */
z-index: 2;
background: linear-gradient(red, blue); /* so you can see it scroll */
transform: translateZ(0px); /* to force active layers */
transform: translateZ(0px); /* to force active layers */
will-change: transform; /* to force active layers */
}
</style>

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

@ -12,7 +12,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=513439
<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=513439">Mozilla Bug 513439</a>
<p id="display"></p>
<div id="content" style="display: none">
</div>
<pre id="test">
<script type="application/javascript">

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

@ -2,10 +2,10 @@
<head>
<title>JavaScript Test Driver - reftests</title>
<!--
This test driver is to be invoked using
This test driver is to be invoked using
jsreftest.html?test=path-to-test-js
It will load the associated test javascript file
It will load the associated test javascript file
using the default script language attributes, then execute the
test.
-->

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

@ -255,7 +255,7 @@ mstyle[displaystyle="true" i] {
/*
The mfrac element sets displaystyle to "false", or if it was already false
increments scriptlevel by 1, within numerator and denominator.
*/
*/
mfrac > * {
-moz-script-level: auto;
-moz-math-display: inline;

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

@ -315,7 +315,7 @@
/* Ge'ez set of Ethiopic ordered list. There are other locale-dependent sets.
* For the time being, let's implement two Ge'ez sets only
* per Momoi san's suggestion in bug 102252.
* per Momoi san's suggestion in bug 102252.
* For details, refer to http://www.ethiopic.org/Collation/OrderedLists.html. */
@counter-style -moz-ethiopic-halehame {
system: alphabetic;

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

@ -2,7 +2,7 @@
<html>
<head>
<title>Test cookie requests from within a window hierarchy of different base domains</title>
<script src="/tests/SimpleTest/SimpleTest.js"></script>
<script src="/tests/SimpleTest/SimpleTest.js"></script>
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
</head>
<body onload="setupTest('http://example.org/tests/netwerk/test/mochitests/file_domain_hierarchy_inner.html', 3, 3)">

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

@ -2,7 +2,7 @@
<html>
<head>
<title>Test for Cross domain access to properties</title>
<script src="/tests/SimpleTest/SimpleTest.js"></script>
<script src="/tests/SimpleTest/SimpleTest.js"></script>
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
</head>
<body onload="setupTest('http://example.com/tests/netwerk/test/mochitests/file_domain_inner.html', 3, 2)">

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

@ -3,7 +3,7 @@
<head>
<title>Test for Cross domain access to properties</title>
<script type="text/javascript" src="/MochiKit/MochiKit.js"></script>
<script src="/tests/SimpleTest/SimpleTest.js"></script>
<script src="/tests/SimpleTest/SimpleTest.js"></script>
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
</head>
<!--

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

@ -18,7 +18,7 @@ var observer;
async function doTest()
{
await SpecialPowers.setBoolPref("network.http.debug-observations", true);
observer = SpecialPowers.wrapCallback(function(subject, topic, data) {
remainder--;
ok(true, "observed remainder = " + remainder);

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

@ -2,7 +2,7 @@
<html>
<head>
<title>Test for Cross domain access to properties</title>
<script src="/tests/SimpleTest/SimpleTest.js"></script>
<script src="/tests/SimpleTest/SimpleTest.js"></script>
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
</head>
<body onload="setupTest('http://test1.example.org/tests/netwerk/test/mochitests/file_domain_inner.html', 5, 2)">

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

@ -2,7 +2,7 @@
<html>
<head>
<title>Test for Cross domain access to properties</title>
<script src="/tests/SimpleTest/SimpleTest.js"></script>
<script src="/tests/SimpleTest/SimpleTest.js"></script>
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
</head>
<body onload="setupTest('http://test1.example.org/tests/netwerk/test/mochitests/file_subdomain_inner.html', 5, 2)">

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

@ -2,7 +2,7 @@
<html>
<head>
<title>Test for Cross domain access to properties</title>
<script src="/tests/SimpleTest/SimpleTest.js"></script>
<script src="/tests/SimpleTest/SimpleTest.js"></script>
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
</head>
<body onload="setupTest('http://example.org/tests/netwerk/test/mochitests/file_subdomain_inner.html', 5, 2)">

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

@ -2,7 +2,7 @@
<html>
<head>
<title>Test for Cross domain access to properties</title>
<script src="/tests/SimpleTest/SimpleTest.js"></script>
<script src="/tests/SimpleTest/SimpleTest.js"></script>
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
</head>
<body onload="setupTest('http://mochi.test:8888/tests/netwerk/test/mochitests/file_localhost_inner.html', 5, 2)">

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

@ -2,7 +2,7 @@
<html>
<head>
<title>Test for Cross domain access to properties</title>
<script src="/tests/SimpleTest/SimpleTest.js"></script>
<script src="/tests/SimpleTest/SimpleTest.js"></script>
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
</head>
<body onload="setupTest('http://sub1.test1.example.org/tests/netwerk/test/mochitests/file_subdomain_inner.html', 5, 2)">

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

@ -2,7 +2,7 @@
<html>
<head>
<title>Test for Cross domain access to properties</title>
<script src="/tests/SimpleTest/SimpleTest.js"></script>
<script src="/tests/SimpleTest/SimpleTest.js"></script>
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
</head>
<body onload="runThisTest()">

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

@ -2,7 +2,7 @@
<html>
<head>
<title>Test for Cross domain access to properties</title>
<script src="/tests/SimpleTest/SimpleTest.js"></script>
<script src="/tests/SimpleTest/SimpleTest.js"></script>
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
</head>
<body onload="setupTest('http://example.org/tests/netwerk/test/mochitests/file_domain_inner.html', 5, 2)">

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

@ -4,7 +4,7 @@
</head>
<body>
This is frame 1:
This is frame 1:
<script>
"use strict";
// eslint-disable-next-line no-unsanitized/method

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

@ -4,7 +4,7 @@
</head>
<body>
This is frame 2:
This is frame 2:
<script>
"use strict";
// eslint-disable-next-line no-unsanitized/method

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

@ -17,7 +17,7 @@
</head>
<body>
<!-- This frame should be loaded over HTTPS to set the STS header. -->
This frame was loaded using
This frame was loaded using
<script>
"use strict";
// eslint-disable-next-line no-unsanitized/method

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

@ -17,7 +17,7 @@
</head>
<body>
<!-- This frame should be loaded over HTTPS to set the STS header. -->
This frame was loaded using
This frame was loaded using
<script>
"use strict";
// eslint-disable-next-line no-unsanitized/method

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

@ -17,7 +17,7 @@
</head>
<body>
<!-- This frame should be loaded over HTTPS to set the STS header. -->
This frame was loaded using
This frame was loaded using
<script>
"use strict";
// eslint-disable-next-line no-unsanitized/method

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

@ -15,6 +15,6 @@
<input xmlns="http://www.w3.org/1999/xhtml" id="textInput2" size="6" value="test" label="input" />
<input xmlns="http://www.w3.org/1999/xhtml" id="textInput3" class="asdf" size="6" value="test" label="input" />
</vbox>
</dialog>
</window>

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

@ -1,56 +1,56 @@
<html>
<head>
<meta name="viewport" content="minimum-scale=1,width=device-width">
<style>
body {
width: 100%;
margin: 0px;
transition: transform 300ms ease;
overflow-x: hidden;
}
body.section1 {
transform: translateX(0%);
}
body.section2 {
transform: translateX(-100%);
}
section {
width: 100%;
height: 100%;
position: absolute;
}
#section1 {
left: 0px;
}
#section2 {
left: 100%;
}
.mypossie {
position:absolute;
left: -1000px;
}
</style>
</head>
<body class="section1">
<section id="section1">
<div id="assertMe1">
<p>Section 1</p>
</div>
<button id="b1" onclick="var sect = document.getElementsByTagName('body')[0]; sect.classList.add('section2'); sect.classList.remove('section1');">Show section 2</button>
</section>
<section id="section2">
<div id="assertMe2">
<p>Section 2</p>
</div>
<button id="b2" onclick="var sect = document.getElementsByTagName('body')[0]; sect.classList.add('section1'); sect.classList.remove('section2'); ">Show section 1</button>
</section>
<section class='mypossie'>out in left field!</section>
</body>
</html>
<html>
<head>
<meta name="viewport" content="minimum-scale=1,width=device-width">
<style>
body {
width: 100%;
margin: 0px;
transition: transform 300ms ease;
overflow-x: hidden;
}
body.section1 {
transform: translateX(0%);
}
body.section2 {
transform: translateX(-100%);
}
section {
width: 100%;
height: 100%;
position: absolute;
}
#section1 {
left: 0px;
}
#section2 {
left: 100%;
}
.mypossie {
position:absolute;
left: -1000px;
}
</style>
</head>
<body class="section1">
<section id="section1">
<div id="assertMe1">
<p>Section 1</p>
</div>
<button id="b1" onclick="var sect = document.getElementsByTagName('body')[0]; sect.classList.add('section2'); sect.classList.remove('section1');">Show section 2</button>
</section>
<section id="section2">
<div id="assertMe2">
<p>Section 2</p>
</div>
<button id="b2" onclick="var sect = document.getElementsByTagName('body')[0]; sect.classList.add('section1'); sect.classList.remove('section2'); ">Show section 1</button>
</section>
<section class='mypossie'>out in left field!</section>
</body>
</html>

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

@ -1,30 +1,30 @@
<html>
<head>
<title></title>
</head>
<script type="text/javascript">
function remove() {
let iframe = document.getElementById("iframe1");
let myDiv = document.getElementById("myDiv");
myDiv.removeChild(iframe);
}
function addBack() {
let iframe = '<iframe src="formPage.html" marginheight="0" marginwidth="0" topmargin="0" leftmargin="600" allowtransparency="true" frameborder="0" height="600" scrolling="no" width="120" id="iframe1"></iframe>';
let myDiv2 = document.getElementById("myDiv2");
// eslint-disable-next-line no-unsanitized/property
myDiv2.innerHTML = iframe;
}
</script>
<body>
<div id='myDiv'>
<iframe src="formPage.html" marginheight="0" marginwidth="0" topmargin="0" leftmargin="0" allowtransparency="true"
frameborder="1" height="900" scrolling="no" width="500" id="iframe1"></iframe>
</div>
<div id='myDiv2'>
</div>
<input type='button' id='addBackFrame' value='Add back frame' onclick='addBack();' />
</body>
</html>
<html>
<head>
<title></title>
</head>
<script type="text/javascript">
function remove() {
let iframe = document.getElementById("iframe1");
let myDiv = document.getElementById("myDiv");
myDiv.removeChild(iframe);
}
function addBack() {
let iframe = '<iframe src="formPage.html" marginheight="0" marginwidth="0" topmargin="0" leftmargin="600" allowtransparency="true" frameborder="0" height="600" scrolling="no" width="120" id="iframe1"></iframe>';
let myDiv2 = document.getElementById("myDiv2");
// eslint-disable-next-line no-unsanitized/property
myDiv2.innerHTML = iframe;
}
</script>
<body>
<div id='myDiv'>
<iframe src="formPage.html" marginheight="0" marginwidth="0" topmargin="0" leftmargin="0" allowtransparency="true"
frameborder="1" height="900" scrolling="no" width="500" id="iframe1"></iframe>
</div>
<div id='myDiv2'>
</div>
<input type='button' id='addBackFrame' value='Add back frame' onclick='addBack();' />
</body>
</html>

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

@ -9,4 +9,4 @@
</head>
<body>
</body>
</html>
</html>

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

@ -100,7 +100,7 @@ There should be a form here:
<p id="cheeseLiker">I like cheese</p>
<input type="submit" value="Click!"/>
<input type="radio" id="lone_disabled_selected_radio" name="not_a_snack" value="cumberland" checked="checked" disabled="disabled" />Cumberland sausage
</form>

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

@ -35,4 +35,4 @@
<input name="myCheckBox" type="checkbox" />
<input id="createDivButton" type="button" value="create a div" onclick="addDelayedElement()" />
</body>
</html>
</html>

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

@ -13,4 +13,4 @@
<iframe src="test.html" id="test_iframe"></iframe>
<iframe src="test.html" id="test_iframe" name="test_iframe_name"></iframe>
</body>
</html>
</html>

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

@ -8,6 +8,6 @@
<title>Marionette IFrame Test</title>
</head>
<body>
<iframe src="test_inner_iframe.html" id="test_iframe"></iframe>
<iframe src="test_inner_iframe.html" id="test_iframe"></iframe>
</body>
</html>
</html>

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

@ -9,7 +9,7 @@
</head>
<body>
<h1 id="testh1">OOP Test Frame 1</h1>
Hello!
Hello!
</body>
</html>

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

@ -9,7 +9,7 @@
</head>
<body>
<h1 id="testh1">OOP Test Frame 2</h1>
Hello!
Hello!
</body>
</html>

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

@ -14,7 +14,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=8675309
<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=8675309">Mozilla Bug 8675309</a>
<p id="display"></p>
<div id="content" style="display: none">
</div>
<pre id="test">
</pre>

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

@ -65,13 +65,13 @@
{ type : "Files",
data : null }
]];
function doOnDrop(aEvent) {
gData = aEvent.dataTransfer.getData(dragDrop[0][0].type);
aEvent.preventDefault(); // cancels event and keeps dropEffect
// as was before event.
}
function doOnDragStart(aEvent) {
var dt = aEvent.dataTransfer;
switch (aEvent.currentTarget.id) {
@ -93,7 +93,7 @@
aEvent.dataTransfer.effectAllowed = "all";
aEvent.preventDefault(); // sets target this element
}
function doOnDragOver(aEvent) {
gOver = true;
if (gSetDropEffect)

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

@ -17,7 +17,7 @@ SimpleTest.expectUncaughtException();
ok(true, "a call to ok");
throw "this is a deliberately thrown exception";
]]></script>
]]></script>
</body>
</window>

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

@ -23,7 +23,7 @@ SimpleTest.executeSoon(function() {
SimpleTest.finish();
});
]]></script>
]]></script>
</body>
</window>

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

@ -14,7 +14,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=670817
<script type="application/javascript"><![CDATA[
ok(true, "a true call to ok");
ok(false, "a false call to ok");
]]></script>
]]></script>
</body>
</window>

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

@ -1,6 +1,6 @@
<?xml version="1.0"?>
<?xml-stylesheet href="chrome://global/skin" type="text/css"?>
<?xml-stylesheet href="chrome://mochikit/content/static/harness.css"
<?xml-stylesheet href="chrome://mochikit/content/static/harness.css"
type="text/css"?>
<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
@ -23,7 +23,7 @@ function loadTests()
window.removeEventListener("load", loadTests, false);
getTestList({}, linkAndHookup);
}
function linkAndHookup(links) {
// load server.js in so we can share template functions
var scriptLoader = Cc["@mozilla.org/moz/jssubscript-loader;1"].
@ -49,7 +49,7 @@ function linkAndHookup(links) {
]]>
</script>
<vbox>
<vbox>
<button label="Run Chrome Tests" id="runtests" flex="1"/>
<body xmlns="http://www.w3.org/1999/xhtml" id="xulharness">

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

@ -7,7 +7,7 @@ body {
}
#xulharness {
position: fixed;
position: fixed;
top: 30px;
bottom: 0;
right: 0px;
@ -30,7 +30,7 @@ li, li.test, li.dir {
line-height: 15px;
}
ul {
ul {
list-style: none;
margin: 0;
margin-left: 1em;
@ -38,7 +38,7 @@ ul {
border: none;
}
ul.top {
ul.top {
padding: 0;
padding-left: 1em;
}
@ -57,7 +57,7 @@ a#runtests, a {
color: #3333cc;
}
li.non-test a {
li.non-test a {
color: #999999;
}

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

@ -15,7 +15,7 @@
<input id="testKeyEvent4" onkeydown="return false;" onkeypress="press4 = true">
</p>
<div id="content" style="display: none">
</div>
<pre id="test">
<script class="testbody" type="text/javascript">

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

@ -60,11 +60,11 @@ span.unexpected_pass, .unexpected_pass .col-result {
/******************************
* RESULTS TABLE
*
*
* 1. Table Layout
* 2. Debug
* 3. Sorting items
*
*
******************************/
/*------------------

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

@ -41,9 +41,9 @@ function testWindowlessBrowser(chromePrivileged) {
ok(win.screenY == 0, "window.screenY should be 0 in a windowless browser");
ok(win.outerWidth == 0, "window.outerWidth should be 0 in a windowless browser");
ok(win.outerHeight == 0, "window.outerHeight should be 0 in a windowless browser");
ok(win.external, "window.external should be defined");
var exception;
try {
@ -51,7 +51,7 @@ function testWindowlessBrowser(chromePrivileged) {
} catch(e) {
exception = e;
}
ok(!exception, "window.external.AddSearchProvider should be ignore withour raising an exception");
webNav.close();