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

Changeset 246015 in webkit


Ignore:
Timestamp:
Jun 1, 2019, 1:19:18 PM (7 years ago)
Author:
Devin Rousso
Message:

Web Inspector: Canvas: in tests don't manually stop recording if a frame count is specified
https://bugs.webkit.org/show_bug.cgi?id=198457
<rdar://problem/48248697>

Reviewed by Joseph Pecoraro.

If a frameCount is specified, the recording will stop by itself, so if we hit the
LastFrame, there's no need to manually stop the recording at that point. Otherwise,
stopping it early may cause the recording to think that the last frame is incomplete.

  • inspector/canvas/resources/recording-utilities.js:
  • inspector/canvas/recording-webgl-snapshots.html:
  • inspector/canvas/recording-webgl2-snapshots.html:
Location:
trunk/LayoutTests
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r246004 r246015  
     12019-06-01  Devin Rousso  <drousso@apple.com>
     2
     3        Web Inspector: Canvas: in tests don't manually stop recording if a frame count is specified
     4        https://bugs.webkit.org/show_bug.cgi?id=198457
     5        <rdar://problem/48248697>
     6
     7        Reviewed by Joseph Pecoraro.
     8
     9        If a `frameCount` is specified, the recording will stop by itself, so if we hit the
     10        `LastFrame`, there's no need to manually stop the recording at that point. Otherwise,
     11        stopping it early may cause the recording to think that the last frame is incomplete.
     12
     13        * inspector/canvas/resources/recording-utilities.js:
     14        * inspector/canvas/recording-webgl-snapshots.html:
     15        * inspector/canvas/recording-webgl2-snapshots.html:
     16
    1172019-05-31  Wenson Hsieh  <wenson_hsieh@apple.com>
    218
  • trunk/LayoutTests/inspector/canvas/recording-webgl-snapshots.html

    r245821 r246015  
    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, {checkForContentChange: true});
     103            startRecording(WI.Canvas.ContextType.WebGL, resolve, reject, {frameCount: 1, checkForContentChange: true});
    104104        },
    105105        timeout: -1,
  • trunk/LayoutTests/inspector/canvas/recording-webgl2-snapshots.html

    r245821 r246015  
    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, {checkForContentChange: true});
     105            startRecording(WI.Canvas.ContextType.WebGL2, resolve, reject, {frameCount: 1, checkForContentChange: true});
    106106        },
    107107        timeout: -1,
  • trunk/LayoutTests/inspector/canvas/resources/recording-utilities.js

    r244552 r246015  
    108108            lastFrame = true;
    109109
    110             if (canvas.recordingActive)
    111                 CanvasAgent.stopRecording(canvas.identifier).catch(reject);
    112             else {
     110            if (canvas.recordingActive) {
     111                if (!frameCount)
     112                    CanvasAgent.stopRecording(canvas.identifier).catch(reject);
     113            } else {
    113114                InspectorTest.evaluateInPage(`cancelActions()`)
    114115                .then(() => {
Note: See TracChangeset for help on using the changeset viewer.