Changeset 110168 in webkit


Ignore:
Timestamp:
Mar 8, 2012 7:50:55 AM (12 years ago)
Author:
commit-queue@webkit.org
Message:

Fix flaky test by decreasing granularity of cues (cues cover longer time
intervals). The flakiness seems to appear because the video is paused
synchronously, while missed events events are dispatched asynchronously.

It can happen that multiple cues are actually missed cues, hence more exit
events are dispatched together, but the video was paused before the actual
dispatch.

https://bugs.webkit.org/show_bug.cgi?id=80067

Patch by Victor Carbune <vcarbune@adobe.com> on 2012-03-08
Reviewed by Eric Carlson.

  • media/track/captions-webvtt/simple-captions.vtt:
  • media/track/track-cues-pause-on-exit-expected.txt:
  • media/track/track-cues-pause-on-exit.html:
Location:
trunk/LayoutTests
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r110167 r110168  
     12012-03-08  Victor Carbune  <vcarbune@adobe.com>
     2
     3        Fix flaky test by decreasing granularity of cues (cues cover longer time
     4        intervals). The flakiness seems to appear because the video is paused
     5        synchronously, while missed events events are dispatched asynchronously.
     6
     7        It can happen that multiple cues are actually missed cues, hence more exit
     8        events are dispatched together, but the video was paused before the actual
     9        dispatch.
     10
     11        https://bugs.webkit.org/show_bug.cgi?id=80067
     12
     13        Reviewed by Eric Carlson.
     14
     15        * media/track/captions-webvtt/simple-captions.vtt:
     16        * media/track/track-cues-pause-on-exit-expected.txt:
     17        * media/track/track-cues-pause-on-exit.html:
     18
    1192012-03-08  Ádám Kallai  <kadam@inf.u-szeged.hu>
    220
  • trunk/LayoutTests/media/track/captions-webvtt/simple-captions.vtt

    r108406 r110168  
    22
    330
    4 00:00:05.000 --> 00:00:05.200
     400:00:04.000 --> 00:00:04.500
    55First cue
    66
    771
    8 00:00:05.210 --> 00:00:05.400
     800:00:04.500 --> 00:00:05.000
    99Lorem
    1010
    11112
    12 00:00:05.410 --> 00:00:05.600
     1200:00:05.000 --> 00:00:05.500
    1313ipsum
    1414
    15153
    16 00:00:05.610 --> 00:00:05.700
    17 dolor
     1600:00:05.500 --> 00:00:05.501
     17Missed cue with pause-on-exit
  • trunk/LayoutTests/media/track/track-cues-pause-on-exit-expected.txt

    r108406 r110168  
    2424EXPECTED (currentCue.id == '3') OK
    2525EXPECTED (video.paused == 'false') OK
    26 EVENT(ended)
    2726END OF TEST
    2827
  • trunk/LayoutTests/media/track/track-cues-pause-on-exit.html

    r108406 r110168  
    4242                testExpected("video.paused", currentCueNumber % 2 == 0);
    4343
    44                 if (currentCueNumber % 2 == 0) {
     44                if (currentCueNumber % 2 == 0)
    4545                    run("video.play()");
    46                 }
     46
     47                if (currentCueNumber == 3)
     48                    endTest();
    4749
    4850                currentCueNumber++;
     
    6264            }
    6365
    64             waitForEvent('ended', endTest);
    65 
    6666            waitForEvent('canplaythrough', function() {
    67                 video.currentTime = 4.70;
     67                video.currentTime = 4.00;
    6868                videoCanPlayThrough = true;
    6969
Note: See TracChangeset for help on using the changeset viewer.