Bug 1302613 - add elements to the document so we can print debugging info when the test case times out. r=bechen
authorJW Wang <jwwang@mozilla.com>
Mon, 17 Oct 2016 18:01:00 +0800
changeset 363392 281d252a664f7e7cb788135410782b1012c1e4a9
parent 363391 44d29bac36549e22aca469e8d2dbcac322522c81
child 363393 3f0590c71a0a40608d7c0d6e5a84c8fbe1e6cf5f
push id1369
push userjlorenzo@mozilla.com
push dateMon, 27 Feb 2017 14:59:41 +0000
treeherdermozilla-release@d75a1dba431f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbechen
bugs1302613
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 1302613 - add elements to the document so we can print debugging info when the test case times out. r=bechen MozReview-Commit-ID: HQCfodjm99i
dom/media/test/test_paused_after_ended.html
--- a/dom/media/test/test_paused_after_ended.html
+++ b/dom/media/test/test_paused_after_ended.html
@@ -24,16 +24,17 @@ function ended(evt) {
 function pause(evt) {
   var v = evt.target;
   v.removeEventListener("pause", pause);
   v.gotPause = true;
 }
 
 function startTest(test, token) {
   var v = document.createElement('video');
+  document.body.appendChild(v);
   v.token = token;
   manager.started(v.token);
   v.src = test.name;
   v._name = test.name;
   v._finished = false;
   v.load();
   is(v.paused, true,  v._name + " must be paused at start");