diff --git a/tests/wpt/metadata/2dcontext/imagebitmap/createImageBitmap-drawImage.html.ini b/tests/wpt/metadata/2dcontext/imagebitmap/createImageBitmap-drawImage.html.ini index 8db1ab505b6..1459e8d2f4f 100644 --- a/tests/wpt/metadata/2dcontext/imagebitmap/createImageBitmap-drawImage.html.ini +++ b/tests/wpt/metadata/2dcontext/imagebitmap/createImageBitmap-drawImage.html.ini @@ -1,19 +1,20 @@ [createImageBitmap-drawImage.html] type: testharness + expected: TIMEOUT [createImageBitmap from a HTMLImageElement, and drawImage on the created ImageBitmap] expected: FAIL [createImageBitmap from a Blob, and drawImage on the created ImageBitmap] - expected: FAIL + expected: NOTRUN [createImageBitmap from a HTMLCanvasElement, and drawImage on the created ImageBitmap] expected: FAIL [createImageBitmap from an ImageBitmap, and drawImage on the created ImageBitmap] - expected: FAIL + expected: NOTRUN [createImageBitmap from an ImageData, and drawImage on the created ImageBitmap] - expected: FAIL + expected: NOTRUN [createImageBitmap from a HTMLVideoElement, and drawImage on the created ImageBitmap] expected: FAIL @@ -37,19 +38,19 @@ expected: FAIL [createImageBitmap from an OffscreenCanvas, and drawImage on the created ImageBitmap] - expected: FAIL + expected: NOTRUN [createImageBitmap from an OffscreenCanvas with negative sw/sh, and drawImage on the created ImageBitmap] - expected: FAIL + expected: NOTRUN [createImageBitmap from an ImageData with negative sw/sh, and drawImage on the created ImageBitmap] - expected: FAIL + expected: NOTRUN [createImageBitmap from an ImageBitmap with negative sw/sh, and drawImage on the created ImageBitmap] - expected: FAIL + expected: NOTRUN [createImageBitmap from a Blob with negative sw/sh, and drawImage on the created ImageBitmap] - expected: FAIL + expected: NOTRUN [createImageBitmap from a bitmap HTMLImageElement, and drawImage on the created ImageBitmap] expected: FAIL @@ -64,16 +65,16 @@ expected: FAIL [createImageBitmap from a bitmap SVGImageElement, and drawImage on the created ImageBitmap] - expected: FAIL + expected: TIMEOUT [createImageBitmap from a bitmap SVGImageElement with negative sw/sh, and drawImage on the created ImageBitmap] - expected: FAIL + expected: NOTRUN [createImageBitmap from a vector SVGImageElement, and drawImage on the created ImageBitmap] - expected: FAIL + expected: NOTRUN [createImageBitmap from a vector SVGImageElement with negative sw/sh, and drawImage on the created ImageBitmap] - expected: FAIL + expected: NOTRUN [createImageBitmap from an HTMLCanvasElement scaled down, and drawImage on the created ImageBitmap] expected: FAIL @@ -127,56 +128,56 @@ expected: FAIL [createImageBitmap from a bitmap SVGImageElement scaled down, and drawImage on the created ImageBitmap] - expected: FAIL + expected: NOTRUN [createImageBitmap from a bitmap SVGImageElement scaled up, and drawImage on the created ImageBitmap] - expected: FAIL + expected: NOTRUN [createImageBitmap from a bitmap SVGImageElement resized, and drawImage on the created ImageBitmap] - expected: FAIL + expected: NOTRUN [createImageBitmap from a vector SVGImageElement scaled down, and drawImage on the created ImageBitmap] - expected: FAIL + expected: NOTRUN [createImageBitmap from a vector SVGImageElement scaled up, and drawImage on the created ImageBitmap] - expected: FAIL + expected: NOTRUN [createImageBitmap from a vector SVGImageElement resized, and drawImage on the created ImageBitmap] - expected: FAIL + expected: NOTRUN [createImageBitmap from an OffscreenCanvas scaled down, and drawImage on the created ImageBitmap] - expected: FAIL + expected: NOTRUN [createImageBitmap from an OffscreenCanvas scaled up, and drawImage on the created ImageBitmap] - expected: FAIL + expected: NOTRUN [createImageBitmap from an OffscreenCanvas resized, and drawImage on the created ImageBitmap] - expected: FAIL + expected: NOTRUN [createImageBitmap from an ImageData scaled down, and drawImage on the created ImageBitmap] - expected: FAIL + expected: NOTRUN [createImageBitmap from an ImageData scaled up, and drawImage on the created ImageBitmap] - expected: FAIL + expected: NOTRUN [createImageBitmap from an ImageData resized, and drawImage on the created ImageBitmap] - expected: FAIL + expected: NOTRUN [createImageBitmap from an ImageBitmap scaled down, and drawImage on the created ImageBitmap] - expected: FAIL + expected: NOTRUN [createImageBitmap from an ImageBitmap scaled up, and drawImage on the created ImageBitmap] - expected: FAIL + expected: NOTRUN [createImageBitmap from an ImageBitmap resized, and drawImage on the created ImageBitmap] - expected: FAIL + expected: NOTRUN [createImageBitmap from a Blob scaled down, and drawImage on the created ImageBitmap] - expected: FAIL + expected: NOTRUN [createImageBitmap from a Blob scaled up, and drawImage on the created ImageBitmap] - expected: FAIL + expected: NOTRUN [createImageBitmap from a Blob resized, and drawImage on the created ImageBitmap] - expected: FAIL + expected: NOTRUN diff --git a/tests/wpt/metadata/FileAPI/url/url-in-tags-revoke.window.js.ini b/tests/wpt/metadata/FileAPI/url/url-in-tags-revoke.window.js.ini index e76908fb6ca..e363bfabdfc 100644 --- a/tests/wpt/metadata/FileAPI/url/url-in-tags-revoke.window.js.ini +++ b/tests/wpt/metadata/FileAPI/url/url-in-tags-revoke.window.js.ini @@ -1,4 +1,8 @@ [url-in-tags-revoke.window.html] + expected: TIMEOUT [Fetching a blob URL immediately before revoking it works in an iframe.] expected: FAIL + [Fetching a blob URL immediately before revoking it works in + + +
+ + diff --git a/tests/wpt/web-platform-tests/css/css-paint-api/background-image-alpha.https.html b/tests/wpt/web-platform-tests/css/css-paint-api/background-image-alpha.https.html index de8a0d7c7fb..53d869d0607 100644 --- a/tests/wpt/web-platform-tests/css/css-paint-api/background-image-alpha.https.html +++ b/tests/wpt/web-platform-tests/css/css-paint-api/background-image-alpha.https.html @@ -21,7 +21,7 @@ } - +
@@ -49,7 +49,7 @@ registerPaint('nonOpaque', class { diff --git a/tests/wpt/web-platform-tests/css/css-paint-api/background-image-multiple.https.html b/tests/wpt/web-platform-tests/css/css-paint-api/background-image-multiple.https.html index 7fb575107d3..79ff8836c15 100644 --- a/tests/wpt/web-platform-tests/css/css-paint-api/background-image-multiple.https.html +++ b/tests/wpt/web-platform-tests/css/css-paint-api/background-image-multiple.https.html @@ -9,7 +9,7 @@ } - +
@@ -27,7 +27,7 @@ for (let i = 0; i < 3; i++) { diff --git a/tests/wpt/web-platform-tests/css/css-paint-api/background-image-tiled.https.html b/tests/wpt/web-platform-tests/css/css-paint-api/background-image-tiled.https.html index 0497acf2230..8498c82a355 100644 --- a/tests/wpt/web-platform-tests/css/css-paint-api/background-image-tiled.https.html +++ b/tests/wpt/web-platform-tests/css/css-paint-api/background-image-tiled.https.html @@ -21,7 +21,7 @@ } - +
@@ -38,7 +38,7 @@ registerPaint('ellipse', class { diff --git a/tests/wpt/web-platform-tests/css/css-paint-api/geometry-background-image-001.https.html b/tests/wpt/web-platform-tests/css/css-paint-api/geometry-background-image-001.https.html index d1207e0bdc4..601d4187b09 100644 --- a/tests/wpt/web-platform-tests/css/css-paint-api/geometry-background-image-001.https.html +++ b/tests/wpt/web-platform-tests/css/css-paint-api/geometry-background-image-001.https.html @@ -13,7 +13,7 @@ html, body { margin: 0; padding: 0; } } - +
@@ -28,7 +28,7 @@ registerPaint('geometry', class { diff --git a/tests/wpt/web-platform-tests/css/css-paint-api/geometry-background-image-002.https.html b/tests/wpt/web-platform-tests/css/css-paint-api/geometry-background-image-002.https.html index 47455ba232c..1d57073bf20 100644 --- a/tests/wpt/web-platform-tests/css/css-paint-api/geometry-background-image-002.https.html +++ b/tests/wpt/web-platform-tests/css/css-paint-api/geometry-background-image-002.https.html @@ -13,7 +13,7 @@ html, body { margin: 0; padding: 0; } } - +
@@ -28,7 +28,7 @@ registerPaint('geometry', class { diff --git a/tests/wpt/web-platform-tests/css/css-paint-api/geometry-background-image-tiled-001.https.html b/tests/wpt/web-platform-tests/css/css-paint-api/geometry-background-image-tiled-001.https.html index 5cf8eb79ed5..8e28b54b36d 100644 --- a/tests/wpt/web-platform-tests/css/css-paint-api/geometry-background-image-tiled-001.https.html +++ b/tests/wpt/web-platform-tests/css/css-paint-api/geometry-background-image-tiled-001.https.html @@ -14,7 +14,7 @@ html, body { margin: 0; padding: 0; } } - +
@@ -30,7 +30,7 @@ registerPaint('geometry', class { diff --git a/tests/wpt/web-platform-tests/css/css-paint-api/geometry-background-image-tiled-002.https.html b/tests/wpt/web-platform-tests/css/css-paint-api/geometry-background-image-tiled-002.https.html index 491abd117da..9248e38641e 100644 --- a/tests/wpt/web-platform-tests/css/css-paint-api/geometry-background-image-tiled-002.https.html +++ b/tests/wpt/web-platform-tests/css/css-paint-api/geometry-background-image-tiled-002.https.html @@ -14,7 +14,7 @@ html, body { margin: 0; padding: 0; } } - +
@@ -29,7 +29,7 @@ registerPaint('geometry', class { diff --git a/tests/wpt/web-platform-tests/css/css-paint-api/geometry-background-image-tiled-003.https.html b/tests/wpt/web-platform-tests/css/css-paint-api/geometry-background-image-tiled-003.https.html index 9a29c30ffbd..5b6b6c7c65a 100644 --- a/tests/wpt/web-platform-tests/css/css-paint-api/geometry-background-image-tiled-003.https.html +++ b/tests/wpt/web-platform-tests/css/css-paint-api/geometry-background-image-tiled-003.https.html @@ -14,7 +14,7 @@ html, body { margin: 0; padding: 0; } } - +
@@ -29,7 +29,7 @@ registerPaint('geometry', class { diff --git a/tests/wpt/web-platform-tests/css/css-paint-api/geometry-border-image-001.https.html b/tests/wpt/web-platform-tests/css/css-paint-api/geometry-border-image-001.https.html index 54249d34808..3fb4643cd47 100644 --- a/tests/wpt/web-platform-tests/css/css-paint-api/geometry-border-image-001.https.html +++ b/tests/wpt/web-platform-tests/css/css-paint-api/geometry-border-image-001.https.html @@ -15,7 +15,7 @@ html, body { margin: 0; padding: 0; } } - +
@@ -34,7 +34,7 @@ registerPaint('geometry', class { diff --git a/tests/wpt/web-platform-tests/css/css-paint-api/geometry-border-image-002.https.html b/tests/wpt/web-platform-tests/css/css-paint-api/geometry-border-image-002.https.html index 4759886d073..26e24bb0146 100644 --- a/tests/wpt/web-platform-tests/css/css-paint-api/geometry-border-image-002.https.html +++ b/tests/wpt/web-platform-tests/css/css-paint-api/geometry-border-image-002.https.html @@ -15,7 +15,7 @@ html, body { margin: 0; padding: 0; } } - +
@@ -34,7 +34,7 @@ registerPaint('geometry', class { diff --git a/tests/wpt/web-platform-tests/css/css-paint-api/geometry-border-image-003.https.html b/tests/wpt/web-platform-tests/css/css-paint-api/geometry-border-image-003.https.html index 1ce6ac98615..a26f2b7d109 100644 --- a/tests/wpt/web-platform-tests/css/css-paint-api/geometry-border-image-003.https.html +++ b/tests/wpt/web-platform-tests/css/css-paint-api/geometry-border-image-003.https.html @@ -15,7 +15,7 @@ html, body { margin: 0; padding: 0; } } - +
@@ -34,7 +34,7 @@ registerPaint('geometry', class { diff --git a/tests/wpt/web-platform-tests/css/css-paint-api/geometry-border-image-004.https.html b/tests/wpt/web-platform-tests/css/css-paint-api/geometry-border-image-004.https.html index b15b66d9b90..60db7ff4bc5 100644 --- a/tests/wpt/web-platform-tests/css/css-paint-api/geometry-border-image-004.https.html +++ b/tests/wpt/web-platform-tests/css/css-paint-api/geometry-border-image-004.https.html @@ -15,7 +15,7 @@ html, body { margin: 0; padding: 0; } } - +
@@ -35,7 +35,7 @@ registerPaint('geometry', class { diff --git a/tests/wpt/web-platform-tests/css/css-paint-api/geometry-with-float-size.https.html b/tests/wpt/web-platform-tests/css/css-paint-api/geometry-with-float-size.https.html index 6cd3ecada36..65477e4b3bf 100644 --- a/tests/wpt/web-platform-tests/css/css-paint-api/geometry-with-float-size.https.html +++ b/tests/wpt/web-platform-tests/css/css-paint-api/geometry-with-float-size.https.html @@ -12,7 +12,7 @@ } - +
@@ -29,7 +29,7 @@ registerPaint('geometry', class { diff --git a/tests/wpt/web-platform-tests/css/css-paint-api/hidpi/device-pixel-ratio.https.html b/tests/wpt/web-platform-tests/css/css-paint-api/hidpi/device-pixel-ratio.https.html index fb62c23dc5f..46a9aa28f2f 100644 --- a/tests/wpt/web-platform-tests/css/css-paint-api/hidpi/device-pixel-ratio.https.html +++ b/tests/wpt/web-platform-tests/css/css-paint-api/hidpi/device-pixel-ratio.https.html @@ -13,7 +13,7 @@ html, body { margin: 0; padding: 0; } } - +

This test ensures that the PaintWorkletGlobalScope.devicePixelRatio returns the correct value, which should be identical as window.devicePixelRatio. To @@ -33,7 +33,7 @@ registerPaint('geometry', class { diff --git a/tests/wpt/web-platform-tests/css/css-paint-api/invalid-image-constructor-error.https.html b/tests/wpt/web-platform-tests/css/css-paint-api/invalid-image-constructor-error.https.html index 022b915a650..439ff8b4e5a 100644 --- a/tests/wpt/web-platform-tests/css/css-paint-api/invalid-image-constructor-error.https.html +++ b/tests/wpt/web-platform-tests/css/css-paint-api/invalid-image-constructor-error.https.html @@ -9,7 +9,7 @@ } - +

@@ -33,7 +33,7 @@ registerPaint('successIndicator', class { diff --git a/tests/wpt/web-platform-tests/css/css-paint-api/invalid-image-paint-error.https.html b/tests/wpt/web-platform-tests/css/css-paint-api/invalid-image-paint-error.https.html index c185d890ae5..2806ad92048 100644 --- a/tests/wpt/web-platform-tests/css/css-paint-api/invalid-image-paint-error.https.html +++ b/tests/wpt/web-platform-tests/css/css-paint-api/invalid-image-paint-error.https.html @@ -9,7 +9,7 @@ } - +
@@ -30,7 +30,7 @@ registerPaint('successIndicator', class { diff --git a/tests/wpt/web-platform-tests/css/css-paint-api/invalid-image-pending-script.https.html b/tests/wpt/web-platform-tests/css/css-paint-api/invalid-image-pending-script.https.html index e19fa417e93..4347a00a499 100644 --- a/tests/wpt/web-platform-tests/css/css-paint-api/invalid-image-pending-script.https.html +++ b/tests/wpt/web-platform-tests/css/css-paint-api/invalid-image-pending-script.https.html @@ -9,7 +9,7 @@ } - +
@@ -26,7 +26,7 @@ registerPaint('successIndicator', class { diff --git a/tests/wpt/web-platform-tests/css/css-paint-api/overdraw.https.html b/tests/wpt/web-platform-tests/css/css-paint-api/overdraw.https.html index f95eeb5bb41..5be26f7e0a8 100644 --- a/tests/wpt/web-platform-tests/css/css-paint-api/overdraw.https.html +++ b/tests/wpt/web-platform-tests/css/css-paint-api/overdraw.https.html @@ -10,7 +10,7 @@ } - +
@@ -24,7 +24,7 @@ registerPaint('green', class { diff --git a/tests/wpt/web-platform-tests/css/css-paint-api/paint-arguments.https.html b/tests/wpt/web-platform-tests/css/css-paint-api/paint-arguments.https.html index f4ae452be5e..abfb2a68e4b 100644 --- a/tests/wpt/web-platform-tests/css/css-paint-api/paint-arguments.https.html +++ b/tests/wpt/web-platform-tests/css/css-paint-api/paint-arguments.https.html @@ -21,7 +21,7 @@ } - +
@@ -43,7 +43,7 @@ registerPaint('box', class { diff --git a/tests/wpt/web-platform-tests/css/css-paint-api/paint-function-arguments.https.html b/tests/wpt/web-platform-tests/css/css-paint-api/paint-function-arguments.https.html index d49f3f2b3d9..d87b0b80a61 100644 --- a/tests/wpt/web-platform-tests/css/css-paint-api/paint-function-arguments.https.html +++ b/tests/wpt/web-platform-tests/css/css-paint-api/paint-function-arguments.https.html @@ -21,7 +21,7 @@ } - +
@@ -43,7 +43,7 @@ registerPaint('box', class { diff --git a/tests/wpt/web-platform-tests/css/css-paint-api/paint2d-composite.https.html b/tests/wpt/web-platform-tests/css/css-paint-api/paint2d-composite.https.html index ba88f92672e..80e94e45a8c 100644 --- a/tests/wpt/web-platform-tests/css/css-paint-api/paint2d-composite.https.html +++ b/tests/wpt/web-platform-tests/css/css-paint-api/paint2d-composite.https.html @@ -19,7 +19,7 @@ #xor { background-image: paint(xor); } - +
@@ -67,7 +67,7 @@ for (var i = 0; i < compositeOps.length; i++) { diff --git a/tests/wpt/web-platform-tests/css/css-paint-api/paint2d-filter.https.html b/tests/wpt/web-platform-tests/css/css-paint-api/paint2d-filter.https.html index 560b1b281b8..d0c45395757 100644 --- a/tests/wpt/web-platform-tests/css/css-paint-api/paint2d-filter.https.html +++ b/tests/wpt/web-platform-tests/css/css-paint-api/paint2d-filter.https.html @@ -24,7 +24,7 @@ #filter-url { background-image: paint(filter-url); } - +
@@ -100,7 +100,7 @@ for (var i = 0; i < filterOps.length; i++) { diff --git a/tests/wpt/web-platform-tests/css/css-paint-api/paint2d-gradient.https.html b/tests/wpt/web-platform-tests/css/css-paint-api/paint2d-gradient.https.html index b93643017c1..892a7919f1f 100644 --- a/tests/wpt/web-platform-tests/css/css-paint-api/paint2d-gradient.https.html +++ b/tests/wpt/web-platform-tests/css/css-paint-api/paint2d-gradient.https.html @@ -9,7 +9,7 @@ } - +
@@ -34,7 +34,7 @@ registerPaint('gradients', class { diff --git a/tests/wpt/web-platform-tests/css/css-paint-api/paint2d-image.https.html b/tests/wpt/web-platform-tests/css/css-paint-api/paint2d-image.https.html index ba8943012c2..6fce4b6898b 100644 --- a/tests/wpt/web-platform-tests/css/css-paint-api/paint2d-image.https.html +++ b/tests/wpt/web-platform-tests/css/css-paint-api/paint2d-image.https.html @@ -10,7 +10,7 @@ } - +
diff --git a/tests/wpt/web-platform-tests/css/css-paint-api/paint2d-paths.https.html b/tests/wpt/web-platform-tests/css/css-paint-api/paint2d-paths.https.html index 55a01b43f26..091f548cb30 100644 --- a/tests/wpt/web-platform-tests/css/css-paint-api/paint2d-paths.https.html +++ b/tests/wpt/web-platform-tests/css/css-paint-api/paint2d-paths.https.html @@ -9,7 +9,7 @@ } - +
@@ -42,7 +42,7 @@ registerPaint('paths', class { diff --git a/tests/wpt/web-platform-tests/css/css-paint-api/paint2d-rects.https.html b/tests/wpt/web-platform-tests/css/css-paint-api/paint2d-rects.https.html index 24247da2bb6..24942727d5a 100644 --- a/tests/wpt/web-platform-tests/css/css-paint-api/paint2d-rects.https.html +++ b/tests/wpt/web-platform-tests/css/css-paint-api/paint2d-rects.https.html @@ -10,7 +10,7 @@ } - +
@@ -30,7 +30,7 @@ registerPaint('rects', class { diff --git a/tests/wpt/web-platform-tests/css/css-paint-api/paint2d-shadows.https.html b/tests/wpt/web-platform-tests/css/css-paint-api/paint2d-shadows.https.html index ad0a1aacc05..98dcfbce299 100644 --- a/tests/wpt/web-platform-tests/css/css-paint-api/paint2d-shadows.https.html +++ b/tests/wpt/web-platform-tests/css/css-paint-api/paint2d-shadows.https.html @@ -9,7 +9,7 @@ } - +
@@ -33,7 +33,7 @@ registerPaint('shadows', class { diff --git a/tests/wpt/web-platform-tests/css/css-paint-api/paint2d-transform.https.html b/tests/wpt/web-platform-tests/css/css-paint-api/paint2d-transform.https.html index f5b6aa8405c..c91b500a46f 100644 --- a/tests/wpt/web-platform-tests/css/css-paint-api/paint2d-transform.https.html +++ b/tests/wpt/web-platform-tests/css/css-paint-api/paint2d-transform.https.html @@ -9,7 +9,7 @@ } - +
@@ -32,7 +32,7 @@ registerPaint('transform', class { diff --git a/tests/wpt/web-platform-tests/css/css-paint-api/parse-input-arguments-001.https.html b/tests/wpt/web-platform-tests/css/css-paint-api/parse-input-arguments-001.https.html index 931a55a3fd5..4356ce61f4a 100644 --- a/tests/wpt/web-platform-tests/css/css-paint-api/parse-input-arguments-001.https.html +++ b/tests/wpt/web-platform-tests/css/css-paint-api/parse-input-arguments-001.https.html @@ -12,7 +12,7 @@ } - +
@@ -42,7 +42,7 @@ registerPaint('geometry', class { diff --git a/tests/wpt/web-platform-tests/css/css-paint-api/parse-input-arguments-002.https.html b/tests/wpt/web-platform-tests/css/css-paint-api/parse-input-arguments-002.https.html index c07c0c0a5af..6fc16c74701 100644 --- a/tests/wpt/web-platform-tests/css/css-paint-api/parse-input-arguments-002.https.html +++ b/tests/wpt/web-platform-tests/css/css-paint-api/parse-input-arguments-002.https.html @@ -12,7 +12,7 @@ } - +
@@ -42,7 +42,7 @@ registerPaint('geometry', class { diff --git a/tests/wpt/web-platform-tests/css/css-paint-api/parse-input-arguments-003.https.html b/tests/wpt/web-platform-tests/css/css-paint-api/parse-input-arguments-003.https.html index ff388deeab7..44fd850f9ab 100644 --- a/tests/wpt/web-platform-tests/css/css-paint-api/parse-input-arguments-003.https.html +++ b/tests/wpt/web-platform-tests/css/css-paint-api/parse-input-arguments-003.https.html @@ -12,7 +12,7 @@ } - +
@@ -42,7 +42,7 @@ registerPaint('geometry', class { diff --git a/tests/wpt/web-platform-tests/css/css-paint-api/parse-input-arguments-004.https.html b/tests/wpt/web-platform-tests/css/css-paint-api/parse-input-arguments-004.https.html index 8d5b8d720a2..138a7908682 100644 --- a/tests/wpt/web-platform-tests/css/css-paint-api/parse-input-arguments-004.https.html +++ b/tests/wpt/web-platform-tests/css/css-paint-api/parse-input-arguments-004.https.html @@ -12,7 +12,7 @@ } - +
@@ -43,7 +43,7 @@ registerPaint('geometry', class { diff --git a/tests/wpt/web-platform-tests/css/css-paint-api/parse-input-arguments-005.https.html b/tests/wpt/web-platform-tests/css/css-paint-api/parse-input-arguments-005.https.html index b726c22b92d..c12e00c92f5 100644 --- a/tests/wpt/web-platform-tests/css/css-paint-api/parse-input-arguments-005.https.html +++ b/tests/wpt/web-platform-tests/css/css-paint-api/parse-input-arguments-005.https.html @@ -12,7 +12,7 @@ } - +
@@ -39,7 +39,7 @@ registerPaint('geometry', class { diff --git a/tests/wpt/web-platform-tests/css/css-paint-api/parse-input-arguments-006.https.html b/tests/wpt/web-platform-tests/css/css-paint-api/parse-input-arguments-006.https.html index 7d8504c4fb3..664b7a8c1a0 100644 --- a/tests/wpt/web-platform-tests/css/css-paint-api/parse-input-arguments-006.https.html +++ b/tests/wpt/web-platform-tests/css/css-paint-api/parse-input-arguments-006.https.html @@ -12,7 +12,7 @@ } - +
@@ -38,7 +38,7 @@ registerPaint('geometry', class { diff --git a/tests/wpt/web-platform-tests/css/css-paint-api/parse-input-arguments-007.https.html b/tests/wpt/web-platform-tests/css/css-paint-api/parse-input-arguments-007.https.html index a59ac937706..53f245bce48 100644 --- a/tests/wpt/web-platform-tests/css/css-paint-api/parse-input-arguments-007.https.html +++ b/tests/wpt/web-platform-tests/css/css-paint-api/parse-input-arguments-007.https.html @@ -12,7 +12,7 @@ } - +
@@ -42,7 +42,7 @@ registerPaint('geometry', class { diff --git a/tests/wpt/web-platform-tests/css/css-paint-api/parse-input-arguments-008.https.html b/tests/wpt/web-platform-tests/css/css-paint-api/parse-input-arguments-008.https.html index 2d6df2319d5..1914e3cf044 100644 --- a/tests/wpt/web-platform-tests/css/css-paint-api/parse-input-arguments-008.https.html +++ b/tests/wpt/web-platform-tests/css/css-paint-api/parse-input-arguments-008.https.html @@ -12,7 +12,7 @@ } - +
@@ -42,7 +42,7 @@ registerPaint('geometry', class { diff --git a/tests/wpt/web-platform-tests/css/css-paint-api/parse-input-arguments-009.https.html b/tests/wpt/web-platform-tests/css/css-paint-api/parse-input-arguments-009.https.html index 03c7c690154..21d004df0ee 100644 --- a/tests/wpt/web-platform-tests/css/css-paint-api/parse-input-arguments-009.https.html +++ b/tests/wpt/web-platform-tests/css/css-paint-api/parse-input-arguments-009.https.html @@ -12,7 +12,7 @@ } - +
@@ -40,7 +40,7 @@ registerPaint('geometry', class { diff --git a/tests/wpt/web-platform-tests/css/css-paint-api/parse-input-arguments-010.https.html b/tests/wpt/web-platform-tests/css/css-paint-api/parse-input-arguments-010.https.html index 0bd676844c1..d923479ea81 100644 --- a/tests/wpt/web-platform-tests/css/css-paint-api/parse-input-arguments-010.https.html +++ b/tests/wpt/web-platform-tests/css/css-paint-api/parse-input-arguments-010.https.html @@ -12,7 +12,7 @@ } - +
@@ -40,7 +40,7 @@ registerPaint('geometry', class { diff --git a/tests/wpt/web-platform-tests/css/css-paint-api/parse-input-arguments-011.https.html b/tests/wpt/web-platform-tests/css/css-paint-api/parse-input-arguments-011.https.html index e772a50e54e..6cea438fce2 100644 --- a/tests/wpt/web-platform-tests/css/css-paint-api/parse-input-arguments-011.https.html +++ b/tests/wpt/web-platform-tests/css/css-paint-api/parse-input-arguments-011.https.html @@ -12,7 +12,7 @@ } - +
@@ -38,7 +38,7 @@ registerPaint('geometry', class { diff --git a/tests/wpt/web-platform-tests/css/css-paint-api/parse-input-arguments-012.https.html b/tests/wpt/web-platform-tests/css/css-paint-api/parse-input-arguments-012.https.html index 422b45ffff3..938150aa9aa 100644 --- a/tests/wpt/web-platform-tests/css/css-paint-api/parse-input-arguments-012.https.html +++ b/tests/wpt/web-platform-tests/css/css-paint-api/parse-input-arguments-012.https.html @@ -12,7 +12,7 @@ } - +
@@ -42,7 +42,7 @@ registerPaint('geometry', class { diff --git a/tests/wpt/web-platform-tests/css/css-paint-api/parse-input-arguments-013.https.html b/tests/wpt/web-platform-tests/css/css-paint-api/parse-input-arguments-013.https.html index cd628793481..37e3eb435ec 100644 --- a/tests/wpt/web-platform-tests/css/css-paint-api/parse-input-arguments-013.https.html +++ b/tests/wpt/web-platform-tests/css/css-paint-api/parse-input-arguments-013.https.html @@ -12,7 +12,7 @@ } - +
@@ -38,7 +38,7 @@ registerPaint('geometry', class { diff --git a/tests/wpt/web-platform-tests/css/css-paint-api/parse-input-arguments-014.https.html b/tests/wpt/web-platform-tests/css/css-paint-api/parse-input-arguments-014.https.html index 39aee6ad75e..690e488b917 100644 --- a/tests/wpt/web-platform-tests/css/css-paint-api/parse-input-arguments-014.https.html +++ b/tests/wpt/web-platform-tests/css/css-paint-api/parse-input-arguments-014.https.html @@ -12,7 +12,7 @@ } - +
@@ -40,7 +40,7 @@ registerPaint('geometry', class { diff --git a/tests/wpt/web-platform-tests/css/css-paint-api/parse-input-arguments-015.https.html b/tests/wpt/web-platform-tests/css/css-paint-api/parse-input-arguments-015.https.html index c2e1844615c..fba76712466 100644 --- a/tests/wpt/web-platform-tests/css/css-paint-api/parse-input-arguments-015.https.html +++ b/tests/wpt/web-platform-tests/css/css-paint-api/parse-input-arguments-015.https.html @@ -12,7 +12,7 @@ } - +
@@ -43,7 +43,7 @@ registerPaint('geometry', class { diff --git a/tests/wpt/web-platform-tests/css/css-paint-api/parse-input-arguments-016.https.html b/tests/wpt/web-platform-tests/css/css-paint-api/parse-input-arguments-016.https.html index 4bea1b43e23..8c9d05dcd1a 100644 --- a/tests/wpt/web-platform-tests/css/css-paint-api/parse-input-arguments-016.https.html +++ b/tests/wpt/web-platform-tests/css/css-paint-api/parse-input-arguments-016.https.html @@ -12,7 +12,7 @@ } - +
@@ -42,7 +42,7 @@ registerPaint('geometry', class { diff --git a/tests/wpt/web-platform-tests/css/css-paint-api/parse-input-arguments-017.https.html b/tests/wpt/web-platform-tests/css/css-paint-api/parse-input-arguments-017.https.html index 38f9f43b94d..0d14fe74c21 100644 --- a/tests/wpt/web-platform-tests/css/css-paint-api/parse-input-arguments-017.https.html +++ b/tests/wpt/web-platform-tests/css/css-paint-api/parse-input-arguments-017.https.html @@ -12,7 +12,7 @@ } - +
@@ -41,7 +41,7 @@ registerPaint('geometry', class { diff --git a/tests/wpt/web-platform-tests/css/css-paint-api/parse-input-arguments-018.https.html b/tests/wpt/web-platform-tests/css/css-paint-api/parse-input-arguments-018.https.html index 9d03a8d2ae6..541332ae777 100644 --- a/tests/wpt/web-platform-tests/css/css-paint-api/parse-input-arguments-018.https.html +++ b/tests/wpt/web-platform-tests/css/css-paint-api/parse-input-arguments-018.https.html @@ -13,7 +13,7 @@ } - +

This test result should show a rect with black border, where the rect is filled with green on the lower right corner. The registerPaint('failureIndicator') @@ -63,7 +63,7 @@ registerPaint('geometry', class { diff --git a/tests/wpt/web-platform-tests/css/css-paint-api/parse-input-arguments-019.https.html b/tests/wpt/web-platform-tests/css/css-paint-api/parse-input-arguments-019.https.html index 76627fbe648..707a0c6ebe0 100644 --- a/tests/wpt/web-platform-tests/css/css-paint-api/parse-input-arguments-019.https.html +++ b/tests/wpt/web-platform-tests/css/css-paint-api/parse-input-arguments-019.https.html @@ -12,7 +12,7 @@ } - +

@@ -41,7 +41,7 @@ registerPaint('geometry', class { diff --git a/tests/wpt/web-platform-tests/css/css-paint-api/parse-input-arguments-020.https.html b/tests/wpt/web-platform-tests/css/css-paint-api/parse-input-arguments-020.https.html index b582555e30d..fe8dbad27bd 100644 --- a/tests/wpt/web-platform-tests/css/css-paint-api/parse-input-arguments-020.https.html +++ b/tests/wpt/web-platform-tests/css/css-paint-api/parse-input-arguments-020.https.html @@ -12,7 +12,7 @@ } - +
@@ -40,7 +40,7 @@ registerPaint('geometry', class { diff --git a/tests/wpt/web-platform-tests/css/css-paint-api/parse-input-arguments-021.https.html b/tests/wpt/web-platform-tests/css/css-paint-api/parse-input-arguments-021.https.html index 666d4c485c2..0c3a596236f 100644 --- a/tests/wpt/web-platform-tests/css/css-paint-api/parse-input-arguments-021.https.html +++ b/tests/wpt/web-platform-tests/css/css-paint-api/parse-input-arguments-021.https.html @@ -12,7 +12,7 @@ } - +
@@ -43,7 +43,7 @@ registerPaint('geometry', class { diff --git a/tests/wpt/web-platform-tests/css/css-paint-api/parse-input-arguments-022.https.html b/tests/wpt/web-platform-tests/css/css-paint-api/parse-input-arguments-022.https.html index 3c5d9f9b6bf..50aaa6b3c94 100644 --- a/tests/wpt/web-platform-tests/css/css-paint-api/parse-input-arguments-022.https.html +++ b/tests/wpt/web-platform-tests/css/css-paint-api/parse-input-arguments-022.https.html @@ -12,7 +12,7 @@ } - +
@@ -41,7 +41,7 @@ registerPaint('geometry', class { diff --git a/tests/wpt/web-platform-tests/css/css-paint-api/registered-properties-in-custom-paint.https.html b/tests/wpt/web-platform-tests/css/css-paint-api/registered-properties-in-custom-paint.https.html index c446347557f..00b03681ac0 100644 --- a/tests/wpt/web-platform-tests/css/css-paint-api/registered-properties-in-custom-paint.https.html +++ b/tests/wpt/web-platform-tests/css/css-paint-api/registered-properties-in-custom-paint.https.html @@ -14,7 +14,7 @@ } - +
@@ -56,7 +56,7 @@ registerPaint('geometry', class { CSS.registerProperty({name: '--length', syntax: '', initialValue: '0px'}); CSS.registerProperty({name: '--length-initial', syntax: '', initialValue: '20px'}); CSS.registerProperty({name: '--number', syntax: '', initialValue: '0'}); - importPaintWorkletAndTerminateTestAfterAsyncPaint(document.getElementById('code').textContent); + importWorkletAndTerminateTestAfterAsyncPaint(CSS.paintWorklet, document.getElementById('code').textContent); diff --git a/tests/wpt/web-platform-tests/css/css-paint-api/style-background-image.https.html b/tests/wpt/web-platform-tests/css/css-paint-api/style-background-image.https.html index 785360730dc..6eeaf3c0a41 100644 --- a/tests/wpt/web-platform-tests/css/css-paint-api/style-background-image.https.html +++ b/tests/wpt/web-platform-tests/css/css-paint-api/style-background-image.https.html @@ -14,7 +14,7 @@ } - +
@@ -56,7 +56,7 @@ registerPaint('geometry', class { diff --git a/tests/wpt/web-platform-tests/css/css-paint-api/style-before-pseudo.https.html b/tests/wpt/web-platform-tests/css/css-paint-api/style-before-pseudo.https.html index 5249f58ecbf..bf3f69fa359 100644 --- a/tests/wpt/web-platform-tests/css/css-paint-api/style-before-pseudo.https.html +++ b/tests/wpt/web-platform-tests/css/css-paint-api/style-before-pseudo.https.html @@ -18,7 +18,7 @@ div::before { } - +
@@ -57,7 +57,7 @@ registerPaint('geometry', class { diff --git a/tests/wpt/web-platform-tests/css/css-paint-api/style-first-letter-pseudo.https.html b/tests/wpt/web-platform-tests/css/css-paint-api/style-first-letter-pseudo.https.html index 3cdffb4593e..b8a22ce4d1a 100644 --- a/tests/wpt/web-platform-tests/css/css-paint-api/style-first-letter-pseudo.https.html +++ b/tests/wpt/web-platform-tests/css/css-paint-api/style-first-letter-pseudo.https.html @@ -15,7 +15,7 @@ div::first-letter { } - +
ppp
@@ -51,7 +51,7 @@ registerPaint('geometry', class { diff --git a/tests/wpt/web-platform-tests/css/css-paint-api/valid-image-after-load.https.html b/tests/wpt/web-platform-tests/css/css-paint-api/valid-image-after-load.https.html index 73557d245de..44612f98ffd 100644 --- a/tests/wpt/web-platform-tests/css/css-paint-api/valid-image-after-load.https.html +++ b/tests/wpt/web-platform-tests/css/css-paint-api/valid-image-after-load.https.html @@ -9,7 +9,6 @@ } -
diff --git a/tests/wpt/web-platform-tests/css/css-paint-api/valid-image-before-load.https.html b/tests/wpt/web-platform-tests/css/css-paint-api/valid-image-before-load.https.html index 483d16cfa89..7738d9dd115 100644 --- a/tests/wpt/web-platform-tests/css/css-paint-api/valid-image-before-load.https.html +++ b/tests/wpt/web-platform-tests/css/css-paint-api/valid-image-before-load.https.html @@ -9,7 +9,6 @@ } -
diff --git a/tests/wpt/web-platform-tests/css/css-pseudo/first-letter-property-whitelist.html b/tests/wpt/web-platform-tests/css/css-pseudo/first-letter-property-whitelist.html new file mode 100644 index 00000000000..073e554a8c4 --- /dev/null +++ b/tests/wpt/web-platform-tests/css/css-pseudo/first-letter-property-whitelist.html @@ -0,0 +1,82 @@ + +CSS Test: Properties allowed on ::first-letter pseudo elements + + + + + +
text
+ diff --git a/tests/wpt/web-platform-tests/css/css-typed-om/stylevalue-normalization/normalize-tokens.tentative.html b/tests/wpt/web-platform-tests/css/css-typed-om/stylevalue-normalization/normalize-tokens.tentative.html index 33113805414..5e58bea963c 100644 --- a/tests/wpt/web-platform-tests/css/css-typed-om/stylevalue-normalization/normalize-tokens.tentative.html +++ b/tests/wpt/web-platform-tests/css/css-typed-om/stylevalue-normalization/normalize-tokens.tentative.html @@ -29,22 +29,22 @@ const gTestCases = [ { value: 'var(--A, 1em)', expectedResult: [ - new CSSVariableReferenceValue('--A', new CSSUnparsedValue(' 1em')), + new CSSVariableReferenceValue('--A', new CSSUnparsedValue([' 1em'])), ] }, { value: 'var(--A, var(--B))', expectedResult: [ - new CSSVariableReferenceValue('--A', new CSSUnparsedValue(' ', new CSSVariableReferenceValue('--B'))), + new CSSVariableReferenceValue('--A', new CSSUnparsedValue([' ', new CSSVariableReferenceValue('--B')])), ] }, { value: 'calc(42px + var(--foo, 15em) + var(--bar, var(--far) + 15px))', expectedResult: [ 'calc(42px + ', - new CSSVariableReferenceValue('--foo', new CSSUnparsedValue(' 15em')), + new CSSVariableReferenceValue('--foo', new CSSUnparsedValue([' 15em'])), ' + ', - new CSSVariableReferenceValue('--bar', new CSSUnparsedValue(' ', new CSSVariableReferenceValue('--far'), ' + 15px')), + new CSSVariableReferenceValue('--bar', new CSSUnparsedValue([' ', new CSSVariableReferenceValue('--far'), ' + 15px'])), ')', ] }, @@ -52,11 +52,11 @@ const gTestCases = [ for (const {value, expectedResult} of gTestCases) { test(t => { - assert_string_normalizes_to(t, 'color', value, new CSSUnparsedValue(...expectedResult)); + assert_string_normalizes_to(t, 'color', value, new CSSUnparsedValue(expectedResult)); }, 'Normalizing "' + value + '" on a CSS property returns correct CSSUnparsedValue'); test(t => { - assert_string_normalizes_to(t, '--X', value, new CSSUnparsedValue(...expectedResult)); + assert_string_normalizes_to(t, '--X', value, new CSSUnparsedValue(expectedResult)); }, 'Normalizing "' + value + '" on a custom property returns correct CSSUnparsedValue'); } diff --git a/tests/wpt/web-platform-tests/css/css-typed-om/stylevalue-serialization/cssUnparsedValue.html b/tests/wpt/web-platform-tests/css/css-typed-om/stylevalue-serialization/cssUnparsedValue.html index 8b7a8681244..6fc2e0284c1 100644 --- a/tests/wpt/web-platform-tests/css/css-typed-om/stylevalue-serialization/cssUnparsedValue.html +++ b/tests/wpt/web-platform-tests/css/css-typed-om/stylevalue-serialization/cssUnparsedValue.html @@ -11,25 +11,25 @@ 'use strict'; test(() => { - assert_equals(new CSSUnparsedValue('lem', 'on', 'ade').toString(), 'lemonade'); + assert_equals(new CSSUnparsedValue(['lem', 'on', 'ade']).toString(), 'lemonade'); }, 'CSSUnparsedValue containing strings serializes to its concatenated contents'); test(() => { - assert_equals(new CSSUnparsedValue( + assert_equals(new CSSUnparsedValue([ new CSSVariableReferenceValue('--A', - new CSSUnparsedValue(new CSSVariableReferenceValue('--B'))), - new CSSVariableReferenceValue('--C')).toString(), + new CSSUnparsedValue([new CSSVariableReferenceValue('--B')])), + new CSSVariableReferenceValue('--C')]).toString(), 'var(--A,var(--B))var(--C)'); }, 'CSSUnparsedValue containing variable references serializes its ' + 'concatenated contents'); test(() => { - assert_equals(new CSSUnparsedValue('foo', 'bar ', + assert_equals(new CSSUnparsedValue(['foo', 'bar ', new CSSVariableReferenceValue('--A', - new CSSUnparsedValue('baz ', - new CSSVariableReferenceValue('--B'), 'lemon')), + new CSSUnparsedValue(['baz ', + new CSSVariableReferenceValue('--B'), 'lemon'])), new CSSVariableReferenceValue('--C', - new CSSUnparsedValue('ade'))).toString(), + new CSSUnparsedValue(['ade']))]).toString(), 'foobar var(--A,baz var(--B)lemon)var(--C,ade)'); }, 'CSSUnparsedValue containing mix of strings and variable references ' + 'serializes to its concatenated contents'); diff --git a/tests/wpt/web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssUnparsedValue.html b/tests/wpt/web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssUnparsedValue.html index 3a994dd5861..8af27e1b85f 100644 --- a/tests/wpt/web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssUnparsedValue.html +++ b/tests/wpt/web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssUnparsedValue.html @@ -37,7 +37,7 @@ const gTestArguments = [ for (const {args, description} of gTestArguments) { test(() => { - const result = new CSSUnparsedValue(...args); + const result = new CSSUnparsedValue(args); assert_not_equals(result, null, 'A CSSUnparsedValue should be created'); diff --git a/tests/wpt/web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssVariableReferenceValue.html b/tests/wpt/web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssVariableReferenceValue.html index 24082ebc71d..e729acf6dc6 100644 --- a/tests/wpt/web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssVariableReferenceValue.html +++ b/tests/wpt/web-platform-tests/css/css-typed-om/stylevalue-subclasses/cssVariableReferenceValue.html @@ -22,7 +22,7 @@ test(() => { test(() => { const result = new CSSVariableReferenceValue('--foo', - new CSSUnparsedValue('lemon')); + new CSSUnparsedValue(['lemon'])); assert_not_equals(result, null, 'A CSSVariableReferenceValue should be created'); @@ -30,7 +30,7 @@ test(() => { 'Variable member should be same as passed in the constructor'); assert_not_equals(result.fallback, null, 'Fallback member should not be null'); - assert_style_value_equals(result.fallback, new CSSUnparsedValue('lemon'), + assert_style_value_equals(result.fallback, new CSSUnparsedValue(['lemon']), 'Fallback member should be as same as passed in the constructor'); }, 'CSSVariableReferenceValue can be constructed with fallback'); diff --git a/tests/wpt/web-platform-tests/css/css-typed-om/the-stylepropertymap/computed/computed.tentative.html b/tests/wpt/web-platform-tests/css/css-typed-om/the-stylepropertymap/computed/computed.tentative.html index d2a68e7d001..edadefad48d 100644 --- a/tests/wpt/web-platform-tests/css/css-typed-om/the-stylepropertymap/computed/computed.tentative.html +++ b/tests/wpt/web-platform-tests/css/css-typed-om/the-stylepropertymap/computed/computed.tentative.html @@ -38,7 +38,7 @@ test(() => { test(() => { const result = styleMap.get('--foo'); - assert_style_value_equals(result, new CSSUnparsedValue(' auto')); + assert_style_value_equals(result, new CSSUnparsedValue([' auto'])); }, 'Computed StylePropertyMap contains custom property declarations in style rules'); test(() => { @@ -48,7 +48,7 @@ test(() => { test(() => { const result = styleMap.get('--bar'); - assert_style_value_equals(result, new CSSUnparsedValue(' 5')); + assert_style_value_equals(result, new CSSUnparsedValue([' 5'])); }, 'Computed StylePropertyMap contains custom property declarations in inline rules'); test(() => { diff --git a/tests/wpt/web-platform-tests/css/css-typed-om/the-stylepropertymap/computed/get.html b/tests/wpt/web-platform-tests/css/css-typed-om/the-stylepropertymap/computed/get.html index c11ca73e546..3e061e1cbe4 100644 --- a/tests/wpt/web-platform-tests/css/css-typed-om/the-stylepropertymap/computed/get.html +++ b/tests/wpt/web-platform-tests/css/css-typed-om/the-stylepropertymap/computed/get.html @@ -24,7 +24,7 @@ test(t => { test(t => { const styleMap = createComputedStyleMap(t, '--foo: auto; --bar: 10px'); assert_style_value_equals(styleMap.get('--foo'), - new CSSUnparsedValue(' auto')); + new CSSUnparsedValue([' auto'])); }, 'Getting a valid custom property from computed style returns the ' + 'correct entry'); diff --git a/tests/wpt/web-platform-tests/css/css-typed-om/the-stylepropertymap/computed/getAll.tentative.html b/tests/wpt/web-platform-tests/css/css-typed-om/the-stylepropertymap/computed/getAll.tentative.html index cd8dcd0c693..ca7d3b6a65f 100644 --- a/tests/wpt/web-platform-tests/css/css-typed-om/the-stylepropertymap/computed/getAll.tentative.html +++ b/tests/wpt/web-platform-tests/css/css-typed-om/the-stylepropertymap/computed/getAll.tentative.html @@ -31,7 +31,7 @@ test(t => { test(t => { const styleMap = createComputedStyleMap(t, '--foo: auto; --bar: 10px'); - assert_style_value_array_equals(styleMap.getAll('--foo'), [new CSSUnparsedValue(' auto')]); + assert_style_value_array_equals(styleMap.getAll('--foo'), [new CSSUnparsedValue([' auto'])]); }, 'Calling StylePropertyMap.getAll with a valid custom property returns a single element list with the correct entry'); test(t => { diff --git a/tests/wpt/web-platform-tests/css/css-typed-om/the-stylepropertymap/computed/iterable.tentative.html b/tests/wpt/web-platform-tests/css/css-typed-om/the-stylepropertymap/computed/iterable.tentative.html index 07d59d82995..4006b208907 100644 --- a/tests/wpt/web-platform-tests/css/css-typed-om/the-stylepropertymap/computed/iterable.tentative.html +++ b/tests/wpt/web-platform-tests/css/css-typed-om/the-stylepropertymap/computed/iterable.tentative.html @@ -34,9 +34,9 @@ test(t => { test(t => { const styleMap = createComputedStyleMap(t, '--A: A; --C: C; color: red; --B: B;'); - assert_style_value_equals(findInStyleMap(styleMap, '--A'), new CSSUnparsedValue(' A')); - assert_style_value_equals(findInStyleMap(styleMap, '--B'), new CSSUnparsedValue(' B')); - assert_style_value_equals(findInStyleMap(styleMap, '--C'), new CSSUnparsedValue(' C')); + assert_style_value_equals(findInStyleMap(styleMap, '--A'), new CSSUnparsedValue([' A'])); + assert_style_value_equals(findInStyleMap(styleMap, '--B'), new CSSUnparsedValue([' B'])); + assert_style_value_equals(findInStyleMap(styleMap, '--C'), new CSSUnparsedValue([' C'])); }, 'StylePropertyMap iterator returns custom properties with the correct CSSStyleValue'); diff --git a/tests/wpt/web-platform-tests/css/css-typed-om/the-stylepropertymap/declared/declared.tentative.html b/tests/wpt/web-platform-tests/css/css-typed-om/the-stylepropertymap/declared/declared.tentative.html index 355a5093983..b1d7ce66e80 100644 --- a/tests/wpt/web-platform-tests/css/css-typed-om/the-stylepropertymap/declared/declared.tentative.html +++ b/tests/wpt/web-platform-tests/css/css-typed-om/the-stylepropertymap/declared/declared.tentative.html @@ -45,7 +45,7 @@ test(() => { }, 'Declared StylePropertyMap does not contain inline styles'); test(() => { - assert_style_value_equals(styleMap.get('--foo'), new CSSUnparsedValue(' auto')); + assert_style_value_equals(styleMap.get('--foo'), new CSSUnparsedValue([' auto'])); }, 'Declared StylePropertyMap contains custom property declarations'); test(() => { diff --git a/tests/wpt/web-platform-tests/css/css-typed-om/the-stylepropertymap/declared/get.html b/tests/wpt/web-platform-tests/css/css-typed-om/the-stylepropertymap/declared/get.html index aa649df4459..c4215cb339e 100644 --- a/tests/wpt/web-platform-tests/css/css-typed-om/the-stylepropertymap/declared/get.html +++ b/tests/wpt/web-platform-tests/css/css-typed-om/the-stylepropertymap/declared/get.html @@ -29,7 +29,7 @@ test(t => { test(t => { const styleMap = createDeclaredStyleMap(t, '--foo: auto; --bar: 10px'); assert_style_value_equals(styleMap.get('--foo'), - new CSSUnparsedValue(' auto')); + new CSSUnparsedValue([' auto'])); }, 'Getting a valid custom property from CSS rule returns the ' + 'correct entry'); diff --git a/tests/wpt/web-platform-tests/css/css-typed-om/the-stylepropertymap/declared/getAll.tentative.html b/tests/wpt/web-platform-tests/css/css-typed-om/the-stylepropertymap/declared/getAll.tentative.html index 5fe635c7134..dd4e90b22f4 100644 --- a/tests/wpt/web-platform-tests/css/css-typed-om/the-stylepropertymap/declared/getAll.tentative.html +++ b/tests/wpt/web-platform-tests/css/css-typed-om/the-stylepropertymap/declared/getAll.tentative.html @@ -36,7 +36,7 @@ test(t => { test(t => { const styleMap = createDeclaredStyleMap(t, '--foo: auto; --bar: 10px'); - assert_style_value_array_equals(styleMap.getAll('--foo'), [new CSSUnparsedValue(' auto')]); + assert_style_value_array_equals(styleMap.getAll('--foo'), [new CSSUnparsedValue([' auto'])]); }, 'Calling StylePropertyMap.getAll with a valid custom property returns a single element list with the correct entry'); test(t => { diff --git a/tests/wpt/web-platform-tests/css/css-typed-om/the-stylepropertymap/declared/iterable.tentative.html b/tests/wpt/web-platform-tests/css/css-typed-om/the-stylepropertymap/declared/iterable.tentative.html index be61e2520f3..06090103d33 100644 --- a/tests/wpt/web-platform-tests/css/css-typed-om/the-stylepropertymap/declared/iterable.tentative.html +++ b/tests/wpt/web-platform-tests/css/css-typed-om/the-stylepropertymap/declared/iterable.tentative.html @@ -42,9 +42,9 @@ test(t => { assert_array_equals(keys, ['--A', '--B', '--C']); assert_style_value_array_equals(values, [ - new CSSUnparsedValue(' A'), - new CSSUnparsedValue(' B'), - new CSSUnparsedValue(' C'), + new CSSUnparsedValue([' A']), + new CSSUnparsedValue([' B']), + new CSSUnparsedValue([' C']), ]) }, 'StylePropertyMap iterator returns custom properties with the correct CSSStyleValue'); diff --git a/tests/wpt/web-platform-tests/css/css-typed-om/the-stylepropertymap/declared/set.tentative.html b/tests/wpt/web-platform-tests/css/css-typed-om/the-stylepropertymap/declared/set.tentative.html index fe4cced258f..232c7d36203 100644 --- a/tests/wpt/web-platform-tests/css/css-typed-om/the-stylepropertymap/declared/set.tentative.html +++ b/tests/wpt/web-platform-tests/css/css-typed-om/the-stylepropertymap/declared/set.tentative.html @@ -63,11 +63,11 @@ test(t => { test(t => { let styleMap = createDeclaredStyleMap(t, ''); - styleMap.set('--foo', new CSSUnparsedValue('auto')); - assert_style_value_array_equals(styleMap.get('--foo'), new CSSUnparsedValue('auto')); + styleMap.set('--foo', new CSSUnparsedValue(['auto'])); + assert_style_value_array_equals(styleMap.get('--foo'), new CSSUnparsedValue(['auto'])); styleMap.set('--foo', '20px'); - assert_style_value_array_equals(styleMap.get('--foo'), new CSSUnparsedValue('20px')); + assert_style_value_array_equals(styleMap.get('--foo'), new CSSUnparsedValue(['20px'])); }, 'Setting a custom property with CSSStyleValue or String updates its value'); test(t => { diff --git a/tests/wpt/web-platform-tests/css/css-typed-om/the-stylepropertymap/declared/update.tentative.html b/tests/wpt/web-platform-tests/css/css-typed-om/the-stylepropertymap/declared/update.tentative.html index a5ee95e66de..8602e2cb058 100644 --- a/tests/wpt/web-platform-tests/css/css-typed-om/the-stylepropertymap/declared/update.tentative.html +++ b/tests/wpt/web-platform-tests/css/css-typed-om/the-stylepropertymap/declared/update.tentative.html @@ -46,11 +46,11 @@ test(t => { test(t => { let styleMap = createDeclaredStyleMap(t, ''); - styleMap.update('--foo', () => new CSSUnparsedValue('auto')); - assert_style_value_array_equals(styleMap.get('--foo'), new CSSUnparsedValue('auto')); + styleMap.update('--foo', () => new CSSUnparsedValue(['auto'])); + assert_style_value_array_equals(styleMap.get('--foo'), new CSSUnparsedValue(['auto'])); - styleMap.update('--foo', () => new CSSUnparsedValue('20px')); - assert_style_value_array_equals(styleMap.get('--foo'), new CSSUnparsedValue('20px')); + styleMap.update('--foo', () => new CSSUnparsedValue(['20px'])); + assert_style_value_array_equals(styleMap.get('--foo'), new CSSUnparsedValue(['20px'])); }, 'Updating a custom property with CSSStyleValue updates its value'); test(t => { diff --git a/tests/wpt/web-platform-tests/css/css-typed-om/the-stylepropertymap/inline/get.html b/tests/wpt/web-platform-tests/css/css-typed-om/the-stylepropertymap/inline/get.html index ac7c6e44a5a..8588e6eda78 100644 --- a/tests/wpt/web-platform-tests/css/css-typed-om/the-stylepropertymap/inline/get.html +++ b/tests/wpt/web-platform-tests/css/css-typed-om/the-stylepropertymap/inline/get.html @@ -29,7 +29,7 @@ test(t => { test(t => { const styleMap = createInlineStyleMap(t, '--foo: auto; --bar: 10px'); assert_style_value_equals(styleMap.get('--foo'), - new CSSUnparsedValue(' auto')); + new CSSUnparsedValue([' auto'])); }, 'Getting a valid custom property from inline style returns the ' + 'correct entry'); diff --git a/tests/wpt/web-platform-tests/css/css-typed-om/the-stylepropertymap/inline/getAll.tentative.html b/tests/wpt/web-platform-tests/css/css-typed-om/the-stylepropertymap/inline/getAll.tentative.html index 62cbec37c1f..c7e370086db 100644 --- a/tests/wpt/web-platform-tests/css/css-typed-om/the-stylepropertymap/inline/getAll.tentative.html +++ b/tests/wpt/web-platform-tests/css/css-typed-om/the-stylepropertymap/inline/getAll.tentative.html @@ -36,7 +36,7 @@ test(t => { test(t => { const styleMap = createInlineStyleMap(t, '--foo: auto; --bar: 10px'); - assert_style_value_array_equals(styleMap.getAll('--foo'), [new CSSUnparsedValue(' auto')]); + assert_style_value_array_equals(styleMap.getAll('--foo'), [new CSSUnparsedValue([' auto'])]); }, 'Calling StylePropertyMap.getAll with a valid custom property returns a single element list with the correct entry'); test(t => { diff --git a/tests/wpt/web-platform-tests/css/css-typed-om/the-stylepropertymap/inline/iterable.tentative.html b/tests/wpt/web-platform-tests/css/css-typed-om/the-stylepropertymap/inline/iterable.tentative.html index cbf76d8901f..ebd1df7b9bc 100644 --- a/tests/wpt/web-platform-tests/css/css-typed-om/the-stylepropertymap/inline/iterable.tentative.html +++ b/tests/wpt/web-platform-tests/css/css-typed-om/the-stylepropertymap/inline/iterable.tentative.html @@ -42,9 +42,9 @@ test(t => { assert_array_equals(keys, ['--A', '--B', '--C']); assert_style_value_array_equals(values, [ - new CSSUnparsedValue(' A'), - new CSSUnparsedValue(' B'), - new CSSUnparsedValue(' C'), + new CSSUnparsedValue([' A']), + new CSSUnparsedValue([' B']), + new CSSUnparsedValue([' C']), ]) }, 'StylePropertyMap iterator returns custom properties with the correct CSSStyleValue'); diff --git a/tests/wpt/web-platform-tests/css/css-typed-om/the-stylepropertymap/inline/set.tentative.html b/tests/wpt/web-platform-tests/css/css-typed-om/the-stylepropertymap/inline/set.tentative.html index dc8ccc57bcc..67d2426de26 100644 --- a/tests/wpt/web-platform-tests/css/css-typed-om/the-stylepropertymap/inline/set.tentative.html +++ b/tests/wpt/web-platform-tests/css/css-typed-om/the-stylepropertymap/inline/set.tentative.html @@ -63,11 +63,11 @@ test(t => { test(t => { let styleMap = createInlineStyleMap(t, ''); - styleMap.set('--foo', new CSSUnparsedValue('auto')); - assert_style_value_array_equals(styleMap.get('--foo'), new CSSUnparsedValue('auto')); + styleMap.set('--foo', new CSSUnparsedValue(['auto'])); + assert_style_value_array_equals(styleMap.get('--foo'), new CSSUnparsedValue(['auto'])); styleMap.set('--foo', '20px'); - assert_style_value_array_equals(styleMap.get('--foo'), new CSSUnparsedValue('20px')); + assert_style_value_array_equals(styleMap.get('--foo'), new CSSUnparsedValue(['20px'])); }, 'Setting a custom property with CSSStyleValue or String updates its value'); test(t => { diff --git a/tests/wpt/web-platform-tests/css/css-typed-om/the-stylepropertymap/inline/update.tentative.html b/tests/wpt/web-platform-tests/css/css-typed-om/the-stylepropertymap/inline/update.tentative.html index ac2d83411c9..77f2c105d69 100644 --- a/tests/wpt/web-platform-tests/css/css-typed-om/the-stylepropertymap/inline/update.tentative.html +++ b/tests/wpt/web-platform-tests/css/css-typed-om/the-stylepropertymap/inline/update.tentative.html @@ -46,11 +46,11 @@ test(t => { test(t => { let styleMap = createInlineStyleMap(t, ''); - styleMap.update('--foo', () => new CSSUnparsedValue('auto')); - assert_style_value_array_equals(styleMap.get('--foo'), new CSSUnparsedValue('auto')); + styleMap.update('--foo', () => new CSSUnparsedValue(['auto'])); + assert_style_value_array_equals(styleMap.get('--foo'), new CSSUnparsedValue(['auto'])); - styleMap.update('--foo', () => new CSSUnparsedValue('20px')); - assert_style_value_array_equals(styleMap.get('--foo'), new CSSUnparsedValue('20px')); + styleMap.update('--foo', () => new CSSUnparsedValue(['20px'])); + assert_style_value_array_equals(styleMap.get('--foo'), new CSSUnparsedValue(['20px'])); }, 'Updating a custom property with CSSStyleValue updates its value'); test(t => { diff --git a/tests/wpt/web-platform-tests/css/css-writing-modes/available-size-011.html b/tests/wpt/web-platform-tests/css/css-writing-modes/available-size-011.html new file mode 100644 index 00000000000..38aa583bd80 --- /dev/null +++ b/tests/wpt/web-platform-tests/css/css-writing-modes/available-size-011.html @@ -0,0 +1,20 @@ + +orthogonal flow parent with max-height + + + + + + + + +

This test passes if the word “PASS” (without the quotation marks) appears below, written horizontally from left to right. +

S S A P
diff --git a/tests/wpt/web-platform-tests/css/css-writing-modes/available-size-012.html b/tests/wpt/web-platform-tests/css/css-writing-modes/available-size-012.html new file mode 100644 index 00000000000..937129e2092 --- /dev/null +++ b/tests/wpt/web-platform-tests/css/css-writing-modes/available-size-012.html @@ -0,0 +1,44 @@ + + +Testing Available Space in Orthogonal Flows / max-height + min-height / content height + + + + + + + +

Test passes if there is a green rectangle below and no red. + +

+ +
0 0 0 0 0 0 0 0
+
diff --git a/tests/wpt/web-platform-tests/css/css-writing-modes/available-size-013.html b/tests/wpt/web-platform-tests/css/css-writing-modes/available-size-013.html new file mode 100644 index 00000000000..1ffd6564ad0 --- /dev/null +++ b/tests/wpt/web-platform-tests/css/css-writing-modes/available-size-013.html @@ -0,0 +1,47 @@ + + +Testing Available Space in Orthogonal Flows / height + min-height/ content height + + + + + + + +

Test passes if there is a green rectangle below and no red. + +

+ +
0 0 0 0 0 0 0 0
+
diff --git a/tests/wpt/web-platform-tests/css/css-writing-modes/available-size-014.html b/tests/wpt/web-platform-tests/css/css-writing-modes/available-size-014.html new file mode 100644 index 00000000000..e0e41fb6b1a --- /dev/null +++ b/tests/wpt/web-platform-tests/css/css-writing-modes/available-size-014.html @@ -0,0 +1,53 @@ + + +Testing Available Space in Orthogonal Flows / height + min-height / not remaining size + + + + + + + +

Test passes if there is a green rectangle below and no red. + +

+ +
0 0 0 0 0 0 0 0
+ +
diff --git a/tests/wpt/web-platform-tests/css/css-writing-modes/available-size-015.html b/tests/wpt/web-platform-tests/css/css-writing-modes/available-size-015.html new file mode 100644 index 00000000000..f7cb13b24e0 --- /dev/null +++ b/tests/wpt/web-platform-tests/css/css-writing-modes/available-size-015.html @@ -0,0 +1,51 @@ + + +Testing Available Space in Orthogonal Flows / ICB / tall max-height + min-height scroller + + + + + + + +

Test passes if there is a green rectangle below and no red. + +

+
0
+
diff --git a/tests/wpt/web-platform-tests/css/css-writing-modes/available-size-016.html b/tests/wpt/web-platform-tests/css/css-writing-modes/available-size-016.html new file mode 100644 index 00000000000..c3c388e2446 --- /dev/null +++ b/tests/wpt/web-platform-tests/css/css-writing-modes/available-size-016.html @@ -0,0 +1,55 @@ + + +Testing Available Space in Orthogonal Flows / ICB / tall height + min-height scroller + + + + + + + +

Test passes if there is a green rectangle below and no red. + +

+
0
+
diff --git a/tests/wpt/web-platform-tests/css/css-writing-modes/available-size-017.html b/tests/wpt/web-platform-tests/css/css-writing-modes/available-size-017.html new file mode 100644 index 00000000000..79f1b85fd14 --- /dev/null +++ b/tests/wpt/web-platform-tests/css/css-writing-modes/available-size-017.html @@ -0,0 +1,43 @@ + + +Testing Available Space in Orthogonal Flows / height + min-height parent + + + + + + + +

Test passes if there is a green rectangle below and no red. + +

+ +
0 0 0 0 0 0 0 0
+
diff --git a/tests/wpt/web-platform-tests/css/css-writing-modes/available-size-018.html b/tests/wpt/web-platform-tests/css/css-writing-modes/available-size-018.html new file mode 100644 index 00000000000..4e86db79deb --- /dev/null +++ b/tests/wpt/web-platform-tests/css/css-writing-modes/available-size-018.html @@ -0,0 +1,43 @@ + + +Testing Available Space in Orthogonal Flows / max-height + min-height parent + + + + + + + +

Test passes if there is a green rectangle below and no red. + +

+ +
0 0 0 0 0 0 0 0
+
diff --git a/tests/wpt/web-platform-tests/css/css-writing-modes/reference/available-size-011-ref.html b/tests/wpt/web-platform-tests/css/css-writing-modes/reference/available-size-011-ref.html new file mode 100644 index 00000000000..ef66b4e0d62 --- /dev/null +++ b/tests/wpt/web-platform-tests/css/css-writing-modes/reference/available-size-011-ref.html @@ -0,0 +1,14 @@ + +CSS writing mode test reference + + + + +

This test passes if the word “PASS” (without the quotation marks) appears below, written horizontally from left to right. +

S S A P
diff --git a/tests/wpt/web-platform-tests/css/selectors/matches-nested.html b/tests/wpt/web-platform-tests/css/selectors/matches-nested.html new file mode 100644 index 00000000000..b82d43d0901 --- /dev/null +++ b/tests/wpt/web-platform-tests/css/selectors/matches-nested.html @@ -0,0 +1,72 @@ + + + + CSS Selectors: :matches() + + + + + + + + +
+
+
+
+
+
+
+
+ Yellow +
+
+
+
+
+
+ Red +
+
+ + + \ No newline at end of file diff --git a/tests/wpt/web-platform-tests/css/selectors/matches-specificity.html b/tests/wpt/web-platform-tests/css/selectors/matches-specificity.html new file mode 100644 index 00000000000..41d7251a3d7 --- /dev/null +++ b/tests/wpt/web-platform-tests/css/selectors/matches-specificity.html @@ -0,0 +1,41 @@ + + + + CSS Selectors: :matches() + + + + + + + + +
+
+
+
+
+ + + \ No newline at end of file diff --git a/tests/wpt/web-platform-tests/html/editing/editing-0/contenteditable/contentEditable-slotted-inherit.html b/tests/wpt/web-platform-tests/html/editing/editing-0/contenteditable/contentEditable-slotted-inherit.html new file mode 100644 index 00000000000..42da515920e --- /dev/null +++ b/tests/wpt/web-platform-tests/html/editing/editing-0/contenteditable/contentEditable-slotted-inherit.html @@ -0,0 +1,37 @@ + + +contentEditable inherit from light tree parent + + + + +

You should see the word PASS two times below and no FAIL.

+
FAILPASS
+
FAILPASS
+ diff --git a/tests/wpt/web-platform-tests/html/semantics/forms/textfieldselection/setSelectionRange.html b/tests/wpt/web-platform-tests/html/semantics/forms/textfieldselection/setSelectionRange.html new file mode 100644 index 00000000000..bdf52a77f87 --- /dev/null +++ b/tests/wpt/web-platform-tests/html/semantics/forms/textfieldselection/setSelectionRange.html @@ -0,0 +1,18 @@ + + + + + + + diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/cacheable-script-throw.py b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/cacheable-script-throw.py new file mode 100644 index 00000000000..5df883c07be --- /dev/null +++ b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/cacheable-script-throw.py @@ -0,0 +1,4 @@ +def main(request, response): + headers = [("Content-Type", "text/javascript"), ("Cache-control", "public, max-age=100")] + body = "throw('fox');" + return 200, headers, body diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/muted-errors-iframe.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/muted-errors-iframe.html new file mode 100644 index 00000000000..255e79e191a --- /dev/null +++ b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/muted-errors-iframe.html @@ -0,0 +1,2 @@ + + diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/muted-errors.sub.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/muted-errors.sub.html new file mode 100644 index 00000000000..a42179dc85d --- /dev/null +++ b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/muted-errors.sub.html @@ -0,0 +1,52 @@ + +Muted Errors + + + + + + + diff --git a/tests/wpt/web-platform-tests/offscreen-canvas/drawing-images-to-the-canvas/2d.drawImage.zerocanvas.html b/tests/wpt/web-platform-tests/offscreen-canvas/drawing-images-to-the-canvas/2d.drawImage.zerocanvas.html index 57210ef2512..ef66d5edc54 100644 --- a/tests/wpt/web-platform-tests/offscreen-canvas/drawing-images-to-the-canvas/2d.drawImage.zerocanvas.html +++ b/tests/wpt/web-platform-tests/offscreen-canvas/drawing-images-to-the-canvas/2d.drawImage.zerocanvas.html @@ -16,17 +16,16 @@ t.step(function() { var offscreenCanvas = new OffscreenCanvas(100, 50); var ctx = offscreenCanvas.getContext('2d'); -ctx.fillStyle = '#0f0'; -ctx.fillRect(0, 0, 100, 50); var offscreenCanvas2 = new OffscreenCanvas(0, 10); -ctx.drawImage(offscreenCanvas2, 0, 0); +assert_throws("INVALID_STATE_ERR", function() { ctx.drawImage(offscreenCanvas2, 0, 0); }); + offscreenCanvas2.width = 10; offscreenCanvas2.height = 0; -ctx.drawImage(offscreenCanvas2, 0, 0); +assert_throws("INVALID_STATE_ERR", function() { ctx.drawImage(offscreenCanvas2, 0, 0); }); + offscreenCanvas2.width = 0; offscreenCanvas2.height = 0; -ctx.drawImage(offscreenCanvas2, 0, 0); -_assertPixelApprox(offscreenCanvas, 50,25, 0,255,0,255, "50,25", "0,255,0,255", 2); +assert_throws("INVALID_STATE_ERR", function() { ctx.drawImage(offscreenCanvas2, 0, 0); }); t.done(); diff --git a/tests/wpt/web-platform-tests/offscreen-canvas/drawing-images-to-the-canvas/2d.drawImage.zerocanvas.worker.js b/tests/wpt/web-platform-tests/offscreen-canvas/drawing-images-to-the-canvas/2d.drawImage.zerocanvas.worker.js index 45dfff628bc..3a17cfe5a39 100644 --- a/tests/wpt/web-platform-tests/offscreen-canvas/drawing-images-to-the-canvas/2d.drawImage.zerocanvas.worker.js +++ b/tests/wpt/web-platform-tests/offscreen-canvas/drawing-images-to-the-canvas/2d.drawImage.zerocanvas.worker.js @@ -12,17 +12,16 @@ t.step(function() { var offscreenCanvas = new OffscreenCanvas(100, 50); var ctx = offscreenCanvas.getContext('2d'); -ctx.fillStyle = '#0f0'; -ctx.fillRect(0, 0, 100, 50); var offscreenCanvas2 = new OffscreenCanvas(0, 10); -ctx.drawImage(offscreenCanvas2, 0, 0); +assert_throws("INVALID_STATE_ERR", function() { ctx.drawImage(offscreenCanvas2, 0, 0); }); + offscreenCanvas2.width = 10; offscreenCanvas2.height = 0; -ctx.drawImage(offscreenCanvas2, 0, 0); +assert_throws("INVALID_STATE_ERR", function() { ctx.drawImage(offscreenCanvas2, 0, 0); }); + offscreenCanvas2.width = 0; offscreenCanvas2.height = 0; -ctx.drawImage(offscreenCanvas2, 0, 0); -_assertPixelApprox(offscreenCanvas, 50,25, 0,255,0,255, "50,25", "0,255,0,255", 2); +assert_throws("INVALID_STATE_ERR", function() { ctx.drawImage(offscreenCanvas2, 0, 0); }); t.done(); diff --git a/tests/wpt/web-platform-tests/offscreen-canvas/tools/tests2d.yaml b/tests/wpt/web-platform-tests/offscreen-canvas/tools/tests2d.yaml index fc3b1587bd1..f542d3c8716 100644 --- a/tests/wpt/web-platform-tests/offscreen-canvas/tools/tests2d.yaml +++ b/tests/wpt/web-platform-tests/offscreen-canvas/tools/tests2d.yaml @@ -4417,17 +4417,16 @@ testing: - 2d.drawImage.zerocanvas code: | - ctx.fillStyle = '#0f0'; - ctx.fillRect(0, 0, 100, 50); var offscreenCanvas2 = new OffscreenCanvas(0, 10); - ctx.drawImage(offscreenCanvas2, 0, 0); + @assert throws INVALID_STATE_ERR ctx.drawImage(offscreenCanvas2, 0, 0); + offscreenCanvas2.width = 10; offscreenCanvas2.height = 0; - ctx.drawImage(offscreenCanvas2, 0, 0); + @assert throws INVALID_STATE_ERR ctx.drawImage(offscreenCanvas2, 0, 0); + offscreenCanvas2.width = 0; offscreenCanvas2.height = 0; - ctx.drawImage(offscreenCanvas2, 0, 0); - @assert pixel 50,25 ==~ 0,255,0,255; + @assert throws INVALID_STATE_ERR ctx.drawImage(offscreenCanvas2, 0, 0); - name: 2d.drawImage.wrongtype desc: Incorrect image types in drawImage do not match any defined overloads, so WebIDL throws a TypeError diff --git a/tests/wpt/web-platform-tests/service-workers/service-worker/http-to-https-redirect-and-register.https.html b/tests/wpt/web-platform-tests/service-workers/service-worker/http-to-https-redirect-and-register.https.html index d78b23a49e9..d1c6678faa9 100644 --- a/tests/wpt/web-platform-tests/service-workers/service-worker/http-to-https-redirect-and-register.https.html +++ b/tests/wpt/web-platform-tests/service-workers/service-worker/http-to-https-redirect-and-register.https.html @@ -8,11 +8,13 @@ +