Web Inspector: Canvas: change tests to not print out dataURLs
authordrousso@apple.com <drousso@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 28 Feb 2019 22:01:24 +0000 (22:01 +0000)
committerdrousso@apple.com <drousso@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 28 Feb 2019 22:01:24 +0000 (22:01 +0000)
https://bugs.webkit.org/show_bug.cgi?id=195136
<rdar://problem/48248697>

Reviewed by Matt Baker.

* inspector/canvas/resources/recording-utilities.js:
(TestPage.registerInitializer.async logRecording):
(TestPage.registerInitializer.window.startRecording):
* inspector/canvas/recording-2d-expected.txt:
* inspector/canvas/recording-bitmaprenderer-expected.txt:
* inspector/canvas/recording-webgl-expected.txt:
* inspector/canvas/recording-webgl-snapshots.html:
* inspector/canvas/recording-webgl-snapshots-expected.txt:

* inspector/canvas/requestContent-2d.html:
* inspector/canvas/requestContent-2d-expected.txt:
* inspector/canvas/requestContent-bitmaprenderer.html:
* inspector/canvas/requestContent-bitmaprenderer-expected.txt:
* inspector/canvas/requestContent-webgl.html:
* inspector/canvas/requestContent-webgl-expected.txt:
* inspector/canvas/requestContent-webgl2.html:
* inspector/canvas/requestContent-webgl2-expected.txt:

* inspector/canvas/setShaderProgramHighlighted.html:
* inspector/canvas/setShaderProgramHighlighted-expected.txt:

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

17 files changed:
LayoutTests/ChangeLog
LayoutTests/inspector/canvas/recording-2d-expected.txt
LayoutTests/inspector/canvas/recording-bitmaprenderer-expected.txt
LayoutTests/inspector/canvas/recording-webgl-expected.txt
LayoutTests/inspector/canvas/recording-webgl-snapshots-expected.txt
LayoutTests/inspector/canvas/recording-webgl-snapshots.html
LayoutTests/inspector/canvas/requestContent-2d-expected.txt
LayoutTests/inspector/canvas/requestContent-2d.html
LayoutTests/inspector/canvas/requestContent-bitmaprenderer-expected.txt
LayoutTests/inspector/canvas/requestContent-bitmaprenderer.html
LayoutTests/inspector/canvas/requestContent-webgl-expected.txt
LayoutTests/inspector/canvas/requestContent-webgl.html
LayoutTests/inspector/canvas/requestContent-webgl2-expected.txt
LayoutTests/inspector/canvas/requestContent-webgl2.html
LayoutTests/inspector/canvas/resources/recording-utilities.js
LayoutTests/inspector/canvas/setShaderProgramHighlighted-expected.txt
LayoutTests/inspector/canvas/setShaderProgramHighlighted.html

index 3cb42e2..2538aef 100644 (file)
@@ -1,3 +1,32 @@
+2019-02-28  Devin Rousso  <drousso@apple.com>
+
+        Web Inspector: Canvas: change tests to not print out dataURLs
+        https://bugs.webkit.org/show_bug.cgi?id=195136
+        <rdar://problem/48248697>
+
+        Reviewed by Matt Baker.
+
+        * inspector/canvas/resources/recording-utilities.js:
+        (TestPage.registerInitializer.async logRecording):
+        (TestPage.registerInitializer.window.startRecording):
+        * inspector/canvas/recording-2d-expected.txt:
+        * inspector/canvas/recording-bitmaprenderer-expected.txt:
+        * inspector/canvas/recording-webgl-expected.txt:
+        * inspector/canvas/recording-webgl-snapshots.html:
+        * inspector/canvas/recording-webgl-snapshots-expected.txt:
+
+        * inspector/canvas/requestContent-2d.html:
+        * inspector/canvas/requestContent-2d-expected.txt:
+        * inspector/canvas/requestContent-bitmaprenderer.html:
+        * inspector/canvas/requestContent-bitmaprenderer-expected.txt:
+        * inspector/canvas/requestContent-webgl.html:
+        * inspector/canvas/requestContent-webgl-expected.txt:
+        * inspector/canvas/requestContent-webgl2.html:
+        * inspector/canvas/requestContent-webgl2-expected.txt:
+
+        * inspector/canvas/setShaderProgramHighlighted.html:
+        * inspector/canvas/setShaderProgramHighlighted-expected.txt:
+
 2019-02-28  Takashi Komori  <Takashi.Komori@sony.com>
 
         [Curl] HTTP Body is missing with redirection.
index ce92ca7..6072bf8 100644 (file)
@@ -31,7 +31,7 @@ initialState:
     imageSmoothingQuality: "low"
     setPath: [{}]
   parameters:
-  content: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAYAAABytg0kAAAAAXNSR0IArs4c6QAAAAtJREFUCB1jYEAHAAASAAGAFMrMAAAAAElFTkSuQmCC"
+  content: <filtered>
 frames:
   0: (duration)
     0: arc(1, 2, 3, 4, 5, false)
@@ -90,7 +90,7 @@ initialState:
     imageSmoothingQuality: "low"
     setPath: [{}]
   parameters:
-  content: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAYAAABytg0kAAAAAXNSR0IArs4c6QAAAAtJREFUCB1jYEAHAAASAAGAFMrMAAAAAElFTkSuQmCC"
+  content: <filtered>
 frames:
   0: (duration)
     0: arc(1, 2, 3, 4, 5, false)
@@ -1117,7 +1117,7 @@ initialState:
     imageSmoothingQuality: "low"
     setPath: [{}]
   parameters:
-  content: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAYAAABytg0kAAAAAXNSR0IArs4c6QAAAAtJREFUCB1jYEAHAAASAAGAFMrMAAAAAElFTkSuQmCC"
+  content: <filtered>
 frames:
   0: (duration) (incomplete)
     0: arc(1, 2, 3, 4, 5, false)
