зеркало из https://github.com/mozilla/gecko-dev.git
Backed out changeset 6a72d0e28508 (bug 1472237) for raising failure frequency for dom/base/test/test_bug590812.html CLOSED TREE
This commit is contained in:
Родитель
131fb3aaf1
Коммит
344bd7042e
|
@ -9,31 +9,15 @@
|
||||||
<body onload="runTest()">
|
<body onload="runTest()">
|
||||||
<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=590812">Mozilla Bug 590812</a>
|
<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=590812">Mozilla Bug 590812</a>
|
||||||
<p id="display"></p>
|
<p id="display"></p>
|
||||||
|
<iframe src="http://noxul.example.com/tests/dom/base/test/file_bug590812.xml"></iframe>
|
||||||
|
<iframe src="file_bug590812.xml"></iframe>
|
||||||
|
<iframe src="file_bug590812-ref.xhtml"></iframe>
|
||||||
<pre id="test">
|
<pre id="test">
|
||||||
<script class="testbody" type="application/javascript">
|
<script class="testbody" type="application/javascript">
|
||||||
|
|
||||||
SimpleTest.waitForExplicitFinish();
|
SimpleTest.waitForExplicitFinish();
|
||||||
|
|
||||||
async function runTest() {
|
function runTest() {
|
||||||
const iframeUrls = [
|
|
||||||
"http://noxul.example.com/tests/dom/base/test/file_bug590812.xml",
|
|
||||||
"file_bug590812.xml",
|
|
||||||
"file_bug590812-ref.xhtml",
|
|
||||||
];
|
|
||||||
const promisesToLoad = [];
|
|
||||||
for (const src of iframeUrls) {
|
|
||||||
const iframe = document.createElement("iframe");
|
|
||||||
iframe.src = src;
|
|
||||||
document.body.appendChild(iframe);
|
|
||||||
promisesToLoad.push(
|
|
||||||
new Promise(resolve => {
|
|
||||||
iframe.onload = resolve;
|
|
||||||
})
|
|
||||||
);
|
|
||||||
}
|
|
||||||
await Promise.all(promisesToLoad);
|
|
||||||
|
|
||||||
sNoXUL = snapshotWindow(window.frames[0], false);
|
sNoXUL = snapshotWindow(window.frames[0], false);
|
||||||
sWithXUL = snapshotWindow(window.frames[1], false);
|
sWithXUL = snapshotWindow(window.frames[1], false);
|
||||||
sRef = snapshotWindow(window.frames[2], false);
|
sRef = snapshotWindow(window.frames[2], false);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче