⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 286165 in webkit


Ignore:
Timestamp:
Nov 25, 2021, 4:02:28 AM (5 years ago)
Author:
eocanha@igalia.com
Message:

[GTK] Layout Test http/tests/media/video-play-waiting.html is timing out
https://bugs.webkit.org/show_bug.cgi?id=142489

Reviewed by Philippe Normand.

The test was failing with a timeout even after properly calling TestRunner.notifyDone()
internally because there was still an injectedBundle.topLoadingFrame() in InjectedBundlePage,
which means that the web page hadn't completely finished to be downloaded. This was caused
by the stalled video download that the test wants to exercise.

The solution is to set the video src to empty in order to convince TestRunner that the page
has finished downloading.

  • http/tests/media/video-play-waiting.html: Set the video src to empty.
  • platform/mac/TestExpectations: The test now just fails (for reasons unrelated to this fix) on mac instead of timing out.
  • platform/glib/TestExpectations: Unskipped test.
  • platform/win/TestExpectations: Unskipped test.
Location:
trunk/LayoutTests
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r286148 r286165  
     12021-11-25  Enrique Ocaña González  <eocanha@igalia.com>
     2
     3        [GTK] Layout Test http/tests/media/video-play-waiting.html is timing out
     4        https://bugs.webkit.org/show_bug.cgi?id=142489
     5
     6        Reviewed by Philippe Normand.
     7
     8        The test was failing with a timeout even after properly calling TestRunner.notifyDone()
     9        internally because there was still an injectedBundle.topLoadingFrame() in InjectedBundlePage,
     10        which means that the web page hadn't completely finished to be downloaded. This was caused
     11        by the stalled video download that the test wants to exercise.
     12
     13        The solution is to set the video src to empty in order to convince TestRunner that the page
     14        has finished downloading.
     15
     16        * http/tests/media/video-play-waiting.html: Set the video src to empty.
     17        * platform/mac/TestExpectations: The test now just fails (for reasons unrelated to this fix) on mac instead of timing out.
     18        * platform/glib/TestExpectations: Unskipped test.
     19        * platform/win/TestExpectations: Unskipped test.
     20
    1212021-11-24  Ziran Sun  <zsun@igalia.com>
    222
  • trunk/LayoutTests/http/tests/media/video-play-waiting.html

    r276024 r286165  
    1010    waitForEvent('loadedmetadata');
    1111    waitForEvent('loadeddata');
    12     waitForEventAndEnd('waiting');
     12    waitForEventAndEnd('waiting', function() {
     13        // TestRunner waits for the complete frame download before finishing, so having the video load stalled
     14        // prevents TestRunner from finishing. Changing the src will abort the download and let the test finish.
     15        video.src = "";
     16    });
    1317
    1418    waitForEvent('canplay', function () {
  • trunk/LayoutTests/platform/glib/TestExpectations

    r286131 r286165  
    23572357webkit.org/b/137698 media/video-controls-drag.html [ Timeout ]
    23582358webkit.org/b/141959 http/tests/media/clearkey/clear-key-hls-aes128.html [ Crash Timeout ]
    2359 webkit.org/b/142489 http/tests/media/video-play-waiting.html [ Timeout ]
    23602359webkit.org/b/130971 media/track/track-remove-track.html [ Timeout ]
    23612360webkit.org/b/113127 media/track/track-prefer-captions.html [ Timeout ]
  • trunk/LayoutTests/platform/mac/TestExpectations

    r286107 r286165  
    746746webkit.org/b/136708 media/media-fullscreen-not-in-document.html
    747747
    748 webkit.org/b/140639 http/tests/media/video-play-waiting.html [ Pass Timeout ]
    749 
     748webkit.org/b/140639 http/tests/media/video-play-waiting.html [ Failure ]
    750749# This test requires generation of progress events during loading
    751750webkit.org/b/100984 media/progress-events-generated-correctly.html [ Failure ]
  • trunk/LayoutTests/platform/win/TestExpectations

    r286116 r286165  
    10981098http/tests/media/hls/video-cookie.html [ Skip ] # Timeout
    10991099http/tests/media/video-buffered-range-contains-currentTime.html [ Skip ] # Timeout
    1100 http/tests/media/video-play-waiting.html [ Skip ] # Timeout
    11011100
    11021101# Extra whitespace in the output
Note: See TracChangeset for help on using the changeset viewer.