index d40088d..ffece3e 100644 (file)
@@ -8,7 +8,7 @@ initialState:
     width: 2
     height: 2
   parameters:
-  content: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAYAAABytg0kAAAAAXNSR0IArs4c6QAAAAtJREFUCB1jYEAHAAASAAGAFMrMAAAAAElFTkSuQmCC"
+  content: <filtered>
 frames:
   0: (duration)
     0: transferFromImageBitmap([object ImageBitmap])
@@ -21,7 +21,7 @@ frames:
         4: asyncFunctionResume
         5: (anonymous function)
         6: promiseReactionJob
-      snapshot: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAYAAABytg0kAAAAAXNSR0IArs4c6QAAABNJREFUCB1j/M/AAEQMDEwgAgQAHxcCAmtAm/sAAAAASUVORK5CYII="
+      snapshot: <filtered>
 
 -- Running test case: Canvas.recordingBitmapRenderer.multipleFrames
 initialState:
@@ -29,7 +29,7 @@ initialState:
     width: 2
     height: 2
   parameters:
-  content: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAYAAABytg0kAAAAAXNSR0IArs4c6QAAAAtJREFUCB1jYEAHAAASAAGAFMrMAAAAAElFTkSuQmCC"
+  content: <filtered>
 frames:
   0: (duration)
     0: transferFromImageBitmap([object ImageBitmap])
@@ -42,7 +42,7 @@ frames:
         4: asyncFunctionResume
         5: (anonymous function)
         6: promiseReactionJob
-      snapshot: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAYAAABytg0kAAAAAXNSR0IArs4c6QAAABNJREFUCB1j/M/AAEQMDEwgAgQAHxcCAmtAm/sAAAAASUVORK5CYII="
+      snapshot: <filtered>
   1: (duration)
     0: width
       trace:
@@ -70,7 +70,7 @@ initialState:
     width: 2
     height: 2
   parameters:
-  content: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAYAAABytg0kAAAAAXNSR0IArs4c6QAAAAtJREFUCB1jYEAHAAASAAGAFMrMAAAAAElFTkSuQmCC"
+  content: <filtered>
 frames:
   0: (duration) (incomplete)
     0: transferFromImageBitmap([object ImageBitmap])
@@ -83,7 +83,7 @@ frames:
         4: asyncFunctionResume
         5: (anonymous function)
         6: promiseReactionJob
-      snapshot: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAYAAABytg0kAAAAAXNSR0IArs4c6QAAAAtJREFUCB1jYEAHAAASAAGAFMrMAAAAAElFTkSuQmCC"
+      snapshot: <filtered>
 
 -- Running test case: Canvas.recordingBitmapRenderer.Console
 PASS: The recording should have the name "TEST".
index 8821e93..7ace5c2 100644 (file)
@@ -9,7 +9,7 @@ initialState:
     height: 2
   parameters:
     0: {"alpha":true,"depth":true,"stencil":false,"antialias":true,"premultipliedAlpha":true,"preserveDrawingBuffer":false,"failIfMajorPerformanceCaveat":false}
-  content: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAYAAABytg0kAAAAAXNSR0IArs4c6QAAAAtJREFUCB1jYEAHAAASAAGAFMrMAAAAAElFTkSuQmCC"
+  content: <filtered>
 frames:
   0: (duration)
     0: activeTexture(1)
@@ -31,7 +31,7 @@ initialState:
     height: 2
   parameters:
     0: {"alpha":true,"depth":true,"stencil":false,"antialias":true,"premultipliedAlpha":true,"preserveDrawingBuffer":false,"failIfMajorPerformanceCaveat":false}
-  content: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAYAAABytg0kAAAAAXNSR0IArs4c6QAAAAtJREFUCB1jYEAHAAASAAGAFMrMAAAAAElFTkSuQmCC"
+  content: <filtered>
 frames:
   0: (duration)
     0: activeTexture(1)
@@ -156,7 +156,7 @@ frames:
         0: clear
         1: (anonymous function)
         2: executeFrameFunction
-      snapshot: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAYAAABytg0kAAAAAXNSR0IArs4c6QAAAAtJREFUCB1jYEAHAAASAAGAFMrMAAAAAElFTkSuQmCC"
+      snapshot: <filtered>
   16: (duration)
     0: clearColor(1, 2, 3, 4)
       swizzleTypes: [Number, Number, Number, Number]
@@ -355,7 +355,7 @@ frames:
         0: drawArrays
         1: (anonymous function)
         2: executeFrameFunction
-      snapshot: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAYAAABytg0kAAAAAXNSR0IArs4c6QAAAAtJREFUCB1jYEAHAAASAAGAFMrMAAAAAElFTkSuQmCC"
+      snapshot: <filtered>
   45: (duration)
     0: drawElements(1, 2, 3, 4)
       swizzleTypes: [Number, Number, Number, Number]
@@ -363,7 +363,7 @@ frames:
         0: drawElements
         1: (anonymous function)
         2: executeFrameFunction
-      snapshot: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAYAAABytg0kAAAAAXNSR0IArs4c6QAAAAtJREFUCB1jYEAHAAASAAGAFMrMAAAAAElFTkSuQmCC"
+      snapshot: <filtered>
   46: (duration)
     0: enable(1)
       swizzleTypes: [Number]
@@ -1034,7 +1034,7 @@ initialState:
     height: 2
   parameters:
     0: {"alpha":true,"depth":true,"stencil":false,"antialias":true,"premultipliedAlpha":true,"preserveDrawingBuffer":false,"failIfMajorPerformanceCaveat":false}
