Title: [277023] trunk/LayoutTests
Revision
277023
Author
[email protected]
Date
2021-05-05 09:33:23 -0700 (Wed, 05 May 2021)

Log Message

Update WPT OffscreenCanvas tests to respect [EnforceRange]
https://bugs.webkit.org/show_bug.cgi?id=225391

Reviewed by Darin Adler.

LayoutTests/imported/w3c:

Synchronise with upstream WPT OffscreenCanvas tests.

* web-platform-tests/html/canvas/offscreen/pixel-manipulation/2d.imageData.get.tiny-expected.txt: Removed.
* web-platform-tests/html/canvas/offscreen/pixel-manipulation/2d.imageData.get.tiny.html: Removed.
* web-platform-tests/html/canvas/offscreen/pixel-manipulation/2d.imageData.get.tiny.worker-expected.txt: Removed.
* web-platform-tests/html/canvas/offscreen/pixel-manipulation/2d.imageData.get.tiny.worker.html: Removed.
* web-platform-tests/html/canvas/offscreen/pixel-manipulation/2d.imageData.get.tiny.worker.js: Removed.
* web-platform-tests/html/canvas/offscreen/the-offscreen-canvas/size.attributes.idl-expected.txt:
* web-platform-tests/html/canvas/offscreen/the-offscreen-canvas/size.attributes.idl.html:
* web-platform-tests/html/canvas/offscreen/the-offscreen-canvas/size.attributes.idl.worker-expected.txt:
* web-platform-tests/html/canvas/offscreen/the-offscreen-canvas/size.attributes.idl.worker.js:
(t.step):

LayoutTests:

WPT html/canvas/offscreen/pixel-manipulation/2d.imageData.get.tiny.html
passes after updating.

* platform/glib/TestExpectations:

Modified Paths

Removed Paths

Diff

Modified: trunk/LayoutTests/ChangeLog (277022 => 277023)


--- trunk/LayoutTests/ChangeLog	2021-05-05 16:18:36 UTC (rev 277022)
+++ trunk/LayoutTests/ChangeLog	2021-05-05 16:33:23 UTC (rev 277023)
@@ -1,3 +1,15 @@
+2021-05-05  Chris Lord  <[email protected]>
+
+        Update WPT OffscreenCanvas tests to respect [EnforceRange]
+        https://bugs.webkit.org/show_bug.cgi?id=225391
+
+        Reviewed by Darin Adler.
+
+        WPT html/canvas/offscreen/pixel-manipulation/2d.imageData.get.tiny.html
+        passes after updating.
+
+        * platform/glib/TestExpectations:
+
 2021-05-05  Jean-Yves Avenard  <[email protected]>
 
         imported/w3c/web-platform-tests/media-source/mediasource-activesourcebuffers.html is a flakey

Modified: trunk/LayoutTests/imported/w3c/ChangeLog (277022 => 277023)


--- trunk/LayoutTests/imported/w3c/ChangeLog	2021-05-05 16:18:36 UTC (rev 277022)
+++ trunk/LayoutTests/imported/w3c/ChangeLog	2021-05-05 16:33:23 UTC (rev 277023)
@@ -1,5 +1,25 @@
 2021-05-05  Chris Lord  <[email protected]>
 
+        Update WPT OffscreenCanvas tests to respect [EnforceRange]
+        https://bugs.webkit.org/show_bug.cgi?id=225391
+
+        Reviewed by Darin Adler.
+
+        Synchronise with upstream WPT OffscreenCanvas tests.
+
+        * web-platform-tests/html/canvas/offscreen/pixel-manipulation/2d.imageData.get.tiny-expected.txt: Removed.
+        * web-platform-tests/html/canvas/offscreen/pixel-manipulation/2d.imageData.get.tiny.html: Removed.
+        * web-platform-tests/html/canvas/offscreen/pixel-manipulation/2d.imageData.get.tiny.worker-expected.txt: Removed.
+        * web-platform-tests/html/canvas/offscreen/pixel-manipulation/2d.imageData.get.tiny.worker.html: Removed.
+        * web-platform-tests/html/canvas/offscreen/pixel-manipulation/2d.imageData.get.tiny.worker.js: Removed.
+        * web-platform-tests/html/canvas/offscreen/the-offscreen-canvas/size.attributes.idl-expected.txt:
+        * web-platform-tests/html/canvas/offscreen/the-offscreen-canvas/size.attributes.idl.html:
+        * web-platform-tests/html/canvas/offscreen/the-offscreen-canvas/size.attributes.idl.worker-expected.txt:
+        * web-platform-tests/html/canvas/offscreen/the-offscreen-canvas/size.attributes.idl.worker.js:
+        (t.step):
+
+2021-05-05  Chris Lord  <[email protected]>
+
         OffscreenCanvas should preserve context transform after transferToImageBitmap
         https://bugs.webkit.org/show_bug.cgi?id=225304
 

