Title: [158752] trunk/LayoutTests
Revision
158752
Author
[email protected]
Date
2013-11-06 09:31:44 -0800 (Wed, 06 Nov 2013)

Log Message

Unreviewed gardening; Fix expected results for video-seek-with-negative-playback.html,
and modify the test to conform to media test style.

* media/video-seek-with-negative-playback-expected.txt:
* media/video-seek-with-negative-playback.html:

Modified Paths

Diff

Modified: trunk/LayoutTests/ChangeLog (158751 => 158752)


--- trunk/LayoutTests/ChangeLog	2013-11-06 17:29:12 UTC (rev 158751)
+++ trunk/LayoutTests/ChangeLog	2013-11-06 17:31:44 UTC (rev 158752)
@@ -1,3 +1,11 @@
+2013-11-06  Jer Noble  <[email protected]>
+
+        Unreviewed gardening; Fix expected results for video-seek-with-negative-playback.html,
+        and modify the test to conform to media test style.
+
+        * media/video-seek-with-negative-playback-expected.txt:
+        * media/video-seek-with-negative-playback.html:
+
 2013-10-24  Sergio Villar Senin  <[email protected]>
 
         [CSS Grid Layout] Add support for named grid areas

Modified: trunk/LayoutTests/media/video-seek-with-negative-playback-expected.txt (158751 => 158752)


--- trunk/LayoutTests/media/video-seek-with-negative-playback-expected.txt	2013-11-06 17:29:12 UTC (rev 158751)
+++ trunk/LayoutTests/media/video-seek-with-negative-playback-expected.txt	2013-11-06 17:31:44 UTC (rev 158752)
@@ -1,3 +1,6 @@
+
+Test that seeking with a negative playbackRate works correctly.
+
 EVENT(canplaythrough)
 EVENT(seeked)
 EVENT(timeupdate)

Modified: trunk/LayoutTests/media/video-seek-with-negative-playback.html (158751 => 158752)


--- trunk/LayoutTests/media/video-seek-with-negative-playback.html	2013-11-06 17:29:12 UTC (rev 158751)
+++ trunk/LayoutTests/media/video-seek-with-negative-playback.html	2013-11-06 17:31:44 UTC (rev 158752)
@@ -1,32 +1,39 @@
-<html>
-    <head>
-        <script src=""
-        <script src=""
-        <script>
-            var lastTime = -1;
-            function start() {
-                findMediaElement();
-                video.src = "" "content/test");
-                waitForEventOnce('canplaythrough',
-                    function () {
-                        video.playbackRate = -1;
-                        video.currentTime = 3;
-                        waitForEventOnce('seeked', function () {
-                            waitForEvent('timeupdate', function () {
-                                if (lastTime == -1) {
-                                    lastTime = video.currentTime;
-                                    return;
-                                }
-                                testExpected("video.currentTime", 3, "<");
-                                endTest();
-                            });
-                        });
-                        video.play();
-                    });
-            }
-        </script>
-    </head>
-    <body _onload_="start()">
-        <video/>
-    </body>
-</html>
\ No newline at end of file
+<!DOCTYPE html>
+<html>
+    <head>
+        <script src=""
+        <script src=""
+        <script>
+            var lastTime = -1;
+            function start() {
+                findMediaElement();
+                video.src = "" "content/test");
+                waitForEventOnce('canplaythrough', canPlayThrough);
+            }
+
+            function canPlayThrough() {
+                video.playbackRate = -1;
+                video.currentTime = 3;
+                waitForEventOnce('seeked', seeked);
+                video.play();
+            }
+
+            function seeked() {
+                waitForEvent('timeupdate', timeupdate);
+            }
+
+            function timeupdate() {
+                if (lastTime == -1) {
+                    lastTime = video.currentTime;
+                    return;
+                }
+                testExpected("video.currentTime", 3, "<");
+                endTest();
+            }
+        </script>
+    </head>
+    <body _onload_="start()">
+        <video></video>
+        <p>Test that seeking with a negative playbackRate works correctly.</p>
+    </body>
+</html>
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to