Changeset 196150 in webkit


Ignore:
Timestamp:
Feb 4, 2016 2:54:02 PM (8 years ago)
Author:
eric.carlson@apple.com
Message:

media/video-size.html is flaky
https://bugs.webkit.org/show_bug.cgi?id=124932
<rdar://problem/23336430>

Reviewed by Jer Noble.

  • media/video-size.html: Add logic to retry each stage silently twice before logging failure because we can't predict how long it will take to load the poster frame.
Location:
trunk/LayoutTests
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r196145 r196150  
     12016-02-04  Eric Carlson  <eric.carlson@apple.com>
     2
     3        media/video-size.html is flaky
     4        https://bugs.webkit.org/show_bug.cgi?id=124932
     5        <rdar://problem/23336430>
     6
     7        Reviewed by Jer Noble.
     8
     9        * media/video-size.html: Add logic to retry each stage silently twice before logging
     10          failure because we can't predict how long it will take to load the poster frame.
     11
    1122016-02-04  Chris Dumez  <cdumez@apple.com>
    213
  • trunk/LayoutTests/media/video-size.html

    r79630 r196150  
    99            {
    1010                current:0,
     11                retryCount: 0,
    1112                movies:
    1213                [
     
    6263            {
    6364                consoleWrite("");
     65                movieInfo.current++;
     66                movieInfo.retryCount = 0;
    6467                if (movieInfo.current >= movieInfo.movies.length)
    6568                {
     
    101104                var movie = movieInfo.movies[movieInfo.current];
    102105
     106                // We can't detect when the poster has loaded and the 100ms timeout may
     107                // not be long enough on a slow/loaded machine.
     108                if (video.clientWidth != movie.width || video.clientHeight != movie.height
     109                    || video.videoWidth != movie.videoWidth || video.videoHeight != movie.videoHeight) {
     110                    if (++movieInfo.retryCount <= 2) {
     111                        setTimeout(testMovie, 100);
     112                        return;
     113                    }
     114                }
     115
    103116                var desc = "<b>Testing movie with " + movie.description + ".</b>";
    104117                consoleWrite(desc);
     
    109122                testExpected("video.videoHeight", movie.videoHeight);
    110123
    111                 movieInfo.current++;
    112124                setupNextConfiguration();
    113125            }
Note: See TracChangeset for help on using the changeset viewer.