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

Changeset 245821 in webkit


Ignore:
Timestamp:
May 28, 2019, 12:10:23 PM (7 years ago)
Author:
Devin Rousso
Message:

REGRESSION (r244182): inspector/canvas/recording-webgl-snapshots.html became flaky on WK1
​https://bugs.webkit.org/show_bug.cgi?id=196875
<rdar://problem/49873252>

Reviewed by Said Abou-Hallawa.

Remove the frameLimit configuration on these tests, as they're short enough that when
running in debug, the timing between the InspectorCanvasAgent automatically stopping the
recording and the test page's LastFrame event (which will manually stop the recording) is
too close and can result in a race condition.

Instead, just wait for the test page to say "done" (LastFrame) before stopping the
recording, ensuring that the full "flow" of the recording is under the control of the test.

This isn't an issue when using Web Inspector "normally" (e.g. not in a test), because the
frontend UI will "ignore" these types of errors, not to mention it would be much harder for
a person to get the timing just right to even encounter this situation.

  • inspector/canvas/recording-webgl-snapshots.html:
  • inspector/canvas/recording-webgl2-snapshots.html:
  • platform/mac/TestExpectations:
Location:
trunk/LayoutTests
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r245820 r245821  
     12019-05-28  Devin Rousso  <drousso@apple.com>
     2
     3        REGRESSION (r244182): inspector/canvas/recording-webgl-snapshots.html became flaky on WK1
     4        https://bugs.webkit.org/show_bug.cgi?id=196875
     5        <rdar://problem/49873252>
     6
     7        Reviewed by Said Abou-Hallawa.
     8
     9        Remove the `frameLimit` configuration on these tests, as they're short enough that when
     10        running in debug, the timing between the `InspectorCanvasAgent` automatically stopping the
     11        recording and the test page's `LastFrame` event (which will manually stop the recording) is
     12        too close and can result in a race condition.
     13
     14        Instead, just wait for the test page to say "done" (`LastFrame`) before stopping the
     15        recording, ensuring that the full "flow" of the recording is under the control of the test.
     16
     17        This isn't an issue when using Web Inspector "normally" (e.g. not in a test), because the
     18        frontend UI will "ignore" these types of errors, not to mention it would be much harder for
     19        a person to get the timing just right to even encounter this situation.
     20
     21        * inspector/canvas/recording-webgl-snapshots.html:
     22        * inspector/canvas/recording-webgl2-snapshots.html:
     23        * platform/mac/TestExpectations:
     24
    1252019-05-28  Antoine Quint  <graouts@apple.com>
    226
  • trunk/LayoutTests/inspector/canvas/recording-webgl-snapshots.html

    r243953 r245821  
    101101        description: "Check that the snapshot taken after each visual action is different.",
    102102        test(resolve, reject) {
    103             startRecording(WI.Canvas.ContextType.WebGL, resolve, reject, {frameCount: 1, checkForContentChange: true});
     103            startRecording(WI.Canvas.ContextType.WebGL, resolve, reject, {checkForContentChange: true});
    104104        },
    105105        timeout: -1,
  • trunk/LayoutTests/inspector/canvas/recording-webgl2-snapshots.html

    r244908 r245821  
    103103        description: "Check that the snapshot taken after each visual action is different.",
    104104        test(resolve, reject) {
    105             startRecording(WI.Canvas.ContextType.WebGL2, resolve, reject, {frameCount: 1, checkForContentChange: true});
     105            startRecording(WI.Canvas.ContextType.WebGL2, resolve, reject, {checkForContentChange: true});
    106106        },
    107107        timeout: -1,
  • trunk/LayoutTests/platform/mac/TestExpectations

    r245820 r245821  
    18121812webkit.org/b/196517 imported/w3c/web-platform-tests/mst-content-hint/MediaStreamTrack-contentHint.html [ Skip ]
    18131813
    1814 webkit.org/b/196875 inspector/canvas/recording-webgl-snapshots.html [ Pass Failure ]
    1815 
    18161814webkit.org/b/177663 media/W3C/video/events/event_progress_manual.html [ Pass Failure ]
    18171815
Note: See TracChangeset for help on using the changeset viewer.