Make test_acid3_test46.html wait for onload. (orange fix)

This commit is contained in:
Henri Sivonen 2010-04-28 16:21:07 +03:00
Родитель a4cb899e0e
Коммит d37a8c94a6
1 изменённых файлов: 4 добавлений и 2 удалений

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

@ -24,7 +24,7 @@ extracted from the test framework there and put into Mochitest.
<body>
<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=156716">Mozilla Bug 156716</a>
<p id="display">
<iframe src="empty.html" id="selectors"></iframe>
<iframe src="empty.html" id="selectors" onload="runTest()"></iframe>
</p>
<div id="content" style="display: none">
@ -34,6 +34,8 @@ extracted from the test framework there and put into Mochitest.
/** Test for Bug 156716 **/
function runTest() {
function getTestDocument() {
var iframe = document.getElementById("selectors");
var doc = iframe.contentDocument;
@ -131,7 +133,7 @@ extracted from the test framework there and put into Mochitest.
check('y2', false);
check('y3', false);
check('y4', true);
}
</script>
</pre>
</body>