Backed out changeset ea5fb05616a7 (bug 1109614) for Android 2.3 M(9) orange. r=test-failure on a CLOSED TREE
authorSebastian Hengst <archaeopteryx@coole-files.de>
Mon, 07 Mar 2016 20:46:18 +0100
changeset 337995 1559ba62821aa89c3d3aa404ff494da57016dd99
parent 337994 b7ded112cb5e9d98b36779f558228c26f1aac77f
child 337996 59538ea54b4208ae4f7b94d2bdece8a9147e102b
push id12405
push usercku@mozilla.com
push dateTue, 08 Mar 2016 03:35:29 +0000
reviewerstest-failure
bugs1109614
milestone47.0a1
backs outea5fb05616a76e706641c792ae82ed272b6dcd20
Backed out changeset ea5fb05616a7 (bug 1109614) for Android 2.3 M(9) orange. r=test-failure on a CLOSED TREE
dom/media/test/mochitest.ini
dom/media/test/test_texttrackevents_audio.html
--- a/dom/media/test/mochitest.ini
+++ b/dom/media/test/mochitest.ini
@@ -844,17 +844,16 @@ tags=msg capturestream
 tags=msg
 [test_streams_srcObject.html]
 tags=msg capturestream
 [test_streams_tracks.html]
 tags=msg capturestream
 [test_texttrack.html]
 [test_texttrackcue.html]
 [test_texttrackevents_video.html]
-[test_texttrackevents_audio.html]
 [test_texttracklist.html]
 [test_texttrackregion.html]
 [test_timeupdate_small_files.html]
 skip-if = (toolkit == 'android' && processor == 'x86') #x86 only bug 914439
 [test_trackelementevent.html]
 [test_trackevent.html]
 [test_unseekable.html]
 skip-if = toolkit == 'gonk' || (toolkit == 'android' && processor == 'x86') #x86 only and bug 1128845 on gonk
deleted file mode 100644
--- a/dom/media/test/test_texttrackevents_audio.html
+++ /dev/null
@@ -1,65 +0,0 @@
-<!DOCTYPE HTML>
-<html>
-<head>
-  <meta charset="utf-8">
-  <title>Tests for TextTrack DOM Events</title>
-  <script type="text/javascript" src="/MochiKit/MochiKit.js"></script>
-  <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
-  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
-</head>
-<body>
-<p id="display"></p>
-<div id="content">
-</div>
-<pre id="test">
-<script class="testbody" type="text/javascript">
-SimpleTest.waitForExplicitFinish();
-SpecialPowers.pushPrefEnv({"set": [["media.webvtt.enabled", true]]},
-  function() {
-    var audio = document.createElement("audio");
-    audio.src = "vbr.mp3";
-    audio.preload = "auto";
-    audio.controls = true;
-    var trackElement = document.createElement("track");
-    trackElement.src = "sequential.vtt";
-    trackElement.kind = "subtitles";
-    trackElement.default = true;
-    document.getElementById("content").appendChild(audio);
-    audio.appendChild(trackElement);
-
-    var trackElementCueChangeCount = 0;
-    var trackCueChangeCount = 0;
-
-    audio.addEventListener("loadedmetadata", function run_tests() {
-      // Re-que run_tests() at the end of the event loop until the track
-      // element has loaded its data.
-      if (trackElement.readyState == 1) {
-        return setTimeout(run_tests, 0);
-      }
-      is(trackElement.readyState, 2, "Track::ReadyState should be set to LOADED.");
-      ok('oncuechange' in trackElement.track, "Track::OnCueChange should exist.");
-
-      trackElement.track.oncuechange = function() {
-        ++trackElementCueChangeCount;
-      };
-
-      trackElement.addEventListener("cuechange", function() {
-        ++trackCueChangeCount;
-      });
-
-      audio.play();
-    });
-
-    audio.addEventListener('ended', function() {
-      // Should be fired 6 times, as there are 3 cues, with a change event
-      // for when it is activated/deactivated (6 events total)
-      is(trackElementCueChangeCount, 6, "TrackElement should fire cue change 6 times.");
-      is(trackCueChangeCount, 6, "TrackElement.track should fire cue change 6 times.");
-      SimpleTest.finish()
-    })
-  }
-);
-</script>
-</pre>
-</body>
-</html>