Unreviewed, fix test failures after r242809.
authordrousso@apple.com <drousso@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 2 May 2019 00:00:45 +0000 (00:00 +0000)
committerdrousso@apple.com <drousso@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 2 May 2019 00:00:45 +0000 (00:00 +0000)
<rdar://problem/50383600>

* inspector/canvas/recording-html-2d.html:
* inspector/canvas/recording-html-2d-expected.txt:
Don't print the dataURL in the expectation file.

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

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

index 47a179e..b7cec96 100644 (file)
@@ -1,3 +1,12 @@
+2019-05-01  Devin Rousso  <drousso@apple.com>
+
+        Unreviewed, fix test failures after r242809.
+        <rdar://problem/50383600>
+
+        * inspector/canvas/recording-html-2d.html:
+        * inspector/canvas/recording-html-2d-expected.txt:
+        Don't print the dataURL in the expectation file.
+
 2019-05-01  Justin Fan  <justin_fan@apple.com>
 
         Update WebGPU class names based on sketch.idl
index cbadadd..b4eb82c 100644 (file)
@@ -214,16 +214,16 @@ function rebuildPath2D(key, data) {
     objects[key] = new Path2D(data);
 }
 
-rebuildImage(0, "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAYAAABytg0kAAAAAXNSR0IArs4c6QAAAAtJREFUCB1jYEAHAAASAAGAFMrMAAAAAElFTkSuQmCC");
+rebuildImage(0, <filtered>);
 rebuildPath2D(1, "");
 rebuildPath2D(2, "");
 rebuildPath2D(3, "");
 rebuildCanvasGradient(4, {"type":"linear-gradient","points":[1,2,3,4],"stops":[{"offset":1,"color":"rgb(255, 0, 0)"},{"offset":1,"color":"rgb(0, 0, 255)"}]});
 rebuildCanvasGradient(5, {"type":"radial-gradient","points":[1,2,3,4,5,6],"stops":[]});
-rebuildCanvasPattern(6, {"image":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAYAAABytg0kAAAAAXNSR0IArs4c6QAAABNJREFUCB1j/M/AAEQMDEwgAgQAHxcCAmtAm/sAAAAASUVORK5CYII=","repeat":"no-repeat"});
-rebuildImage(7, "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAYAAABytg0kAAAAAXNSR0IArs4c6QAAABNJREFUCB1j/M/AAEQMDEwgAgQAHxcCAmtAm/sAAAAASUVORK5CYII=");
+rebuildCanvasPattern(6, {"image":<filtered>,"repeat":"no-repeat"});
+rebuildImage(7, <filtered>);
 rebuildImageData(8, {"data":[0,0,0,0,0,0,0,0],"width":1,"height":2});
-rebuildImageBitmap(9, "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAYAAABytg0kAAAAAXNSR0IArs4c6QAAABNJREFUCB1j/M/AAEQMDEwgAgQAHxcCAmtAm/sAAAAASUVORK5CYII=");
+rebuildImageBitmap(9, <filtered>);
 rebuildDOMMatrix(10, "matrix(1, 2, 3, 4, 5, 6)");
 rebuildPath2D(11, "M1 2");
 
index 6d7a403..34e5aff 100644 (file)
@@ -124,8 +124,11 @@ function test() {
                         if (!recording.ready)
                             return;
 
+                        let html = recording.toHTML();
+                        html = html.replace(/"data:image\/png;base64,[^"]+"/g, "<filtered>");
+
                         InspectorTest.log("++++++++++ HTML ++++++++++");
-                        InspectorTest.log(recording.toHTML());
+                        InspectorTest.log(html);
                         InspectorTest.log("++++++++++ HTML ++++++++++");
 
                         recording.removeEventListener(WI.Recording.Event.ProcessedAction, listener);