Bug 1311872. Part 2 - remove the dormant test that doesn't work anymore. We will write new dormant tests in next bugs. r=cpearce,jya
authorJW Wang <jwwang@mozilla.com>
Thu, 20 Oct 2016 15:51:39 +0800
changeset 347473 1ed409c6df2f34d65febea744539e9a22901e1f1
parent 347472 4a4d45357bc7a1e77be4f3796a78005cce43655f
child 347474 80ee79d7a32a5bc2f811f067e6f63e72f71eb14c
push id10298
push userraliiev@mozilla.com
push dateMon, 14 Nov 2016 12:33:03 +0000
treeherdermozilla-aurora@7e29173b1641 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerscpearce, jya
bugs1311872
milestone52.0a1
Bug 1311872. Part 2 - remove the dormant test that doesn't work anymore. We will write new dormant tests in next bugs. r=cpearce,jya MozReview-Commit-ID: 5w0rh2LcE5L
dom/media/test/mochitest.ini
dom/media/test/test_dormant_playback.html
--- a/dom/media/test/mochitest.ini
+++ b/dom/media/test/mochitest.ini
@@ -677,18 +677,16 @@ skip-if = buildapp == 'b2g' # bug 102167
 [test_cueless_webm_seek-2.html]
 [test_cueless_webm_seek-3.html]
 [test_currentTime.html]
 [test_decode_error.html]
 [test_decoder_disable.html]
 [test_defaultMuted.html]
 [test_delay_load.html]
 skip-if = buildapp == 'b2g' && toolkit != 'gonk' # bug 1082984
-[test_dormant_playback.html]
-skip-if = (os == 'win' && os_version == '5.1') || (os != 'win' && toolkit != 'gonk')
 [test_eme_session_callable_value.html]
 [test_eme_canvas_blocked.html]
 skip-if = toolkit == 'android' # bug 1149374
 [test_eme_detach_media_keys.html]
 skip-if = toolkit == 'android' # bug 1149374
 [test_eme_initDataTypes.html]
 skip-if = toolkit == 'android' # bug 1149374
 [test_eme_missing_pssh.html]
deleted file mode 100644
--- a/dom/media/test/test_dormant_playback.html
+++ /dev/null
@@ -1,82 +0,0 @@
-<!DOCTYPE HTML>
-<html>
-<head>
-  <meta charset='utf-8'>
-  <title>Media test: Test resuming from dormant does not emit seek related events</title>
-  <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" style="display: none"></div>
-<pre id="test">
-<script class="testbody" type="text/javascript">
-
-var gNeedInit = false;
-var gLoadedEvent = false;
-var gSeekEvent = false;
-var v1 = null;
-
-function startVideoPlayback() {
-  v1.play()
-}
-
-function setVideoVisible() {
-  document.body.appendChild(v1);
-  setTimeout(startVideoPlayback, 0);
-}
-
-function checkResult() {
-  ok(!gLoadedEvent, "loadedmetadata event should not happen");
-  ok(!gSeekEvent, "seek event should not happen");
-  SimpleTest.finish();
-}
-
-function loadedMetadata(e) {
-  if (gNeedInit) {
-    v1.currentTime = 0;
-    return;
-  }
-  gLoadedEvent = true;
-}
-
-function playbackEnded(e) {
-  checkResult();
-}
-
-function seekEnded(e) {
-  if (gNeedInit) {
-    gNeedInit = false;
-    gLoadedEvent = false;
-    gSeekEvent = false;
-    document.body.removeChild(v1);
-    setTimeout(setVideoVisible, 0);
-    return;
-  }
-  gSeekEvent = true;
-}
-
-function seeking(e) {
-  gSeekEvent = true;
-}
-
-function runTest() {
-  gNeedInit = true;
-
-  v1 = document.createElement('video');
-  document.body.appendChild(v1);
-  v1.preload = "metadata";
-  v1.src = "gizmo.mp4"
-  v1.addEventListener("loadedmetadata", loadedMetadata, false);
-  v1.addEventListener("ended", playbackEnded, false);
-  v1.addEventListener("seeked", seekEnded, false);
-  v1.addEventListener("seeking", seeking, false);
-}
-
-addLoadEvent(runTest);
-SimpleTest.waitForExplicitFinish();
-
-</script>
-</pre>
-</body>
-</html>