Title: [139737] trunk/LayoutTests
Revision
139737
Author
commit-qu...@webkit.org
Date
2013-01-15 07:12:11 -0800 (Tue, 15 Jan 2013)

Log Message

[Chromium] media/track/track-css-cue-lifetime.html Win7 dbg times out since r139562
https://bugs.webkit.org/show_bug.cgi?id=106853

Patch by Dima Gorbik <dgor...@apple.com> on 2013-01-15
Reviewed by Eric Carlson.

The amount of seeks may be reduced significantly since they may be slow.

* media/track/track-css-cue-lifetime-expected.txt:
* media/track/track-css-cue-lifetime.html:

Modified Paths

Diff

Modified: trunk/LayoutTests/ChangeLog (139736 => 139737)


--- trunk/LayoutTests/ChangeLog	2013-01-15 15:10:14 UTC (rev 139736)
+++ trunk/LayoutTests/ChangeLog	2013-01-15 15:12:11 UTC (rev 139737)
@@ -1,3 +1,15 @@
+2013-01-15  Dima Gorbik  <dgor...@apple.com>
+
+        [Chromium] media/track/track-css-cue-lifetime.html Win7 dbg times out since r139562
+        https://bugs.webkit.org/show_bug.cgi?id=106853
+
+        Reviewed by Eric Carlson.
+
+        The amount of seeks may be reduced significantly since they may be slow.
+
+        * media/track/track-css-cue-lifetime-expected.txt:
+        * media/track/track-css-cue-lifetime.html:
+
 2013-01-15  Tommy Widenflycht  <tom...@google.com>
 
         MediaStream API: Fixing crashing bug in MediaStream

Modified: trunk/LayoutTests/media/track/track-css-cue-lifetime-expected.txt (139736 => 139737)


--- trunk/LayoutTests/media/track/track-css-cue-lifetime-expected.txt	2013-01-15 15:10:14 UTC (rev 139736)
+++ trunk/LayoutTests/media/track/track-css-cue-lifetime-expected.txt	2013-01-15 15:12:11 UTC (rev 139737)
@@ -5,142 +5,34 @@
 EXPECTED (getComputedStyle(cueNode).color == 'rgb(0, 128, 0)') OK
 EXPECTED (getComputedStyle(cueNode).color == 'rgb(255, 0, 0)') OK
 1
-RUN(video.currentTime = 0.7)
+RUN(video.currentTime = 0.5)
 EVENT(seeked)
 EXPECTED (getComputedStyle(cueNode).color == 'rgb(255, 0, 0)') OK
 EXPECTED (getComputedStyle(cueNode).color == 'rgb(0, 128, 0)') OK
 EXPECTED (getComputedStyle(cueNode).color == 'rgb(255, 0, 0)') OK
 2
-RUN(video.currentTime = 0.8)
+RUN(video.currentTime = 0.9)
 EVENT(seeked)
 EXPECTED (getComputedStyle(cueNode).color == 'rgb(255, 0, 0)') OK
 EXPECTED (getComputedStyle(cueNode).color == 'rgb(0, 128, 0)') OK
 EXPECTED (getComputedStyle(cueNode).color == 'rgb(255, 0, 0)') OK
 3
-RUN(video.currentTime = 0.9)
+RUN(video.currentTime = 1.3)
 EVENT(seeked)
 EXPECTED (getComputedStyle(cueNode).color == 'rgb(255, 0, 0)') OK
 EXPECTED (getComputedStyle(cueNode).color == 'rgb(0, 128, 0)') OK
 EXPECTED (getComputedStyle(cueNode).color == 'rgb(255, 0, 0)') OK
 4
-RUN(video.currentTime = 1)
+RUN(video.currentTime = 1.7)
 EVENT(seeked)
 EXPECTED (getComputedStyle(cueNode).color == 'rgb(255, 0, 0)') OK
 EXPECTED (getComputedStyle(cueNode).color == 'rgb(0, 128, 0)') OK
 EXPECTED (getComputedStyle(cueNode).color == 'rgb(255, 0, 0)') OK
 5
