Changeset 109921 in webkit


Ignore:
Timestamp:
Mar 6, 2012 8:10:58 AM (12 years ago)
Author:
Philippe Normand
Message:

[GStreamer] media/video-played-collapse.html
https://bugs.webkit.org/show_bug.cgi?id=36165

Reviewed by Eric Carlson.

Refactored the test to minimize flakiness risks.

  • media/video-played-collapse-expected.txt:
  • media/video-played-collapse.html:
  • platform/gtk/test_expectations.txt:
Location:
trunk/LayoutTests
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r109918 r109921  
     12012-03-06  Philippe Normand  <pnormand@igalia.com>
     2
     3        [GStreamer] media/video-played-collapse.html
     4        https://bugs.webkit.org/show_bug.cgi?id=36165
     5
     6        Reviewed by Eric Carlson.
     7
     8        Refactored the test to minimize flakiness risks.
     9
     10        * media/video-played-collapse-expected.txt:
     11        * media/video-played-collapse.html:
     12        * platform/gtk/test_expectations.txt:
     13
    1142012-03-06  Ulan Degenbaev  <ulan@chromium.org>
    215
  • trunk/LayoutTests/media/video-played-collapse-expected.txt

    r42920 r109921  
    3131Test 11 OK
    3232Test 12 OK
     33
     34Test looping
     35RUN(video.loop = true)
    3336RUN(video.play())
    3437RUN(video.pause())
     
    3740Test 14 OK
    3841Test 15 OK
     42Test 16 OK
     43Test 17 OK
    3944END OF TEST
    4045
  • trunk/LayoutTests/media/video-played-collapse.html

    r79630 r109921  
    6767            function TestLoopingAndPassToTheEnd()
    6868            {
    69                 playForMillisecs(100); // Triggers pause()
    70                 return;
    7169                consoleWrite("<br><b><em>Test looping</em></b>");
    72    
    73                 var newTime = (video.duration - 0.05).toFixed(2);
    74                 runSilently("video.currentTime = " + newTime);
     70
     71                // Start playing near the end of the movie so it will loop quickly.
    7572                run("video.loop = true");
     73                var startTime = (video.duration - 0.05).toFixed(2);
     74                runSilently("video.currentTime = " + startTime);
    7675               
    77                 currentTimeRange = 0; // We'll end in the very first time range
    78 
    79                 timeRangeCount++;
    80                 expectedStartTimes[timeRangeCount-1] = newTime;
    81                 expectedEndTimes[timeRangeCount-1] = video.duration.toFixed(2);
     76                // We will end in the very first time range
     77                currentTimeRange = 0;
    8278
    8379                willPauseInExistingRange = true;
    8480                willExtendAnExistingRange = true;
    8581
    86                 playForMillisecs(100); // Triggers pause()
     82                // Playing from near the end so we will create a new time range from startTime .. duration
     83                timeRangeCount++;
     84                expectedStartTimes[timeRangeCount-1] = startTime;
     85                expectedEndTimes[timeRangeCount-1] = video.duration.toFixed(2);
     86
     87                // Have to play for long enough to loop and play into the existing range.
     88                var playDuration = 1.25;
     89
     90                // Playback restarts from beginning, so expect the beginning of first time range to be 0.
     91                expectedStartTimes[0] = 0;
     92                playForMillisecs(secToMilli(playDuration)); // Triggers pause()
    8793            }
    8894
  • trunk/LayoutTests/platform/gtk/test_expectations.txt

    r109712 r109921  
    1515
    1616BUGWK68878 : media/video-playing-and-pause.html = PASS TEXT
    17 BUGWK36165 : media/video-played-collapse.html = PASS TEXT
    1817BUGWK54637 : media/video-display-toggle.html = PASS TEXT
    1918BUGWK54637 : media/video-controls-in-media-document.html = PASS TEXT
Note: See TracChangeset for help on using the changeset viewer.