Skip to content
Snippets Groups Projects
Commit 2f17d5e2 authored by Emilio Cobos Álvarez 's avatar Emilio Cobos Álvarez
Browse files

Bug 1781434 - Tentative fix tor test_bug398289.html CLOSED TREE

parent b6c7be1c
No related branches found
No related tags found
No related merge requests found
......@@ -6,25 +6,23 @@
<script src="chrome://mochikit/content/tests/SimpleTest/WindowSnapshot.js"></script>
<link rel="stylesheet" type="text/css" href="chrome://mochikit/content/tests/SimpleTest/test.css" />
</head>
<body style="height: 100%" onload="setTimeout(onBodyLoad, 0);">
<iframe id="test" src="398289-resource.xhtml" width="100%" height="100%">
</iframe>
<body style="height: 100%; overflow: hidden; margin: 0" onload="setTimeout(onBodyLoad, 0);">
<iframe frmeborder=0 scrolling=no id="test" src="398289-resource.xhtml" width="100%" height="100%"></iframe>
<script class="testbody" type="text/javascript">
var snap1, snap2;
SimpleTest.waitForExplicitFinish();
async function onBodyLoad() {
window.frames[0].document.getElementById("test").selectedIndex = 0;
window.frames[0].document.getElementById("test").selectedIndex = 1;
snap1 = await snapshotWindow(window);
document.getElementById("test").onload = onFrameLoad;
window.frames[0].location.reload();
}
async function onFrameLoad() {
snap2 = await snapshotWindow(window);
......@@ -32,7 +30,6 @@
[equal, str1, str2] = compareSnapshots(snap1, snap2, true);
ok(equal, "persistent attribute in tab box broken, expected: "+str1+" got: "+str2);
SimpleTest.finish();
}
</script>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment