Backed out changeset 8aeda1b1d2e4 (bug 992685)
authorCarsten "Tomcat" Book <cbook@mozilla.com>
Tue, 20 Jan 2015 11:21:22 +0100
changeset 224699 9b3e240d8b8e2d76865a9aa25c69d38c7c99f28c
parent 224698 170aee1be0ddbb7f62d0071987ce351d35e152e3
child 224700 320c5e9764b9c2405cc35ff30b60c7d361e2febd
push id28143
push userryanvm@gmail.com
push dateWed, 21 Jan 2015 03:14:12 +0000
treeherdermozilla-central@540077a30866 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs992685
milestone38.0a1
backs out8aeda1b1d2e4345e1dfe75ff0b67a42217702970
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
Backed out changeset 8aeda1b1d2e4 (bug 992685)
dom/media/test/test_video_dimensions.html
--- a/dom/media/test/test_video_dimensions.html
+++ b/dom/media/test/test_video_dimensions.html
@@ -19,57 +19,37 @@ var startTest = function(test, token) {
 
   // Avoid a race for hardware resources between v1 and v2 on platforms with
   // a hardware decoder, like B2G.
   v1.preload = 'none';
   v2.preload = 'none';
 
   var numVideoElementsFinished = 0;
 
-  var ondurationchange = function(ev) {
-    var v = ev.target;
-    info(v.testName + " got durationchange");
-    v.durationchange = true;
-  };
-  var onresize = function(ev) {
-    var v = ev.target;
-    info(v.testName + " got resize");
-    ok(!v.resize, v.testName + " should only fire resize once for same size");
-    v.resize = true;
-    ok(v.durationchange, v.testName +
-       " durationchange event should have been emitted before resize");
-    is(v.videoWidth, test.width, v.testName + " width should be set on resize");
-    is(v.videoHeight, test.height, v.testName + " height should be set on resize");
-  };
   var onloadedmetadata = function(ev) {
     var v = ev.target;
-    info(v.testName + " got loadedmetadata");
     ok(!v.loadedmetadata, v.testName + " should only fire loadedmetadata once");
     v.loadedmetadata = true;
-    ok(v.resize, v.testName +
-       " resize event should have been emitted before loadedmetadata");
+    is(v.videoWidth, test.width, v.testName + " video width should be set on loadedmetadata");
+    is(v.videoHeight, test.height, v.testName + " video height should be set on loadedmetadata");
 
     numVideoElementsFinished += 1;
     if (v === v1) {
       removeNodeAndSource(v1);
       v2.play();
       vout.play();
     }
 
     if (numVideoElementsFinished === 3) {
       removeNodeAndSource(v2);
       removeNodeAndSource(vout);
       manager.finished(token);
     }
   };
   var setupElement = function(v, id) {
-    v.durationchange = false;
-    v.ondurationchange = ondurationchange;
-    v.resize = false;
-    v.onresize = onresize;
     v.loadedmetadata = false;
     v.onloadedmetadata = onloadedmetadata;
     document.body.appendChild(v);
   };
 
   v1.testName = test.name;
   v2.testName = test.name + " (Captured)";
   vout.testName = test.name + " (Stream)";