-RUN(video.currentTime = 1.1)
-EVENT(seeked)
-EXPECTED (getComputedStyle(cueNode).color == 'rgb(255, 0, 0)') OK
-EXPECTED (getComputedStyle(cueNode).color == 'rgb(0, 128, 0)') OK
-EXPECTED (getComputedStyle(cueNode).color == 'rgb(255, 0, 0)') OK
-6
-RUN(video.currentTime = 1.2000000000000002)
-EVENT(seeked)
-EXPECTED (getComputedStyle(cueNode).color == 'rgb(255, 0, 0)') OK
-EXPECTED (getComputedStyle(cueNode).color == 'rgb(0, 128, 0)') OK
-EXPECTED (getComputedStyle(cueNode).color == 'rgb(255, 0, 0)') OK
-7
-RUN(video.currentTime = 1.3)
-EVENT(seeked)
-EXPECTED (getComputedStyle(cueNode).color == 'rgb(255, 0, 0)') OK
-EXPECTED (getComputedStyle(cueNode).color == 'rgb(0, 128, 0)') OK
-EXPECTED (getComputedStyle(cueNode).color == 'rgb(255, 0, 0)') OK
-8
-RUN(video.currentTime = 1.4)
-EVENT(seeked)
-EXPECTED (getComputedStyle(cueNode).color == 'rgb(255, 0, 0)') OK
-EXPECTED (getComputedStyle(cueNode).color == 'rgb(0, 128, 0)') OK
-EXPECTED (getComputedStyle(cueNode).color == 'rgb(255, 0, 0)') OK
-9
-RUN(video.currentTime = 1.5)
-EVENT(seeked)
-EXPECTED (getComputedStyle(cueNode).color == 'rgb(255, 0, 0)') OK
-EXPECTED (getComputedStyle(cueNode).color == 'rgb(0, 128, 0)') OK
-EXPECTED (getComputedStyle(cueNode).color == 'rgb(255, 0, 0)') OK
-10
-RUN(video.currentTime = 1.6)
-EVENT(seeked)
-EXPECTED (getComputedStyle(cueNode).color == 'rgb(255, 0, 0)') OK
-EXPECTED (getComputedStyle(cueNode).color == 'rgb(0, 128, 0)') OK
-EXPECTED (getComputedStyle(cueNode).color == 'rgb(255, 0, 0)') OK
-11
-RUN(video.currentTime = 1.7000000000000002)
-EVENT(seeked)
-EXPECTED (getComputedStyle(cueNode).color == 'rgb(255, 0, 0)') OK
-EXPECTED (getComputedStyle(cueNode).color == 'rgb(0, 128, 0)') OK
-EXPECTED (getComputedStyle(cueNode).color == 'rgb(255, 0, 0)') OK
-12
-RUN(video.currentTime = 1.8000000000000003)
-EVENT(seeked)
-EXPECTED (getComputedStyle(cueNode).color == 'rgb(255, 0, 0)') OK
-EXPECTED (getComputedStyle(cueNode).color == 'rgb(0, 128, 0)') OK
-EXPECTED (getComputedStyle(cueNode).color == 'rgb(255, 0, 0)') OK
-13
-RUN(video.currentTime = 1.9)
-EVENT(seeked)
-EXPECTED (getComputedStyle(cueNode).color == 'rgb(255, 0, 0)') OK
-EXPECTED (getComputedStyle(cueNode).color == 'rgb(0, 128, 0)') OK
-EXPECTED (getComputedStyle(cueNode).color == 'rgb(255, 0, 0)') OK
-14
-RUN(video.currentTime = 2)
-EVENT(seeked)
-EXPECTED (getComputedStyle(cueNode).color == 'rgb(255, 0, 0)') OK
-EXPECTED (getComputedStyle(cueNode).color == 'rgb(0, 128, 0)') OK
-EXPECTED (getComputedStyle(cueNode).color == 'rgb(255, 0, 0)') OK
-15
 RUN(video.currentTime = 2.1)
 EVENT(seeked)
 EXPECTED (getComputedStyle(cueNode).color == 'rgb(255, 0, 0)') OK
 EXPECTED (getComputedStyle(cueNode).color == 'rgb(0, 128, 0)') OK
 EXPECTED (getComputedStyle(cueNode).color == 'rgb(255, 0, 0)') OK
