Bug 1307059 - add elements to the DOM tree so we can dump debugging info when the test times out. r=bechen
authorJW Wang <jwwang@mozilla.com>
Mon, 03 Oct 2016 16:01:27 +0800
changeset 316171 1bafd695305cf7115019a8a019dd622c60128023
parent 316170 5e44ca63f9d94e5bb9c9f18ecb3c1f91ad90271d
child 316172 b7ccf1f2df8f4987d02b19ae5a16f4526323fb7c
push id30765
push userphilringnalda@gmail.com
push dateTue, 04 Oct 2016 03:06:46 +0000
treeherdermozilla-central@adb484f84dec [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbechen
bugs1307059
milestone52.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1307059 - add elements to the DOM tree so we can dump debugging info when the test times out. r=bechen MozReview-Commit-ID: Dgv3vCeMEBX
dom/media/test/test_new_audio.html
--- a/dom/media/test/test_new_audio.html
+++ b/dom/media/test/test_new_audio.html
@@ -26,19 +26,21 @@ var player = new Audio();
 
 function startTest(test, token) {
   if (!player.canPlayType(test.type)) {
     return;
   }
   manager.started(token);
   var a = new Audio(test.name);
   a.autoplay = true;
+  document.body.appendChild(a);
   a.addEventListener("ended",
                      function(e){
                         ok(true, "[" + a.src + "]We should get to the end. Oh look we did.");
+                        a.remove();
                         manager.finished(token);
                      },
                      false);
 }
 
 manager.runTests(gAudioTests, startTest);
 
 </script>