Try to make this test less timing dependent.
authorantti@apple.com <antti@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 14 Nov 2007 21:44:50 +0000 (21:44 +0000)
committerantti@apple.com <antti@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 14 Nov 2007 21:44:50 +0000 (21:44 +0000)
        * media/video-currentTime-set-expected.txt:
        * media/video-currentTime-set.html:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@27791 268f45cc-cd09-0410-ab3c-d52691b4dbfc

LayoutTests/ChangeLog
LayoutTests/media/video-currentTime-set-expected.txt
LayoutTests/media/video-currentTime-set.html

index 2588237..4d6dea5 100644 (file)
@@ -1,3 +1,10 @@
+2007-11-14  Antti Koivisto  <antti@apple.com>
+
+        Try to make this test less timing dependent.
+
+        * media/video-currentTime-set-expected.txt:
+        * media/video-currentTime-set.html:
+
 2007-11-14  Anders Carlsson  <andersca@apple.com>
 
         Reviewed by Adam.
 2007-11-14  Anders Carlsson  <andersca@apple.com>
 
         Reviewed by Adam.
index 2c5f214..83bfbbb 100644 (file)
@@ -1,5 +1,5 @@
 EVENT(load)
 EVENT(load)
-EVENT(play)
+EVENT(timeupdate)
 EVENT(ended)
 END OF TEST
 
 EVENT(ended)
 END OF TEST
 
index eed3d00..71048b5 100644 (file)
@@ -5,11 +5,10 @@ waitForEvent('load',
 function () { 
     video.currentTime = video.duration - 0.2; 
     video.play(); 
 function () { 
     video.currentTime = video.duration - 0.2; 
     video.play(); 
+    waitForEvent('timeupdate',
+    function () {
+        setTimeout(function () { test("false") }, 800);
+    });
+    waitForEventAndEnd('ended');
 });
 });
-waitForEvent('play',
-function () {
-    setTimeout(function () { test("false") }, 400);
-});
-waitForEventAndEnd('ended');
-
 </script>
 </script>