Bug 556698 - test_twostreams intermittent failure, reorder the test so the script always loads before the iframes which might race with it. a=test-only

This commit is contained in:
Benjamin Smedberg 2010-09-16 21:26:08 -07:00
parent c492c3d4da
commit 9e96779894

View File

@ -11,18 +11,6 @@
<body>
<p id="display"></p>
<iframe id="testframe1" name="testframe1" onload="frameLoaded(1)"></iframe>
<iframe id="testframe2" name="testframe2" onload="frameLoaded(2)"></iframe>
<embed src="loremipsum_nocache.txt" streammode="asfileonly"
frame="testframe1"
id="embedtest" style="width: 400px; height: 100px;"
type="application/x-test"></embed>
<embed src="loremipsum_nocache.txt" streammode="asfileonly"
frame="testframe2"
id="embedtest2" style="width: 400px; height: 100px;"
type="application/x-test"></embed>
<script type="text/javascript">
SimpleTest.waitForExplicitFinish();
@ -42,5 +30,15 @@
}
</script>
</body>
</html>
<iframe id="testframe1" name="testframe1" onload="frameLoaded(1)"></iframe>
<iframe id="testframe2" name="testframe2" onload="frameLoaded(2)"></iframe>
<embed src="loremipsum_nocache.txt" streammode="asfileonly"
frame="testframe1"
id="embedtest" style="width: 400px; height: 100px;"
type="application/x-test"></embed>
<embed src="loremipsum_nocache.txt" streammode="asfileonly"
frame="testframe2"
id="embedtest2" style="width: 400px; height: 100px;"
type="application/x-test"></embed>