Bug 1509446 - part7 : add a reftest. r=jya
authorAlastor Wu <alwu@mozilla.com>
Tue, 05 Mar 2019 19:49:32 +0000
changeset 520968 b2ad34980053
parent 520967 a0d8bc1dab63
child 520969 2f913db74eb5
push id10862
push userffxbld-merge
push dateMon, 11 Mar 2019 13:01:11 +0000
treeherdermozilla-beta@a2e7f5c935da [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjya
bugs1509446
milestone67.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 1509446 - part7 : add a reftest. r=jya Adding a reftest to ensure we would update the cue display after removing cue from the text track, the removed cue should not display on the video's rendering area. Differential Revision: https://phabricator.services.mozilla.com/D21144
dom/media/test/black.mp4
dom/media/test/reftest/reftest.list
dom/media/test/reftest/vtt_update_display_after_removed_cue.html
dom/media/test/reftest/vtt_update_display_after_removed_cue_ref.html
new file mode 100644
index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..24eb3be139090f822e6d664dc8b58c2498d8f4ac
GIT binary patch
literal 15036
zc%1E8Yfuwc6h1e*dCJ&C0wSUW1Pu&z04btHtDqEZY1OKISf>ryAkl<`WO=Anqf$|)
z9ZOrqI{ks~$FwtI)oP!yQf-}SM-&uo9idi`PHpjRI~})oHyc2OJJy+wKX%XT$)4<Y
z_MH3exqHr^1%RjmcD~!`PD=#<gwH9wZTGsI00|47E>|hO?r@eCGWZNl8#0e#JqA#c
z45%>!5b#Hr-1X=F|Kort3IO^h>#@wk_N(kXAt&m}DMsV--YXA~m-6ETQNrIi8^e0>
zIm+hnvYmGX;|llEMNY<U!G_7n^vr!mo#35P$T&Q~Jf(KV);({w%VRU;*>EJ&ObogB
zz+p~%Q2{oLrOp7sZvJsh0E=Qgwt{X{LP|UiQ^2Mgy==Y%+x1@7%XITOWGS_#^zt|`
zc}zVQ8@auC+$RwnhkwW7sM&~tXs!i@4a4V;Lc{$XhQ%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-|Iox(Ow}O<Q_;<CVWb0802Iu{3nV=l~RB3^1<ZUG0zk)FHX{LHh!Mq!`BbTAAoT{
zE&1X0;I_8Bh_y}Jd7EmNZNRx}m3}R^booDD`GNngM?4fyp4>KjMJtZK8x=u;FUe%=
z&>dG_qWyFl<)@5PMR)K2a71pZzPM<%xu&*gmesgF;kESZ{e5dLWFA>KYH?`Vtwq~U
zROjz~d+W1)4R^I=dP8AE=JR{SJF9pakul8*(2xK6&b~z7U2%0g0w@h80;+;!0;+*=
z1XKr82xthrPC)yDn}F)UM?m|*I|S4SH3T#qb`#JD@DtETI8H#LpqYRUh7JO1LO?)c
z5vjg$h*aO9h*V!QBGoq$k?Na-NcA0#NcBxdr23{JQhn19slMrmRNo9ls_$sjYkf&g
z!~}3&ZX$9Mk()?QsN6(4QBo60mYay&L_lsLaua#TCQ^r+h#p`hCwCFKi^yH1Csght
G0rX!AEnrIk
--- a/dom/media/test/reftest/reftest.list
+++ b/dom/media/test/reftest/reftest.list
@@ -1,4 +1,5 @@
 skip-if(Android) fuzzy-if(OSX,0-22,0-49977) fuzzy-if(webrender&&cocoaWidget,23-23,76795-76795) skip-if(winWidget) fuzzy-if(gtkWidget&&layersGPUAccelerated,0-70,0-600) HTTP(..) == short.mp4.firstframe.html short.mp4.firstframe-ref.html
 skip-if(Android) fuzzy-if(OSX,0-23,0-51392) fuzzy-if(webrender&&cocoaWidget,23-23,76798-76798) fuzzy-if(winWidget,0-59,0-76797) fuzzy-if(gtkWidget&&layersGPUAccelerated,0-60,0-1800) HTTP(..) == short.mp4.lastframe.html short.mp4.lastframe-ref.html
 skip-if(Android) skip-if(winWidget) fuzzy-if(gtkWidget&&layersGPUAccelerated,0-55,0-4281) fuzzy-if(OSX,0-3,0-111852) HTTP(..) == bipbop_300_215kbps.mp4.lastframe.html bipbop_300_215kbps.mp4.lastframe-ref.html
 skip-if(Android) fuzzy-if(OSX,0-25,0-175921) fuzzy-if(winWidget,0-71,0-179198) HTTP(..) == gizmo.mp4.seek.html gizmo.mp4.55thframe-ref.html
+skip-if(Android) == vtt_update_display_after_removed_cue.html vtt_update_display_after_removed_cue_ref.html
new file mode 100644
--- /dev/null
+++ b/dom/media/test/reftest/vtt_update_display_after_removed_cue.html
@@ -0,0 +1,36 @@
+<!DOCTYPE HTML>
+<html class="reftest-wait">
+<head>
+</head>
+<body>
+<video id="v1" autoplay></video>
+<script type="text/javascript">
+
+/**
+ * This test is used to ensure we would update the cue display after removing
+ * cue from the text track, the removed cue should not display on the video's
+ * rendering area.
+ */
+function testUpdateDisplayAfterRemovedCue() {
+  let video = document.getElementById("v1");
+  video.src = "../black.mp4";
+  let cue = new VTTCue(0, 4, "hello testing");
+  let track = video.addTextTrack("captions");
+  track.mode = "showing";
+  track.addCue(cue);
+  cue.onenter = () => {
+    cue.onenter = null;
+    track.removeCue(cue);
+    video.pause();
+    video.onpause = () => {
+      video.onpause = null;
+      document.documentElement.removeAttribute('class');
+    }
+  }
+};
+
+window.addEventListener("MozReftestInvalidate",
+                        testUpdateDisplayAfterRemovedCue);
+</script>
+</body>
+</html>
new file mode 100644
--- /dev/null
+++ b/dom/media/test/reftest/vtt_update_display_after_removed_cue_ref.html
@@ -0,0 +1,6 @@
+<!DOCTYPE HTML>
+<html>
+<body>
+<video id="v1" src="../black.mp4"></video>
+</body>
+</html>