-  content: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAYAAABytg0kAAAAAXNSR0IArs4c6QAAAAtJREFUCB1jYEAHAAASAAGAFMrMAAAAAElFTkSuQmCC"
+  content: <filtered>
 frames:
   0: (duration) (incomplete)
     0: activeTexture(1)
index 7fe4dc6..ebc763b 100644 (file)
@@ -9,7 +9,7 @@ initialState:
     height: 150
   parameters:
     0: {"alpha":true,"depth":true,"stencil":false,"antialias":true,"premultipliedAlpha":true,"preserveDrawingBuffer":false,"failIfMajorPerformanceCaveat":false}
-  content: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAASwAAACWCAYAAABkW7XSAAAAAXNSR0IArs4c6QAAAylJREFUeAHt0DEBAAAAwqD1T20IX4hAYcCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYOAdGL/UAAEPpnR6AAAAAElFTkSuQmCC"
+  content: <filtered>
 frames:
   0: (duration)
     0: useProgram(0)
@@ -41,7 +41,7 @@ frames:
         4: evaluateWithScopeExtension
         5: (anonymous function)
         6: _wrapCall
-      snapshot: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAASwAAACWCAYAAABkW7XSAAAAAXNSR0IArs4c6QAABGxJREFUeAHt1MEJwDAMBEHF/fec5OEitDAG/485cc/MvP/3CBAgsF7grE8oIAECBK6AwXIKBAhkBAxWpipBCRAwWG6AAIGMgMHKVCUoAQIGyw0QIJARMFiZqgQlQMBguQECBDICBitTlaAECBgsN0CAQEbAYGWqEpQAAYPlBggQyAgYrExVghIgYLDcAAECGQGDlalKUAIEDJYbIEAgI2CwMlUJSoCAwXIDBAhkBAxWpipBCRAwWG6AAIGMgMHKVCUoAQIGyw0QIJARMFiZqgQlQMBguQECBDICBitTlaAECBgsN0CAQEbAY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gYrExVghIgYLDcAAECGQGDlalKUAIEDJYbIEAgI2CwMlUJSoCAwXIDBAhkBAxWpipBCRAwWG6AAIGMgMHKVCUoAQIfSAwCK2+QFXIAAAAASUVORK5CYII="
+      snapshot: <PASS: content changed>
     3: bufferData(34962, 0, 35044)
       swizzleTypes: [Number, TypedArray, Number]
       trace:
@@ -62,7 +62,7 @@ frames:
         4: evaluateWithScopeExtension
         5: (anonymous function)
         6: _wrapCall
-      snapshot: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAASwAAACWCAYAAABkW7XSAAAAAXNSR0IArs4c6QAAB4lJREFUeAHt3GtSG1kMgFEnlYV5a14Z7IyYFDeAXy01bVvqPlSlGoxMLkd3vpo/M792u93b8Y8PAgQIlBf4Xf6EDkiAAIEPAcFyFQgQaCMgWG1W5aAECAiWO0CAQBsBwWqzKgclQECw3AECBNoICFabVTkoAQKC5Q4QINBGQLDarMpBCRAQLHeAAIE2AoLVZlUOSoCAYLkDBAi0ERCsNqtyUAIEBMsdIECgjYBgtVmVgxIgIFjuAAECbQQEq82qHJQAAcFyBwgQaCMgWG1W5aAECAiWO0CAQBsBwWqzKgclQECw3AECBNoICFabVTkoAQKC5Q4QINBGQLDarMpBCRAQLHeAAIE2AoLVZlUOSoCAYLkDBAi0ERCsNqtyUAIEBMsdIECgjYBgtVmVgxIgIFjuAAECbQQEq82qHJQAAcFyBwgQaCMgWG1W5aAECAiWO0CAQBsBwUqsar/fJ6aNEiCwtIBgJURfXl5273+EK4FmlMDCAm/Hn+dPwODty8cxXG/HcHELuLlf/vla8A7AjGJ+6dX/T4XL/YneH3OL3JVFfsgm/k3jf6UufCJc7pEgPeQOPOQvWUXQLnTq7CXhcp+E66534K4/fBWhGhfwrE43XhAu92rcG89F78KiP2xVgTq9aDf6dPVbwuV+nd4jX//oTvzozasO1OnFulqlwDeEyz07vU++nnUnZr1pU6EaFyvQpckR4XLfxn3ynHUXZr1JsCbTdHtAuNw7wZp1B2a9SbBu9yj8XeFy/4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rgdV8VLhqLlCwEnsRrATWSkaFq9YiBSuxD8FKYK1sVLhqLFSwEnsQrATWSkeF67mLFayEv2AlsFY+KlzPWbBgJdwFK4G1kVHheuyiBSvhLVgJrI2NCtdjFi5YCWfBSmBtdFS47rt4wUr4ClYCa+OjwnWfCyBYCVfBSmAZ/ScgXMteBMFKeApWAsvoNwHh+sYx+wvBStAJVgLL6EUB4brIEn5RsMJU/n9YCSqjEwLCNQF05dt/rrzu5QsCh8PhwqteIjBPYL/f/3vje7x8xAT8G1bMyRQBAgUEfhc4gyMQIEAgJCBYISZDBAhUEBCsCltwBgIEQgKCFWIyRIBABQHBqrAFZyBAICQgWCEmQwQIVBAQrApbcAYCBEICghViMkSAQAUBwaqwBWcgQCAkIFghJkMECFQQEKwKW3AGAgRCAoIVYjJEgEAFAcGqsAVnIEAgJCBYISZDBAhUEBCsCltwBgIEQgKCFWIyRIBABQHBqrAFZyBAICQgWCEmQwQIVBAQrApbcAYCBEICghViMkSAQAUBwaqwBWcgQCAkIFghJkMECFQQEKwKW3AGAgRCAoIVYjJEgEAFAcGqsAVnIEAgJCBYISZDBAhUEBCsCltwBgIEQgKCFWIyRIBABQHBqrAFZyBAICQgWCEmQwQIVBAQrApbcAYCBEICghViMkSAQAUBwaqwBWcgQCAkIFghJkMECFQQEKwKW3AGAgRCAoIVYjJEgEAFgb/VewCWguWlCQAAAABJRU5ErkJggg=="
+      snapshot: <PASS: content changed>
     5: clearColor(0, 0, 0, 1)
       swizzleTypes: [Number, Number, Number, Number]
       trace:
@@ -83,7 +83,7 @@ frames:
         4: evaluateWithScopeExtension
         5: (anonymous function)
         6: _wrapCall
-      snapshot: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAASwAAACWCAYAAABkW7XSAAAAAXNSR0IArs4c6QAABGxJREFUeAHt1MEJwDAMBEHF/fec5OEitDAG/485cc/MvP/3CBAgsF7grE8oIAECBK6AwXIKBAhkBAxWpipBCRAwWG6AAIGMgMHKVCUoAQIGyw0QIJARM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BitTlaAECBgsN0CAQEbAYGWqEpQAAYPlBggQyAgYrExVghIgYLDcAAECGQGDlalKUAIEDJYbIEAgI2CwMlUJSoCAwXIDBAhkBAxWpipBCRAwWG6AAIGMgMHKVCUoAQIGyw0QIJARMFiZqgQlQMBguQECBDICBitTlaAECBgsN0CAQEbAYGWqEpQAAYPlBggQyAgYrExVghIgYLDcAAECGQGDlalKUAIEDJYbIEAgI2CwMlUJSoCAwXIDBAhkBAxWpipBCRAwWG6AAIGMgMHKVCUoAQIfSAwCK2+QFXIAAAAASUVORK5CYII="
+      snapshot: <PASS: content changed>
     7: bufferData(34962, 0, 35044)
       swizzleTypes: [Number, TypedArray, Number]
       trace:
@@ -114,7 +114,7 @@ frames:
         4: evaluateWithScopeExtension
         5: (anonymous function)
         6: _wrapCall
-      snapshot: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAASwAAACWCAYAAABkW7XSAAAAAXNSR0IArs4c6QAABodJREFUeAHt1I1OG0kQhVGI9r2BJyesEhQCJhhXT3XfnhNptcG4f+bU5Lu/u7t7fvnPHwIECCwv8GP5G7ogAQIEfgsIlleBAIEYAcGKGZWLEiAgWN4BAgRiBAQrZlQuSoCAYHkHCBCIERCsmFG5KAECguUdIEAgRkCwYkblogQICJZ3gACBGAHBihmVixIgIFjeAQIEYgQEK2ZULkqAgGB5BwgQiBEQrJhRuSgBAoLlHSBAIEZAsGJG5aIECAiWd4AAgRgBwYoZlYsSICBY3gECBGIEBCtmVC5KgIBgeQcIEIgREKyYUbkoAQKC5R0gQCBGQLBiRuWiBAgIlneAAIEYAcGKGZWLEiAgWN4BAgRiBAQrZlQuSoCAYHkHCBCIERCsmFG5KAECguUdIEAgRkCwYkblogQICJZ3gACBGAHBihmVixIgIFjeAQIEYgQEK2ZULrqjwOPj446Pddgz3b/s/HzY7jYmQOCiwGuoHh4e7u7v//9n6M81Av9d8yXfIUBgjMDbUI3Z8Vy7CNa55u1pJwkI1Rh4wRrjaBcCFwWE6iLLzR8K1s10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1PJSBYB41bqA6Cte2pBQRr8PiFajCo7Qi8ERCsNxiVvwpVRc9aAtcJCNZ1Tp9+S6g+pfELAsMFBOtGUqG6Ec4yAgUBwfomnlB9E8zXCQwUEKwbMZ+enm5caRkBArcK3L8sfL51sXUECBDoFPjReZizCBAgUBEQrIqetQQItAoIViu3wwgQqAgIVkXPWgIEWgUEq5XbYQQIVAQEq6JnLQECrQKC1crtMAIEKgKCVdGzlgCBVgHBauV2GAECFQHBquhZS4BAq4BgtXI7jACBioBgVfSsJUCgVUCwWrkdRoBARUCwKnrWEiDQKiBYrdwOI0CgIiBYFT1rCRBoFRCsVm6HESBQERCsip61BAi0CghWK7fDCBCoCAhWRc9aAgRaBQSrldthBAhUBASromctAQKtAoLVyu0wAgQqAoJV0bOWAIFWAcFq5XYYAQIVAcGq6FlLgECrgGC1cjuMAIGKgGBV9KwlQKBVQLBauR1GgEBFQLAqetYSINAqIFit3A4jQKAiIFgVPWsJEGgVEKxWbocRIFAREKyKnrUECLQKCFYrt8MIEKgICFZFz1oCBFoFfgJUguTj1eIlHgAAAABJRU5ErkJggg=="
+      snapshot: <PASS: content changed>
     10: clearColor(0, 0, 0, 1)
       swizzleTypes: [Number, Number, Number, Number]
       trace:
@@ -135,5 +135,5 @@ frames:
         4: evaluateWithScopeExtension
         5: (anonymous function)
         6: _wrapCall