Deleted: trunk/LayoutTests/imported/w3c/web-platform-tests/html/canvas/offscreen/pixel-manipulation/2d.imageData.get.tiny-expected.txt (277022 => 277023)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/canvas/offscreen/pixel-manipulation/2d.imageData.get.tiny-expected.txt	2021-05-05 16:18:36 UTC (rev 277022)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/canvas/offscreen/pixel-manipulation/2d.imageData.get.tiny-expected.txt	2021-05-05 16:33:23 UTC (rev 277023)
@@ -1,7 +0,0 @@
-2d.imageData.get.tiny
-
-getImageData() works for sizes smaller than one pixel
-
-
-PASS getImageData() works for sizes smaller than one pixel
-

Deleted: trunk/LayoutTests/imported/w3c/web-platform-tests/html/canvas/offscreen/pixel-manipulation/2d.imageData.get.tiny.html (277022 => 277023)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/canvas/offscreen/pixel-manipulation/2d.imageData.get.tiny.html	2021-05-05 16:18:36 UTC (rev 277022)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/canvas/offscreen/pixel-manipulation/2d.imageData.get.tiny.html	2021-05-05 16:33:23 UTC (rev 277023)
@@ -1,30 +0,0 @@
-<!DOCTYPE html>
-<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->
-<title>OffscreenCanvas test: 2d.imageData.get.tiny</title>
-<script src=""
-<script src=""
-<script src=""
-
-<h1>2d.imageData.get.tiny</h1>
-<p class="desc">getImageData() works for sizes smaller than one pixel</p>
-
-
-<script>
-var t = async_test("getImageData() works for sizes smaller than one pixel");
-var t_pass = t.done.bind(t);
-var t_fail = t.step_func(function(reason) {
-    throw reason;
-});
-t.step(function() {
-
-var offscreenCanvas = new OffscreenCanvas(100, 50);
-var ctx = offscreenCanvas.getContext('2d');
-
-var imgdata = ctx.getImageData(0, 0, 0.0001, 0.0001);
-_assertSame(imgdata.data.length, imgdata.width*imgdata.height*4, "imgdata.data.length", "imgdata.width*imgdata.height*4");
-_assertSame(imgdata.width, 1, "imgdata.width", "1");
-_assertSame(imgdata.height, 1, "imgdata.height", "1");
-t.done();
-
-});
-</script>

Deleted: trunk/LayoutTests/imported/w3c/web-platform-tests/html/canvas/offscreen/pixel-manipulation/2d.imageData.get.tiny.worker-expected.txt (277022 => 277023)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/canvas/offscreen/pixel-manipulation/2d.imageData.get.tiny.worker-expected.txt	2021-05-05 16:18:36 UTC (rev 277022)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/canvas/offscreen/pixel-manipulation/2d.imageData.get.tiny.worker-expected.txt	2021-05-05 16:33:23 UTC (rev 277023)
@@ -1,3 +0,0 @@
-
-PASS getImageData() works for sizes smaller than one pixel
-

Deleted: trunk/LayoutTests/imported/w3c/web-platform-tests/html/canvas/offscreen/pixel-manipulation/2d.imageData.get.tiny.worker.html (277022 => 277023)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/canvas/offscreen/pixel-manipulation/2d.imageData.get.tiny.worker.html	2021-05-05 16:18:36 UTC (rev 277022)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/canvas/offscreen/pixel-manipulation/2d.imageData.get.tiny.worker.html	2021-05-05 16:33:23 UTC (rev 277023)
@@ -1 +0,0 @@
-<!-- This file is required for WebKit test infrastructure to run the templated test -->
\ No newline at end of file

Deleted: trunk/LayoutTests/imported/w3c/web-platform-tests/html/canvas/offscreen/pixel-manipulation/2d.imageData.get.tiny.worker.js (277022 => 277023)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/canvas/offscreen/pixel-manipulation/2d.imageData.get.tiny.worker.js	2021-05-05 16:18:36 UTC (rev 277022)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/canvas/offscreen/pixel-manipulation/2d.imageData.get.tiny.worker.js	2021-05-05 16:33:23 UTC (rev 277023)
@@ -1,26 +0,0 @@
-// DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py.
-// OffscreenCanvas test in a worker:2d.imageData.get.tiny
-// Description:getImageData() works for sizes smaller than one pixel
-// Note:
-
-importScripts("/resources/testharness.js");
-importScripts("/html/canvas/resources/canvas-tests.js");
-
-var t = async_test("getImageData() works for sizes smaller than one pixel");
-var t_pass = t.done.bind(t);
-var t_fail = t.step_func(function(reason) {
-    throw reason;
-});
-t.step(function() {
-
-var offscreenCanvas = new OffscreenCanvas(100, 50);
-var ctx = offscreenCanvas.getContext('2d');
-
-var imgdata = ctx.getImageData(0, 0, 0.0001, 0.0001);
-_assertSame(imgdata.data.length, imgdata.width*imgdata.height*4, "imgdata.data.length", "imgdata.width*imgdata.height*4");
-_assertSame(imgdata.width, 1, "imgdata.width", "1");
-_assertSame(imgdata.height, 1, "imgdata.height", "1");
-t.done();
-
-});
-done();

Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/html/canvas/offscreen/the-offscreen-canvas/size.attributes.idl-expected.txt (277022 => 277023)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/canvas/offscreen/the-offscreen-canvas/size.attributes.idl-expected.txt	2021-05-05 16:18:36 UTC (rev 277022)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/canvas/offscreen/the-offscreen-canvas/size.attributes.idl-expected.txt	2021-05-05 16:33:23 UTC (rev 277023)
@@ -3,5 +3,5 @@
 Getting/setting width/height IDL attributes
 
 
