Changeset 246027 in webkit


Ignore:
Timestamp:
Jun 2, 2019 7:12:59 PM (5 years ago)
Author:
Devin Rousso
Message:

Flaky Test: inspector/canvas/recording.html
https://bugs.webkit.org/show_bug.cgi?id=198470

Reviewed by Matt Baker.

  • inspector/canvas/recording.html:

Don't rely on frameCount to automatically stop the recording, as that's dependent on when
the <canvas> paints and is less controllable/deterministic.

Location:
trunk/LayoutTests
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r246019 r246027  
     12019-06-02  Devin Rousso  <drousso@apple.com>
     2
     3        Flaky Test: inspector/canvas/recording.html
     4        https://bugs.webkit.org/show_bug.cgi?id=198470
     5
     6        Reviewed by Matt Baker.
     7
     8        * inspector/canvas/recording.html:
     9        Don't rely on `frameCount` to automatically stop the recording, as that's dependent on when
     10        the <canvas> paints and is less controllable/deterministic.
     11
    1122019-06-01  Simon Fraser  <simon.fraser@apple.com>
    213
  • trunk/LayoutTests/inspector/canvas/recording.html

    r246016 r246027  
    4545            .then((event) => {
    4646                InspectorTest.evaluateInPage(`performActionsNaN()`);
    47             });
    4847
    49             const frameCount = 1;
    50             CanvasAgent.startRecording(canvas.identifier, frameCount)
     48                canvas.stopRecording();
     49            })
    5150            .catch(reject);
     51
     52            canvas.startRecording();
    5253        },
    5354    });
     
    5758        description: "Check that multiple recordings are able to be started/stopped at the same time.",
    5859        test(resolve, reject) {
    59             const singleFrame = false;
    60 
    6160            let canvases = WI.canvasManager.canvases;
    6261            InspectorTest.assert(canvases.length === 2, "There should be two canvas contexts.");
     
    7473                InspectorTest.log("Stopping the recording of canvas 2...");
    7574                canvases[1].stopRecording();
    76             });
     75            })
     76            .catch(reject);
    7777
    7878            InspectorTest.awaitEvent("TestPage-performActionsMultiple")
     
    8282                InspectorTest.log("Stopping the recording of canvas 1...");
    8383                canvases[0].stopRecording();
    84             });
     84            })
     85            .catch(reject);
    8586
    8687            canvases[1].awaitEvent(WI.Canvas.Event.RecordingStarted)
     
    9091                InspectorTest.log("Performing actions...");
    9192                InspectorTest.evaluateInPage(`performActionsMultiple()`);
    92             });
     93            })
     94            .catch(reject);
    9395
    9496            canvases[0].awaitEvent(WI.Canvas.Event.RecordingStarted)
     
    9799
    98100                InspectorTest.log("Starting a recording of canvas 2...");
    99                 canvases[1].startRecording(singleFrame);
    100             });
     101                canvases[1].startRecording();
     102            })
     103            .catch(reject);
    101104
    102105            InspectorTest.log("Starting a recording of canvas 1...");
    103             canvases[0].startRecording(singleFrame);
     106            canvases[0].startRecording();
    104107        },
    105108    });
Note: See TracChangeset for help on using the changeset viewer.