Fix inspector/canvas/recording.html after r236952
authordrousso@apple.com <drousso@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 9 Oct 2018 02:37:24 +0000 (02:37 +0000)
committerdrousso@apple.com <drousso@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 9 Oct 2018 02:37:24 +0000 (02:37 +0000)
Unreviewed. Test gardening.

* inspector/canvas/recording-expected.txt:
* inspector/canvas/recording.html:
Recordings default to only capturing a single frame, so add a parameter to ensure that we
are capturing multiple frames.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@236957 268f45cc-cd09-0410-ab3c-d52691b4dbfc

LayoutTests/ChangeLog
LayoutTests/inspector/canvas/recording-expected.txt
LayoutTests/inspector/canvas/recording.html

index b64d56e..b6a0612 100644 (file)
@@ -1,3 +1,14 @@
+2018-10-08  Devin Rousso  <drousso@apple.com>
+
+        Fix inspector/canvas/recording.html after r236952
+
+        Unreviewed. Test gardening.
+
+        * inspector/canvas/recording-expected.txt:
+        * inspector/canvas/recording.html:
+        Recordings default to only capturing a single frame, so add a parameter to ensure that we
+        are capturing multiple frames.
+
 2018-10-08  Wenson Hsieh  <wenson_hsieh@apple.com>
 
         [Cocoa] [WK2] Add support for text alignment and text lists in font attributes
 2018-10-08  Wenson Hsieh  <wenson_hsieh@apple.com>
 
         [Cocoa] [WK2] Add support for text alignment and text lists in font attributes
index bb7e0b5..9e76eb5 100644 (file)
@@ -15,8 +15,6 @@ Stopping the recording of canvas 2...
 PASS: There should be a recording for canvas 2.
 
 -- Running test case: Canvas.startRecording.InvalidCanvasId
 PASS: There should be a recording for canvas 2.
 
 -- Running test case: Canvas.startRecording.InvalidCanvasId
-ERROR: No active recording for canvas
-ERROR: No active recording for canvas
 PASS: Should produce an error.
 Error: No canvas for given identifier.
 
 PASS: Should produce an error.
 Error: No canvas for given identifier.
 
index 3920bd4..9dc73eb 100644 (file)
@@ -20,6 +20,8 @@ function test() {
         name: "Canvas.multipleRecording",
         description: "Check that multiple recordings are able to be started/stopped at the same time.",
         test(resolve, reject) {
         name: "Canvas.multipleRecording",
         description: "Check that multiple recordings are able to be started/stopped at the same time.",
         test(resolve, reject) {
+            const singleFrame = false;
+
             let canvases = WI.canvasManager.canvases;
             InspectorTest.assert(canvases.length === 2, "There should be two canvas contexts.");
 
             let canvases = WI.canvasManager.canvases;
             InspectorTest.assert(canvases.length === 2, "There should be two canvas contexts.");
 
@@ -58,11 +60,11 @@ function test() {
                 InspectorTest.expectThat(canvases[0].recordingActive, "Recording started of canvas 1");
 
                 InspectorTest.log("Starting a recording of canvas 2...");
                 InspectorTest.expectThat(canvases[0].recordingActive, "Recording started of canvas 1");
 
                 InspectorTest.log("Starting a recording of canvas 2...");
-                canvases[1].startRecording();
+                canvases[1].startRecording(singleFrame);
             });
 
             InspectorTest.log("Starting a recording of canvas 1...");
             });
 
             InspectorTest.log("Starting a recording of canvas 1...");
-            canvases[0].startRecording();
+            canvases[0].startRecording(singleFrame);
         },
     });
 
         },
     });