-16
-RUN(video.currentTime = 2.2)
-EVENT(seeked)
-EXPECTED (getComputedStyle(cueNode).color == 'rgb(255, 0, 0)') OK
-EXPECTED (getComputedStyle(cueNode).color == 'rgb(0, 128, 0)') OK
-EXPECTED (getComputedStyle(cueNode).color == 'rgb(255, 0, 0)') OK
-17
-RUN(video.currentTime = 2.3000000000000003)
-EVENT(seeked)
-EXPECTED (getComputedStyle(cueNode).color == 'rgb(255, 0, 0)') OK
-EXPECTED (getComputedStyle(cueNode).color == 'rgb(0, 128, 0)') OK
-EXPECTED (getComputedStyle(cueNode).color == 'rgb(255, 0, 0)') OK
-18
-RUN(video.currentTime = 2.4)
-EVENT(seeked)
-EXPECTED (getComputedStyle(cueNode).color == 'rgb(255, 0, 0)') OK
-EXPECTED (getComputedStyle(cueNode).color == 'rgb(0, 128, 0)') OK
-EXPECTED (getComputedStyle(cueNode).color == 'rgb(255, 0, 0)') OK
-19
-RUN(video.currentTime = 2.5)
-EVENT(seeked)
-EXPECTED (getComputedStyle(cueNode).color == 'rgb(255, 0, 0)') OK
-EXPECTED (getComputedStyle(cueNode).color == 'rgb(0, 128, 0)') OK
-EXPECTED (getComputedStyle(cueNode).color == 'rgb(255, 0, 0)') OK
-20
-RUN(video.currentTime = 2.6)
-EVENT(seeked)
-EXPECTED (getComputedStyle(cueNode).color == 'rgb(255, 0, 0)') OK
-EXPECTED (getComputedStyle(cueNode).color == 'rgb(0, 128, 0)') OK
-EXPECTED (getComputedStyle(cueNode).color == 'rgb(255, 0, 0)') OK
-21
-RUN(video.currentTime = 2.7)
-EVENT(seeked)
-EXPECTED (getComputedStyle(cueNode).color == 'rgb(255, 0, 0)') OK
-EXPECTED (getComputedStyle(cueNode).color == 'rgb(0, 128, 0)') OK
-EXPECTED (getComputedStyle(cueNode).color == 'rgb(255, 0, 0)') OK
-22
-RUN(video.currentTime = 2.8000000000000003)
-EVENT(seeked)
-EXPECTED (getComputedStyle(cueNode).color == 'rgb(255, 0, 0)') OK
-EXPECTED (getComputedStyle(cueNode).color == 'rgb(0, 128, 0)') OK
-EXPECTED (getComputedStyle(cueNode).color == 'rgb(255, 0, 0)') OK
-23
-RUN(video.currentTime = 2.9000000000000004)
-EVENT(seeked)
-EXPECTED (getComputedStyle(cueNode).color == 'rgb(255, 0, 0)') OK
-EXPECTED (getComputedStyle(cueNode).color == 'rgb(0, 128, 0)') OK
-EXPECTED (getComputedStyle(cueNode).color == 'rgb(255, 0, 0)') OK
 END OF TEST
 

Modified: trunk/LayoutTests/media/track/track-css-cue-lifetime.html (139736 => 139737)


--- trunk/LayoutTests/media/track/track-css-cue-lifetime.html	2013-01-15 15:10:14 UTC (rev 139736)
+++ trunk/LayoutTests/media/track/track-css-cue-lifetime.html	2013-01-15 15:12:11 UTC (rev 139737)
@@ -16,7 +16,7 @@
 
         var cueNode;
         var seekedCount = 0;
-        var step = 0.1;
+        var step = 0.4;
         var initialTime = 0.6;
         var endTime = 3.0
 
@@ -46,7 +46,7 @@
                 endTest();
             else {
                 consoleWrite("" + seekedCount);
-                run("video.currentTime = " + (initialTime + seekedCount * step));
+                run("video.currentTime = " + Math.round(initialTime + seekedCount * step * 10) / 10);
             }
         }
 
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to