diff --git a/dom/xul/test/test_bug398289.html b/dom/xul/test/test_bug398289.html index eae7f2d923b964d18f53dcc5c26635f17207df4e..c93ef8a43516dfeca3ab8f903ee4f583b1eca9a0 100644 --- a/dom/xul/test/test_bug398289.html +++ b/dom/xul/test/test_bug398289.html @@ -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>