Bug 495040 - Implement playbackRate and related bits (Fix other tests) r=kinetik
authorPaul Adenot <paul@paul.cx>
Thu, 22 Nov 2012 11:38:29 +0100
changeset 113988 a20b32f37e7a
parent 113987 fd80fa7611e0
child 113998 2a9472ee312c
push id18488
push userpaul@paul.cx
push dateThu, 22 Nov 2012 10:38:41 +0000
treeherdermozilla-inbound@a20b32f37e7a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerskinetik
bugs495040
milestone20.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 495040 - Implement playbackRate and related bits (Fix other tests) r=kinetik
content/media/test/test_info_leak.html
content/media/test/test_load.html
--- a/content/media/test/test_info_leak.html
+++ b/content/media/test/test_info_leak.html
@@ -24,17 +24,17 @@ https://bugzilla.mozilla.org/show_bug.cg
 /** Test for Bug 478957 **/
 
 // Tests whether we leak events and state change info when loading stuff from local files from a webserver.
 
 var manager = new MediaTestManager;
 
 var gEventTypes = [ 'loadstart', 'progress', 'suspend', 'abort', 'error', 'emptied', 'stalled', 'play', 'pause', 'loadedmetadata', 'loadeddata', 'waiting', 'playing', 'canplay', 'canplaythrough', 'seeking', 'seeked', 'timeupdate', 'ended', 'ratechange', 'durationchange', 'volumechange' ];
 
-var gExpectedEvents = ['loadstart', 'error'];
+var gExpectedEvents = ['ratechange', 'loadstart', 'error'];
 
 function createTestArray() {
   var tests = [];
   var tmpVid = document.createElement("video");
 
   for (var testNum=0; testNum<gInfoLeakTests.length; testNum++) {
     var test = gInfoLeakTests[testNum];
     if (!tmpVid.canPlayType(test.type)) {
--- a/content/media/test/test_load.html
+++ b/content/media/test/test_load.html
@@ -89,17 +89,17 @@ function prependSource(src, type) {
 var gTests = [
   {
     // Test 0: adding video to doc, then setting src should load implicitly.
     create:
       function(src, type) {
         document.body.appendChild(gMedia);
         gMedia.src = src;
       },
-    expectedEvents: ['loadstart', 'durationchange', 'loadedmetadata', 'loadeddata']
+    expectedEvents: ['ratechange',  'loadstart', 'durationchange', 'loadedmetadata', 'loadeddata']
   }, {
     // Test 1: adding video to doc, then adding source.
     create:
       function(src, type) {
         document.body.appendChild(gMedia);
         addSource(src, type);
       },
     expectedEvents: ['loadstart', 'durationchange', 'loadedmetadata', 'loadeddata']
@@ -117,17 +117,17 @@ var gTests = [
   }, {
     // Test 3:  video with bad src, good <source>, ensure that <source> aren't used.
     create:
       function(src, type) {
         gMedia.src = "404a";
         addSource(src, type);
         document.body.appendChild(gMedia);
       },
-    expectedEvents: ['loadstart', 'error']
+    expectedEvents: ['ratechange', 'loadstart', 'error']
   }, {
     // Test 4:  video with only bad source, loading, then adding a good source
     // -  should resume load.
     create:
       function(src, type) {
         addSource("404a", type);
         var s2 = addSource("404b", type);
         s2.addEventListener("error",