Changeset 152184 in webkit


Ignore:
Timestamp:
Jun 28, 2013 12:55:18 PM (11 years ago)
Author:
jer.noble@apple.com
Message:

media/video-currentTime.html flakey
https://bugs.webkit.org/show_bug.cgi?id=118198

Reviewed by Jessie Berlin.

Update video-currentTime.html so that it listens for timeupdate events, and ends the test
after the first one with a >0 currentTime. Add a 3s watchdog for the failure case.

  • media/video-currentTime-expected.txt:
  • media/video-currentTime.html:
Location:
trunk/LayoutTests
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r152180 r152184  
     12013-06-28  Jer Noble  <jer.noble@apple.com>
     2
     3        media/video-currentTime.html flakey
     4        https://bugs.webkit.org/show_bug.cgi?id=118198
     5
     6        Reviewed by Jessie Berlin.
     7
     8        Update video-currentTime.html so that it listens for timeupdate events, and ends the test
     9        after the first one with a >0 currentTime. Add a 3s watchdog for the failure case.
     10
     11        * media/video-currentTime-expected.txt:
     12        * media/video-currentTime.html:
     13
    1142013-06-28  Bem Jones-Bey  <bjonesbe@adobe.com>
    215
  • trunk/LayoutTests/media/video-currentTime-expected.txt

    r50063 r152184  
    33EXPECTED (video.currentTime == '0') OK
    44EVENT(play)
    5 EXPECTED (video.currentTime > '0') OK
     5video.currentTime > 0 OK
    66END OF TEST
    77
  • trunk/LayoutTests/media/video-currentTime.html

    r79630 r152184  
    55    testExpected("video.currentTime", 0)
    66    waitForEvent('canplaythrough', function() { testExpected("video.currentTime", 0); } );
    7     video.addEventListener('canplaythrough', function() { video.play(); setTimeout(testCurrentTime, 500) });
     7    video.addEventListener('canplaythrough', function() { video.play(); });
    88    waitForEvent('play');
    9     function testCurrentTime()
    10     {
    11         testExpected("video.currentTime", 0, '>')
    12         endTest();
    13     }
     9    video.addEventListener('timeupdate', function() {
     10        if (video.currentTime > 0) {
     11            logResult(true, 'video.currentTime > 0');
     12            endTest();
     13        }
     14    });
    1415    video.src = findMediaFile("video", "content/test");
     16    failTestIn(3000);
    1517</script>
Note: See TracChangeset for help on using the changeset viewer.