-      snapshot: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAASwAAACWCAYAAABkW7XSAAAAAXNSR0IArs4c6QAABGxJREFUeAHt1MEJwDAMBEHF/fec5OEitDAG/485cc/MvP/3CBAgsF7grE8oIAECBK6AwXIKBAhkBAxWpipBCRAwWG6AAIGMgMHKVCUoAQIGyw0QIJARMFiZqgQlQMBguQECBDICBitTlaAECBgsN0CAQEbAYGWqEpQAAYPlBggQyAgYrExVghIgYLDcAAECGQGDlalKUAIEDJYbIEAgI2CwMlUJSoCAwXIDBAhkBAxWpipBCRAwWG6AAIGMgMHKVCUoAQIGyw0QIJARMFiZqgQlQM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sN0CAQEbAYGWqEpQAAYPlBggQyAgYrExVghIgYLDcAAECGQGDlalKUAIEDJYbIEAgI2CwMlUJSoCAwXIDBAhkBAxWpipBCRAwWG6AAIGMgMHKVCUoAQIfSAwCK2+QFXIAAAAASUVORK5CYII="
+      snapshot: <PASS: content changed>
 
index c8dce1d..6afc61e 100644 (file)
@@ -100,7 +100,7 @@ function test() {
         name: "Canvas.recordingWebGL.snapshots",
         description: "Check that the snapshot taken after each visual action is different.",
         test(resolve, reject) {
-            startRecording(WI.Canvas.ContextType.WebGL, resolve, reject, {frameCount: 1});
+            startRecording(WI.Canvas.ContextType.WebGL, resolve, reject, {frameCount: 1, checkForContentChange: true});
         },
     });
 
index 4e199df..354b7b6 100644 (file)
@@ -3,7 +3,7 @@ Test that CanvasAgent.requestContent can retrieve a dataURL with the current con
 
 == Running test suite: Canvas.requestContent2D
 -- Running test case: Canvas.requestContent2D.validCanvasId
-data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAASwAAACWCAYAAABkW7XSAAAAAXNSR0IArs4c6QAABGhJREFUeAHt1IEJACAMA8Hq4o6u4BYP1wnCpWTdmTOOAAECAYEdyCgiAQIEvoDB8ggECGQEDFamKkEJEDBYfoAAgYyAwcpUJSgBAgbLDxAgkBEwWJmqBCVAwGD5AQIEMgIGK1OVoAQIGCw/QIBARsBgZaoSlAABg+UHCBDICBisTFWCEiBgsPwAAQIZAYOVqUpQAgQMlh8gQCAjYLAyVQlKgIDB8gMECGQEDFamKkEJEDBYfoAAgYyAwcpUJSgBAgbLDxAgkBEwWJmqBCVAwGD5AQIEMgIGK1OVoAQIGCw/QIBARsBgZaoSlAABg+UHCBDICBisTFWCEiBgsPwAAQIZAYOVqUpQAgQMlh8gQCAjYLAyVQlKgIDB8gMECGQEDFamKkEJEDBYfoAAgYyAwcpUJSgBAgbLDxAgkBEwWJmqBCVAwGD5AQIEMgIGK1OVoAQIGCw/QIBARsBgZaoSlAABg+UHCBDICBisTFWCEiBgsPwAAQIZAYO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ent.invalidCanvasId
 PASS: Should produce an error.
index 3a02e23..5350957 100644 (file)
@@ -25,7 +25,7 @@ function test() {
             }
 
             CanvasAgent.requestContent(canvas.identifier)
-            .then(({content}) => InspectorTest.log(content))
+            .then(({content}) => InspectorTest.expectGreaterThan(content.length, "data:image/png;base64,".length, "Content should not be empty."))
             .then(resolve, reject);
         }
     });
index 5e99c6c..2d9381c 100644 (file)
@@ -3,5 +3,5 @@ Test that CanvasAgent.requestContent can retrieve a dataURL with the current con
 
 == Running test suite: Canvas.requestContentBitmapRenderer
 -- Running test case: Canvas.requestContentBitmapRenderer.validCanvasId
-data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAYAAABytg0kAAAAAXNSR0IArs4c6QAAABNJREFUCB1j/M/AAEQMDEwgAgQAHxcCAmtAm/sAAAAASUVORK5CYII=
+PASS: Content should not be empty.
 
index 17de637..cd5083c 100644 (file)
@@ -29,7 +29,7 @@ function test() {
             }
 
             CanvasAgent.requestContent(canvas.identifier)
-            .then(({content}) => InspectorTest.log(content))
+            .then(({content}) => InspectorTest.expectGreaterThan(content.length, "data:image/png;base64,".length, "Content should not be empty."))
             .then(resolve, reject);
         }
     });
index 3813f5c..48ca341 100644 (file)
@@ -3,5 +3,5 @@ Test that CanvasAgent.requestContent can retrieve a dataURL with the current con
 
 == Running test suite: Canvas.requestContentWebGL
 -- Running test case: Canvas.requestContentWebGL.validCanvasId
-data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAASwAAACWCAYAAABkW7XSAAAAAXNSR0IArs4c6QAABGhJREFUeAHt1IEJACAMA8Hq5G6u4BYP1wnCpWTNnTOOAAECAYEdyCgiAQIEvoDB8ggECGQEDFamKkEJEDBYfoAAgYyAwcpUJSgBAgbLDxAgkBEwWJmqBCVAwGD5AQIEMgIGK1OVoAQIGCw/QIBARsBgZaoSlAABg+UHCBDICBisTFWCEiBgsPwAAQIZAYOVqUpQAgQMlh8gQCAjYLAyVQlKgIDB8gMECGQEDFamKkE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jYLAyVQlKgIDB8gMECGQEDFamKkEJEDBYfoAAgYyAwcpUJSgBAgbLDxAgkBEwWJmqBCVAwGD5AQIEMgIGK1OVoAQIGCw/QIBARsBgZaoSlAABg+UHCBDICBisTFWCEiBgsPwAAQIZAYOVqUpQAgQMlh8gQCAjYLAyVQlKgIDB8gMECGQEDFamKkEJEDBYfoAAgYyAwcpUJSgBAg83qgKrddkJzwAAAABJRU5ErkJggg==
+PASS: Content should not be empty.
 
