Bug 940381 - Try to make mochitest loading more robust. r=dholbert

This commit is contained in:
Robert Longson 2013-12-02 11:16:19 +00:00
parent ad649152bc
commit f9c6841198
15 changed files with 18 additions and 19 deletions

View File

@ -65,7 +65,7 @@ function run()
SimpleTest.finish();
}
window.addEventListener("load", run, false);
$("svg").addEventListener("load", run, false);
//]]></script>
</pre>

View File

@ -156,7 +156,7 @@ function runTest()
SimpleTest.finish();
}
window.addEventListener("load", runTest, false);
$("svg").addEventListener("load", runTest, false);
</script>
</pre>
</body>

View File

@ -375,7 +375,7 @@ function runTestsWithPref() {
SpecialPowers.pushPrefEnv({ 'set': [['svg.marker-improvements.enabled', true]] }, runTests);
}
window.addEventListener("load", runTestsWithPref, false);
$("svg").addEventListener("load", runTestsWithPref, false);
</script>
</pre>
</body>

View File

@ -251,7 +251,7 @@ function runTests()
SimpleTest.finish();
}
window.addEventListener("load", runTests, false);
$("svg").addEventListener("load", runTests, false);
</script>
</pre>
</body>

View File

@ -84,7 +84,7 @@ function runTests()
SimpleTest.finish();
}
window.addEventListener("load", runTests, false);
$("svg").addEventListener("load", runTests, false);
</script>
</pre>
</body>

View File

@ -103,7 +103,7 @@ function runTest()
SimpleTest.finish();
}
window.addEventListener("load", runTest, false);
$("svg").addEventListener("load", runTest, false);
</script>
</pre>
</body>

View File

@ -100,7 +100,7 @@ function run()
SimpleTest.finish();
}
window.addEventListener("load", run, false);
$("svg").addEventListener("load", run, false);
</script>
</pre>
</body>

View File

@ -77,7 +77,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=302971
SimpleTest.finish();
}
window.addEventListener("load", runTests, false);
$("svg").addEventListener("load", runTests, false);
</script>
</pre>
</body>

View File

@ -59,7 +59,7 @@ function runTests()
SimpleTest.finish();
}
window.addEventListener("load", runTests, false);
$("svg").addEventListener("load", runTests, false);
</script>
</pre>
</body>

View File

@ -95,7 +95,7 @@ function run1()
}
}
window.addEventListener("load", run, false);
$("svg").addEventListener("load", run, false);
]]>
</script>

View File

@ -181,7 +181,7 @@ function runTests() {
SimpleTest.finish();
}
window.addEventListener("load", runTests, false);
$("svg").addEventListener("load", runTests, false);
</script>
</pre>
</body>

View File

@ -135,7 +135,7 @@ function runTests() {
SimpleTest.finish();
}
window.addEventListener("load", runTests, false);
$("svg").addEventListener("load", runTests, false);
</script>
</pre>
</body>

View File

@ -15,7 +15,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=655877
<p id="display"></p>
<div id="content" style="display: none"></div>
<iframe src="text-helper-selection.svg" width="400" height="300"></iframe>
<iframe id="svg" src="text-helper-selection.svg" width="400" height="300"></iframe>
<pre id="test">
<script class="testbody" type="application/javascript">
@ -61,9 +61,8 @@ function deselect()
function testSelection()
{
svg = document.getElementsByTagName("iframe")[0];
doc = svg.contentDocument;
win = svg.contentWindow;
doc = $("svg").contentDocument;
win = $("svg").contentWindow;
dragstart = doc.getElementById("dragstart");
dragend = doc.getElementById("dragend");
@ -137,7 +136,7 @@ if (/Android/.test(navigator.userAgent)) {
ok(true, "No need to test text selection with the mouse on Android.");
SimpleTest.finish();
} else {
window.addEventListener("load", runTest, false);
$("svg").addEventListener("load", runTest, false);
}
</script>
</pre>

View File

@ -71,7 +71,7 @@ function runTest()
SimpleTest.finish();
}
window.addEventListener("load", runTest, false);
$("svg").addEventListener("load", runTest, false);
</script>
</pre>
</body>

View File

@ -29,7 +29,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=547596
SimpleTest.finish();
}
window.addEventListener("load", runTests, false);
$("svg").addEventListener("load", runTests, false);
</script>
</body>
</html>