2010-01-24 Eric Carlson <eric.carlson@apple.com>
authoreric.carlson@apple.com <eric.carlson@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 24 Jan 2010 22:54:35 +0000 (22:54 +0000)
committereric.carlson@apple.com <eric.carlson@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 24 Jan 2010 22:54:35 +0000 (22:54 +0000)
        No review, build fix.

        Only log the first 'timeupdate' event from audio-delete-while-slider-thumb-clicked.html
        as the number fired can vary according to how long it takes to run the test.

        * media/audio-delete-while-slider-thumb-clicked.html:

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

LayoutTests/ChangeLog
LayoutTests/media/audio-delete-while-slider-thumb-clicked.html

index 31531d1..95b9dcf 100644 (file)
@@ -1,3 +1,12 @@
+2010-01-24  Eric Carlson  <eric.carlson@apple.com>
+
+        No review, build fix.
+
+        Only log the first 'timeupdate' event from audio-delete-while-slider-thumb-clicked.html
+        as the number fired can vary according to how long it takes to run the test.
+
+        * media/audio-delete-while-slider-thumb-clicked.html:
+
 2010-01-24  Eric Seidel  <eric@webkit.org>
 
         No review.
index a5a6269..2d9a3a4 100644 (file)
                 setTimeout(deleteAudio, 10);
             }
 
+            var timeupdateCount = 0;
+            function logtimeupdate()
+            {
+                // only log the first 'timeupdate' event as more than one will be fired on slower
+                // machines
+                if (++timeupdateCount==1) 
+                    log('timeupdate');
+            }
+
             function start()
             {
                 setSrcByTagName("audio", findMediaFile("audio", "content/test"));
@@ -80,7 +89,7 @@
         <br>
         <input type="button" id="button" value="Click Me!" onmouseup="log('button click!')"> 
         <br>
-        <audio id="audio" ontimeupdate="log('timeupdate')" onload="drag()" controls></audio><br><br>
+        <audio id="audio" ontimeupdate="logtimeupdate()" onload="drag()" controls></audio><br><br>
         <div id="console"></div>
     </body>
 </html>