index 9ec6b8c..aeb81ef 100644 (file)
@@ -25,7 +25,7 @@ function test() {
             }
 
             CanvasAgent.requestContent(canvas.identifier)
-            .then(({content}) => InspectorTest.log(content))
+            .then(({content}) => InspectorTest.expectGreaterThan(content.length, "data:image/png;base64,".length, "Content should not be empty."))
             .then(resolve, reject);
         }
     });
index bf78ea7..bc3b9f5 100644 (file)
@@ -3,5 +3,5 @@ Test that CanvasAgent.requestContent can retrieve a dataURL with the current con
 
 == Running test suite: Canvas.requestContentWebGL2
 -- Running test case: Canvas.requestContentWebGL2.validCanvasId
-data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAASwAAACWCAYAAABkW7XSAAAAAXNSR0IArs4c6QAABGhJREFUeAHt1IEJACAMA8Hq5G6u4BYP1wnCpWTN3DOOAAECAYEdyCgiAQIEvoDB8ggECGQEDFamKkEJEDBYfoAAgYyAwcpUJSgBAgbLDxAgkBEwWJmqBCVAwGD5AQIEMgIGK1OVoAQIGCw/QIBARsBgZaoSlAABg+UHCBDICBisTFWCEiBgsPwAAQIZAYOVqUpQAgQMlh8gQCAjYLAyVQlKgIDB8gMECGQEDFamKkEJEDBYfoAAgYyAwcpUJSgBAgbLDxAgkBEwWJmqBCVAwGD5AQIEMgIGK1OVoAQIGCw/QIBARsBgZaoSlAABg+UHCBDICBisTFWCEiBgsPwAAQIZAYOVqUpQAgQMlh8gQCAjYLAyVQlKgIDB8gMECGQEDFamKkEJEDBYfoAAgYyAwcpUJSgBAgbLDxAgkBEwWJmqBCVAwGD5AQIEM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qwKrwT9MJgAAAABJRU5ErkJggg==
+PASS: Content should not be empty.
 
index 9af5894..6b03d5e 100644 (file)
@@ -28,7 +28,7 @@ function test() {
             }
 
             CanvasAgent.requestContent(canvas.identifier)
-            .then(({content}) => InspectorTest.log(content))
+            .then(({content}) => InspectorTest.expectGreaterThan(content.length, "data:image/png;base64,".length, "Content should not be empty."))
             .then(resolve, reject);
         }
     });
index d03a0c1..0d905fe 100644 (file)
@@ -9,7 +9,7 @@ TestPage.registerInitializer(() => {
         }
     }
 