-FAIL Getting/setting width/height IDL attributes Value NaN is outside the range [0, 4294967295]
+PASS Getting/setting width/height IDL attributes
 

Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/html/canvas/offscreen/the-offscreen-canvas/size.attributes.idl.html (277022 => 277023)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/canvas/offscreen/the-offscreen-canvas/size.attributes.idl.html	2021-05-05 16:18:36 UTC (rev 277022)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/canvas/offscreen/the-offscreen-canvas/size.attributes.idl.html	2021-05-05 16:33:23 UTC (rev 277023)
@@ -32,10 +32,10 @@
 offscreenCanvas.height = 301.001;
 _assertSame(offscreenCanvas.width, 301, "offscreenCanvas.width", "301");
 _assertSame(offscreenCanvas.height, 301, "offscreenCanvas.height", "301");
-offscreenCanvas.width = "400x";
-offscreenCanvas.height = "foo";
-_assertSame(offscreenCanvas.width, 0, "offscreenCanvas.width", "0");
-_assertSame(offscreenCanvas.height, 0, "offscreenCanvas.height", "0");
+assert_throws_js(TypeError, function() { offscreenCanvas.width = "400x"; });
+assert_throws_js(TypeError, function() { offscreenCanvas.height = "foo"; });
+_assertSame(offscreenCanvas.width, 301, "offscreenCanvas.width", "301");
+_assertSame(offscreenCanvas.height, 301, "offscreenCanvas.height", "301");
 t.done();
 
 });

Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/html/canvas/offscreen/the-offscreen-canvas/size.attributes.idl.worker-expected.txt (277022 => 277023)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/canvas/offscreen/the-offscreen-canvas/size.attributes.idl.worker-expected.txt	2021-05-05 16:18:36 UTC (rev 277022)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/canvas/offscreen/the-offscreen-canvas/size.attributes.idl.worker-expected.txt	2021-05-05 16:33:23 UTC (rev 277023)
@@ -1,3 +1,3 @@
 
-FAIL Getting/setting width/height IDL attributes Value NaN is outside the range [0, 4294967295]
+PASS Getting/setting width/height IDL attributes
 

Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/html/canvas/offscreen/the-offscreen-canvas/size.attributes.idl.worker.js (277022 => 277023)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/canvas/offscreen/the-offscreen-canvas/size.attributes.idl.worker.js	2021-05-05 16:18:36 UTC (rev 277022)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/canvas/offscreen/the-offscreen-canvas/size.attributes.idl.worker.js	2021-05-05 16:33:23 UTC (rev 277023)
@@ -28,10 +28,10 @@
 offscreenCanvas.height = 301.001;
 _assertSame(offscreenCanvas.width, 301, "offscreenCanvas.width", "301");
 _assertSame(offscreenCanvas.height, 301, "offscreenCanvas.height", "301");
-offscreenCanvas.width = "400x";
-offscreenCanvas.height = "foo";
-_assertSame(offscreenCanvas.width, 0, "offscreenCanvas.width", "0");
-_assertSame(offscreenCanvas.height, 0, "offscreenCanvas.height", "0");
+assert_throws_js(TypeError, function() { offscreenCanvas.width = "400x"; });
+assert_throws_js(TypeError, function() { offscreenCanvas.height = "foo"; });
+_assertSame(offscreenCanvas.width, 301, "offscreenCanvas.width", "301");
+_assertSame(offscreenCanvas.height, 301, "offscreenCanvas.height", "301");
 t.done();
 
 });

Modified: trunk/LayoutTests/platform/glib/TestExpectations (277022 => 277023)


--- trunk/LayoutTests/platform/glib/TestExpectations	2021-05-05 16:18:36 UTC (rev 277022)
+++ trunk/LayoutTests/platform/glib/TestExpectations	2021-05-05 16:33:23 UTC (rev 277023)
@@ -2352,9 +2352,6 @@
 # It was a flaky crash until r275516, but it's still a timeout flaky.
 webkit.org/b/224112 media/video-as-img-output-pts.html [ Timeout Pass ]
 
-webkit.org/b/225292 imported/w3c/web-platform-tests/html/canvas/offscreen/pixel-manipulation/2d.imageData.get.tiny.html [ Failure ]
-webkit.org/b/225292 imported/w3c/web-platform-tests/html/canvas/offscreen/pixel-manipulation/2d.imageData.get.tiny.worker.html [ Failure ]
-
 # End: Common failures between GTK and WPE.
 
 #////////////////////////////////////////////////////////////////////////////////////////
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to