Title: [211302] trunk/LayoutTests
Revision
211302
Author
jer.no...@apple.com
Date
2017-01-27 14:23:32 -0800 (Fri, 27 Jan 2017)

Log Message

media/track/track-in-band-style.html is flaky
https://bugs.webkit.org/show_bug.cgi?id=167516

Reviewed by Eric Carlson.

Update the test to use 'cuechange' rather than a 200ms timer.

* media/track/track-in-band-style-expected.txt:
* media/track/track-in-band-style.html:
* platform/mac/TestExpectations:

Modified Paths

Diff

Modified: trunk/LayoutTests/ChangeLog (211301 => 211302)


--- trunk/LayoutTests/ChangeLog	2017-01-27 21:07:57 UTC (rev 211301)
+++ trunk/LayoutTests/ChangeLog	2017-01-27 22:23:32 UTC (rev 211302)
@@ -1,3 +1,16 @@
+2017-01-27  Jer Noble  <jer.no...@apple.com>
+
+        media/track/track-in-band-style.html is flaky
+        https://bugs.webkit.org/show_bug.cgi?id=167516
+
+        Reviewed by Eric Carlson.
+
+        Update the test to use 'cuechange' rather than a 200ms timer.
+
+        * media/track/track-in-band-style-expected.txt:
+        * media/track/track-in-band-style.html:
+        * platform/mac/TestExpectations:
+
 2017-01-27  Youenn Fablet  <you...@apple.com>
 
         LayoutTest fast/mediastream/getUserMedia-webaudio.html is flaky

Modified: trunk/LayoutTests/media/track/track-in-band-style-expected.txt (211301 => 211302)


--- trunk/LayoutTests/media/track/track-in-band-style-expected.txt	2017-01-27 21:07:57 UTC (rev 211301)
+++ trunk/LayoutTests/media/track/track-in-band-style-expected.txt	2017-01-27 22:23:32 UTC (rev 211302)
@@ -10,7 +10,7 @@
 RUN(inbandTrack1.mode = 'showing')
 EVENT(change)
 RUN(video.play())
-EVENT(seeked)
+EVENT(cuechange)
 
 ** Test current cue colors
 EXPECTED (getComputedStyle(cueDisplayElement).color == 'rgb(255, 255, 255)') OK

Modified: trunk/LayoutTests/media/track/track-in-band-style.html (211301 => 211302)


--- trunk/LayoutTests/media/track/track-in-band-style.html	2017-01-27 21:07:57 UTC (rev 211301)
+++ trunk/LayoutTests/media/track/track-in-band-style.html	2017-01-27 22:23:32 UTC (rev 211302)
@@ -34,8 +34,11 @@
                 function tracksChanged()
                 {
                     run("video.play()");
-                    setTimeout(function() { video.pause(); video.currentTime = 0.3; }, 1000);
-                    waitForEvent('seeked', function() { setTimeout(testCues, 200) });
+                    setTimeout(function() {
+                        video.pause();
+                        video.currentTime = 0.3;
+                        waitForEventOn(inbandTrack1, 'cuechange', testCues);
+                    }, 1000);
                 }
     
                 function canplaythrough()

Modified: trunk/LayoutTests/platform/mac/TestExpectations (211301 => 211302)


--- trunk/LayoutTests/platform/mac/TestExpectations	2017-01-27 21:07:57 UTC (rev 211301)
+++ trunk/LayoutTests/platform/mac/TestExpectations	2017-01-27 22:23:32 UTC (rev 211302)
@@ -1341,9 +1341,6 @@
 # <rdar://problem/23505582> Fails on iMac10,1 and iMac11,1
 [ Sierra+ ] fast/canvas/canvas-imageSmoothingEnabled-repaint.html [ Pass Failure ]
 
-# <rdar://problem/23601055>
-[ Sierra+ ] media/track/track-in-band-style.html [ Pass Failure ]
-
 # Sierra supports true font feature coverage queries. We use the -coverage versions of these tests instead.
 [ Sierra+ ] css3/font-variant-small-caps-synthesis.html [ ImageOnlyFailure ]
 [ Sierra+ ] css3/font-variant-petite-caps-synthesis.html [ ImageOnlyFailure ]
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to