-    async function logRecording(recording) {
+    async function logRecording(recording, options = {}) {
         InspectorTest.log("initialState:");
 
         InspectorTest.log("  attributes:");
@@ -25,7 +25,9 @@ TestPage.registerInitializer(() => {
         InspectorTest.log("  parameters:");
         log(Object.entries(recording.initialState.parameters), "    ");
 
-        InspectorTest.log("  content: " + JSON.stringify(recording.initialState.content));
+        let currentContent = recording.initialState.content;
+        if (currentContent)
+            InspectorTest.log("  content: <filtered>");
 
         InspectorTest.log("frames:");
         for (let i = 0; i < recording.frames.length; ++i) {
@@ -68,8 +70,13 @@ TestPage.registerInitializer(() => {
                     }
                 }
 
-                if (action.snapshot)
-                    InspectorTest.log("      snapshot: " + JSON.stringify(action.snapshot));
+                if (action.snapshot) {
+                    if (options.checkForContentChange)
+                        InspectorTest.log(`      snapshot: <${currentContent === action.snapshot ? "FAIL" : "PASS"}: content changed>`);
+                    else
+                        InspectorTest.log("      snapshot: <filtered>");
+                    currentContent = action.snapshot;
+                }
             }
         }
     }
@@ -82,7 +89,7 @@ TestPage.registerInitializer(() => {
         return canvases[0];
     };
 
-    window.startRecording = function(type, resolve, reject, {frameCount, memoryLimit} = {}) {
+    window.startRecording = function(type, resolve, reject, {frameCount, memoryLimit, checkForContentChange} = {}) {
         let canvas = getCanvas(type);
         if (!canvas) {
             reject(`Missing canvas with type "${type}".`);
@@ -136,7 +143,7 @@ TestPage.registerInitializer(() => {
             Promise.all(recording.actions.map((action) => action.swizzle(recording))).then(() => {
                 swizzled = true;
 
-                logRecording(recording, type)
+                logRecording(recording, {checkForContentChange})
                 .then(() => {
                     if (lastFrame) {
                         InspectorTest.evaluateInPage(`cancelActions()`)
index 2b64c6e..7a9b6fd 100644 (file)
@@ -3,16 +3,16 @@ Test highlighting of shader programs.
 
 == Running test suite: Canvas.setShaderProgramHighlighted
 -- Running test case: Canvas.setShaderProgramHighlighted.highlightedDrawArrays
-data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAASwAAACWCAYAAABkW7XSAAAAAXNSR0IArs4c6QAAB4NJREFUeAHt3DGOW1UUgGEnlKmHCokeJFZAxT6QaNhHCsQa2AEFFFSIBaSAhiJSGqQUEwkJlIoeaRhQDp7E9vgdz3v2Pe98SOgO9rV973ee/pJHm83m5vZf/xAgQGB4gcfDn9ABCRAg8EZAsDwKBAiUERCsMqNyUAIEBMszQIBAGQHBKjMqByVAQLA8AwQIlBEQrDKjclACBATLM0CAQBkBwSozKgclQECwPAMECJQREKwyo3JQAgQEyzNAgEAZAcEqMyoHJUBAsDwDBAiUERCsMqNyUAIEBMszQIBAGQHBKjMqByVAQLA8AwQIlBEQrDKjclACBATLM0CAQBkBwSozKgclQECwPAMECJQREKwyo3JQAgQEyzNAgEAZAcEqMyoHJUBAsDwDBAiUERCsMqNyUAIEBMszQIBAGQHBKjMqByVAQLA8AwQIlBEQrDKjclACBATLM0CAQBkBwSozKgclQECwPAMECJQREKwyo3JQAgQEyzNAgEAZAcFKjOrDTz59ndhuKwECMwu8d/t9T2f+ztV+3Te/X//4wUefv/7jt1+f/PXnqyervaiLERhU4NHtuW4GPdtwx/r275vv4lA/f//y6oevv/j4+vmzq3jNSoDAsgKClfC9G6z4mHCFhJXA8gKClTDeF6z4uHCFhJXAcgKClbC9L1jxNcIVElYC8wsIVsJ0SrDi64QrJKwE5hMQrIRlJljxtcIVElYCDxcQrIThKcGKrxeukLASOF1AsBJ2DwlW/IxwhYSVQF5AsBJmcwQrfk64QsJKYLqAYE232swZrPhZ4QoJK4HjAoJ13O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QfBSmCtdKtwXXawgpXwF6wE1sq3CtdlBixYCXfBSmA12Spc5x20YCW8BSuB1WyrcJ1n4IKVcBasBFbTrcK17OAFK+ErWAms5luFa5kHQLASroKVwLL1PwHhmvdBEKyEp2AlsGx9S0C43uI4+T8EK0EnWAksW/cKCNdelskvCtZkKv8/rASVrUcEhOsI0IG3BesAzL6XP/vyqxf7XvcagVMFXv7y0/vXz59dnfr5bp8TrG4Td18ChQUeFz67oxMg0ExAsJoN3HUJVBYQrMrTc3YCzQQEq9nAXZdAZQHBqjw9ZyfQTECwmg3cdQlUFhCsytNzdgLNBASr2cBdl0BlAcGqPD1nJ9BMQLCaDdx1CVQWEKzK03N2As0EBKvZwF2XQGUBwao8PWcn0ExAsJoN3HUJVBYQrMrTc3YCzQQEq9nAXZdAZQHBqjw9ZyfQTECwmg3cdQlUFhCsytNzdgLNBASr2cBdl0BlAcGqPD1nJ9BMQLCaDdx1CVQWEKzK03N2As0EBKvZwF2XQGUBwao8PWcn0ExAsJoN3HUJVBYQrMrTc3YCzQQEq9nAXZdAZQHBqjw9ZyfQTECwmg3cdQlUFhCsytNzdgLNBASr2cBdl0BlAcGqPD1nJ9BMQLCaDdx1CVQWEKzK03N2As0EBKvZwF2XQGWBfwDSnDm7TAr3vgAAAABJRU5ErkJggg==
+PASS: Highlighting a shader program should change the content.
 
 -- Running test case: Canvas.setShaderProgramHighlighted.highlightedDrawElements
-data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAASwAAACWCAYAAABkW7XSAAAAAXNSR0IArs4c6QAABp1JREFUeAHt1MFtFUkQgGEbEQ1hbA4cCIADMXCFGPZAXJCOsQQW5vkZP7/qru6q+VZa7WLc0zVfjf7bm5ubu/t//UOAAIHtBd5sP6EBCRAg8FtAsHwKBAiUERCsMqsyKAECguUbIECgjIBglVmVQQkQECzfAAECZQQEq8yqDEqAgGD5BggQKCMgWGVWZVACBATLN0CAQBkBwSqzKoMSICBYvgECBMoICFaZVRmUAAHB8g0QIFBGQLDK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ff5Fheq8i5/uKSBYe+5l+lRCNZ3YBRMEBGsC6s6PFKqdt2O2lwQE6yWhJn8vVE0WefDXEKzmH4BQNV/wwV5PsJouXKiaLvbgryVYzT4AoWq2UK/zl4Bg/cVR9w9CVXd3Jr9cQLAut9ryN4Vqy7UYapKAYE2Cnf1YoZot7Pk7CgjWjlv5x0xC9Q8cf9VeQLCKrFioiizKmFMFBGsqb/zhQhU39IQ+AoK16S6FatPFGGupgGAt5X96uVA9NfETAg8CgvUgsfi/QrV4Aa4vISBYi9ckVIsX4PpSAoK1aF1CtQjetaUFBCt5fUKVDO66VgKClbROoUqCdk1rAcGavF6hmgzs8YcSEKxJ6xaqSbAee2gBwRq8fqEaDOpxBB4JCNYjjMj/ClVEz1kClwkI1mVOz/6WUD1L4y8IDBcQrCtJhepKOMcIBAQE65V4QvVKML9OYKCAYF2J+e3T13dXHnWMAIErBW7vz91dedYxAgQIpAq8Sb3NZQQIEAgICFYAz1ECBHIFBCvX220ECAQEBCuA5ygBArkCgpXr7TYCBAICghXAc5QAgVwBwcr1dhsBAgEBwQrgOUqAQK6AYOV6u40AgYCAYAXwHCVAIFdAsHK93UaAQEBAsAJ4jhIgkCsgWLnebiNAICAgWAE8RwkQyBUQrFxvtxEgEBAQrACeowQI5AoIVq632wgQCAgIVgDPUQIEcgUEK9fbbQQIBAQEK4DnKAECuQKClevtNgIEAgKCFcBzlACBXAHByvV2GwECAQHBCuA5SoBAroBg5Xq7jQCBgIBgBfAcJUAgV0Cwcr3dRoBAQECwAniOEiCQKyBYud5uI0AgICBYATxHCRDIFRCsXG+3ESAQEBCsAJ6jBAjkCghWrrfbCBAICAhWAM9RAgRyBQQr19ttBAgEBAQrgOcoAQK5Aj8BladHcpYMAQMAAAAASUVORK5CYII=
+PASS: Highlighting a shader program should change the content.
 
 -- Running test case: Canvas.setShaderProgramHighlighted.unhighlightedDrawArrays
-data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAASwAAACWCAYAAABkW7XSAAAAAXNSR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AhUEBCsCltwBgIEQgKCFWIyRIBABQHBqrAFZyBAICQgWCEmQwQIVBAQrApbcAYCBEICghViMkSAQAUBwaqwBWcgQCAkIFghJkMECFQQEKwKW3AGAgRCAoIVYjJEgEAFAcGqsAVnIEAgJCBYISZDBAhUEBCsCltwBgIEQgKCFWIyRIBABQHBqrAFZyBAICQgWCEmQwQIVBAQrApbcAYCBEICghViMkSAQAUBwaqwBWcgQCAkIFghJkMECFQQEKwKW3AGAgRCAoIVYjJEgEAFAcGqsAVnIEAgJCBYISZDBAhUEBCsCltwBgIEQgKCFWIyRIBABQHBqrAFZyBAICQgWCEmQwQIVBAQrApbcAYCBEICghViMkSAQAUBwaqwBWcgQCAkIFghJkMECFQQEKwKW3AGAgRCAoIVYjJEgEAFgb/VewCWguWlCQAAAABJRU5ErkJggg==
+PASS: Unhighlighting a shader program should change the content.
 
 -- Running test case: Canvas.setShaderProgramHighlighted.unhighlightedDrawElements
-data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAASwAAACWCAYAAABkW7XSAAAAAXNSR0IArs4c6QAABodJREFUeAHt1I1OG0kQhVGI9r2BJyesEhQCJhhXT3XfnhNptcG4f+bU5Lu/u7t7fvnPHwIECCwv8GP5G7ogAQIEfgsIlleBAIEYAcGKGZWLEiAgWN4BAgRiBAQrZlQuSoCAYHkHCBCIERCsmFG5KAECguUdIEAgRkCwYkblogQICJZ3gACBGAHBihmVixIgIFjeAQIEYgQEK2ZULkqAgGB5BwgQiBEQrJhRuSgBAoLlHSBAIEZAsGJG5aIECAiWd4AAgRgBwYoZlYsSICBY3gECBGIEBCtmVC5KgIBgeQcIEIgREKyYUbkoAQKC5R0gQCBGQLBiRuWiBAgIlneAAIEYAcGKGZWLEiAgWN4BAgRiBAQrZlQuSoCAYHkHCBCIERCsmFG5KAECguUdIEAgRkCwYkblogQICJZ3gACBGAHBihmVixIgIFjeAQIEYgQEK2ZULrqjwOPj446Pddgz3b/s/HzY7jYmQOCiwGuoHh4e7u7v//9n6M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gWJPHJFSTB+D4KAHBmjQuoZoE79hoAcFqHp9QNYM7bisBwWoap1A1QTtmawHBOni8QnUwsO1PJSBYB41bqA6Cte2pBQRr8PiFajCo7Qi8ERCsNxiVvwpVRc9aAtcJCNZ1Tp9+S6g+pfELAsMFBOtGUqG6Ec4yAgUBwfomnlB9E8zXCQwUEKwbMZ+enm5caRkBArcK3L8sfL51sXUECBDoFPjReZizCBAgUBEQrIqetQQItAoIViu3wwgQqAgIVkXPWgIEWgUEq5XbYQQIVAQEq6JnLQECrQKC1crtMAIEKgKCVdGzlgCBVgHBauV2GAECFQHBquhZS4BAq4BgtXI7jACBioBgVfSsJUCgVUCwWrkdRoBARUCwKnrWEiDQKiBYrdwOI0CgIiBYFT1rCRBoFRCsVm6HESBQERCsip61BAi0CghWK7fDCBCoCAhWRc9aAgRaBQSrldthBAhUBASromctAQKtAoLVyu0wAgQqAoJV0bOWAIFWAcFq5XYYAQIVAcGq6FlLgECrgGC1cjuMAIGKgGBV9KwlQKBVQLBauR1GgEBFQLAqetYSINAqIFit3A4jQKAiIFgVPWsJEGgVEKxWbocRIFAREKyKnrUECLQKCFYrt8MIEKgICFZFz1oCBFoFfgJUguTj1eIlHgAAAABJRU5ErkJggg==
+PASS: Unhighlighting a shader program should change the content.
 
 -- Running test case: Canvas.setShaderProgramHighlighted.invalidProgramId
 PASS: Should produce an error.
index d82dca8..d4089c3 100644 (file)
@@ -80,6 +80,7 @@ function test() {
 
     let shaderProgram = WI.canvasManager.shaderPrograms[0];
     let originalContent = null;
+    let contentForEval = {};
 
     function validTest({name, highlighted, evaluateString}) {
         suite.addTestCase({
@@ -98,7 +99,13 @@ function test() {
                         }
 
                         CanvasAgent.requestContent(shaderProgram.canvas.identifier)
-                        .then(({content}) => InspectorTest.log(content))
+                        .then(({content}) => {
+                            if (highlighted) {
+                                contentForEval[evaluateString] = content;
+                                InspectorTest.expectNotEqual(content, originalContent, "Highlighting a shader program should change the content.");
+                            } else
+                                InspectorTest.expectNotEqual(content, contentForEval[evaluateString], "Unhighlighting a shader program should change the content.");
+                        })
                         .then(resolve, reject);
                     });
                 });