Bug 970290 - Wait "testready" instead of "load" event. r=fabrice, a=test-only
authorKan-Ru Chen <kanru@kanru.info>
Thu, 20 Feb 2014 10:25:14 +0800
changeset 176346 c4725c7bb63f90c96a548261c64edaa460cdf510
parent 176345 92a55a89fb54dd4b4c248df2387e199eda56983c
child 176347 d244572b8eb5f35256957a610ae42c9d7150e269
push id445
push userffxbld
push dateMon, 10 Mar 2014 22:05:19 +0000
treeherdermozilla-release@dc38b741b04e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersfabrice, test-only
bugs970290
milestone28.0
Bug 970290 - Wait "testready" instead of "load" event. r=fabrice, a=test-only
dom/browser-element/mochitest/test_browserElement_NoPref.html
dom/browser-element/mochitest/test_browserElement_NoWhitelist.html
--- a/dom/browser-element/mochitest/test_browserElement_NoPref.html
+++ b/dom/browser-element/mochitest/test_browserElement_NoPref.html
@@ -36,14 +36,14 @@ function runTest() {
   iframe.addEventListener('load', function() {
     ok(true, 'Got iframe load event.');
     SimpleTest.finish();
   });
 
   iframe.src = browserElementTestHelpers.emptyPage1;
 }
 
-addEventListener('load', function() { SimpleTest.executeSoon(runTest); });
+addEventListener('testready', runTest);
 
 </script>
 
 </body>
 </html>
--- a/dom/browser-element/mochitest/test_browserElement_NoWhitelist.html
+++ b/dom/browser-element/mochitest/test_browserElement_NoWhitelist.html
@@ -37,14 +37,14 @@ function runTest() {
   iframe.addEventListener('load', function() {
     ok(true, 'Got iframe load event.');
     SimpleTest.finish();
   });
 
   iframe.src = browserElementTestHelpers.emptyPage1;
 }
 
-addEventListener('load', function() { SimpleTest.executeSoon(runTest); });
+addEventListener('testready', runTest);
 
 </script>
 
 </body>
 </html>