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 dd4ffcf4345..76b398963ae 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,5 @@ [url-in-tags-revoke.window.html] + expected: TIMEOUT [Fetching a blob URL immediately before revoking it works in an iframe.] expected: FAIL @@ -14,3 +15,6 @@ [Opening a blob URL in a new window by clicking an tag works immediately before revoking the URL.] expected: FAIL + [Fetching a blob URL immediately before revoking it works in + + + - + + + + +
+
+ + diff --git a/tests/wpt/web-platform-tests/css/css-backgrounds/reference/background-image-large-with-auto-ref.html b/tests/wpt/web-platform-tests/css/css-backgrounds/reference/background-image-large-with-auto-ref.html new file mode 100644 index 00000000000..7bad169e3aa --- /dev/null +++ b/tests/wpt/web-platform-tests/css/css-backgrounds/reference/background-image-large-with-auto-ref.html @@ -0,0 +1,31 @@ + + + + CSS Background Test Reference + + + + + +
+
+ + diff --git a/tests/wpt/web-platform-tests/css/css-backgrounds/support/green-1000x10.png b/tests/wpt/web-platform-tests/css/css-backgrounds/support/green-1000x10.png new file mode 100644 index 00000000000..8ce354cfb75 Binary files /dev/null and b/tests/wpt/web-platform-tests/css/css-backgrounds/support/green-1000x10.png differ diff --git a/tests/wpt/web-platform-tests/css/css-backgrounds/support/green-10x1000.png b/tests/wpt/web-platform-tests/css/css-backgrounds/support/green-10x1000.png new file mode 100644 index 00000000000..c7fd6eee5c2 Binary files /dev/null and b/tests/wpt/web-platform-tests/css/css-backgrounds/support/green-10x1000.png differ diff --git a/tests/wpt/web-platform-tests/css/css-fonts/variations/at-font-face-descriptors.html b/tests/wpt/web-platform-tests/css/css-fonts/variations/at-font-face-descriptors.html index 942686c4a1f..cd1c22b01ce 100644 --- a/tests/wpt/web-platform-tests/css/css-fonts/variations/at-font-face-descriptors.html +++ b/tests/wpt/web-platform-tests/css/css-fonts/variations/at-font-face-descriptors.html @@ -147,6 +147,8 @@ { value: "oblique 20deg", isValid: true, expectedValue: "oblique", description: "'oblique' followed by default 20deg angle" }, { value: "oblique 90deg", isValid: true, description: "'oblique' followed by maxumum 90 degree angle" }, { value: "oblique -90deg", isValid: true, description: "'oblique' followed by minimum -90 degree angle" }, + { value: "oblique calc(91deg)", isValid: true, expectedValue: "oblique 90deg", description: "'oblique' followed by calc with out of range value (should be clamped)" }, + { value: "oblique calc(-91deg)", isValid: true, expectedValue: "oblique -90deg", description: "'oblique' followed by calc with out of range value (should be clamped)" }, { value: "oblique 0rad", isValid: true, expectedValue: "oblique 0deg", description: "'oblique' followed by angle in radians" }, { value: "oblique 20", isValid: false, description: "'oblique' followed by unit-less number" }, { value: "oblique 20px", isValid: false, description: "'oblique' followed by non-angle" }, diff --git a/tests/wpt/web-platform-tests/css/css-fonts/variations/font-style-parsing.html b/tests/wpt/web-platform-tests/css/css-fonts/variations/font-style-parsing.html index 0973d6340cb..cb5e42eab4f 100644 --- a/tests/wpt/web-platform-tests/css/css-fonts/variations/font-style-parsing.html +++ b/tests/wpt/web-platform-tests/css/css-fonts/variations/font-style-parsing.html @@ -7,43 +7,54 @@ - +
- + \ No newline at end of file diff --git a/tests/wpt/web-platform-tests/css/css-multicol/multicol-span-all-007-ref.html b/tests/wpt/web-platform-tests/css/css-multicol/multicol-span-all-007-ref.html new file mode 100644 index 00000000000..efb58d83b37 --- /dev/null +++ b/tests/wpt/web-platform-tests/css/css-multicol/multicol-span-all-007-ref.html @@ -0,0 +1,28 @@ + + + + CSS Multi-column Layout Test Reference: Test column-span:all when the body tag is the multi-column container + + + + + + +
block1
+
+

spanner

+
+
block2
+ + diff --git a/tests/wpt/web-platform-tests/css/css-multicol/multicol-span-all-007.html b/tests/wpt/web-platform-tests/css/css-multicol/multicol-span-all-007.html new file mode 100644 index 00000000000..2464327ff42 --- /dev/null +++ b/tests/wpt/web-platform-tests/css/css-multicol/multicol-span-all-007.html @@ -0,0 +1,31 @@ + + + + CSS Multi-column Layout Test: Test column-span:all when the body tag is the multi-column container + + + + + + + + + +
block1
+
+

spanner

+
+
block2
+ + diff --git a/tests/wpt/web-platform-tests/css/css-multicol/multicol-span-all-dynamic-add-010-ref.html b/tests/wpt/web-platform-tests/css/css-multicol/multicol-span-all-dynamic-add-010-ref.html new file mode 100644 index 00000000000..7f6abe8f39d --- /dev/null +++ b/tests/wpt/web-platform-tests/css/css-multicol/multicol-span-all-dynamic-add-010-ref.html @@ -0,0 +1,27 @@ + + + + CSS Multi-column Layout Test Reference: Append a block containing a spanner kid. The spanner kid should correctly span across all columns. + + + + + + +
+
block1
+

spanner

block2
+
+ + diff --git a/tests/wpt/web-platform-tests/css/css-multicol/multicol-span-all-dynamic-add-010.html b/tests/wpt/web-platform-tests/css/css-multicol/multicol-span-all-dynamic-add-010.html new file mode 100644 index 00000000000..e9e96ced2aa --- /dev/null +++ b/tests/wpt/web-platform-tests/css/css-multicol/multicol-span-all-dynamic-add-010.html @@ -0,0 +1,54 @@ + + + + CSS Multi-column Layout Test: Append a block containing a spanner kid. The spanner kid should correctly span across all columns. + + + + + + + + + + + +
+
block1
+
+ + diff --git a/tests/wpt/web-platform-tests/css/css-overflow/inheritance.html b/tests/wpt/web-platform-tests/css/css-overflow/inheritance.html new file mode 100644 index 00000000000..976406be413 --- /dev/null +++ b/tests/wpt/web-platform-tests/css/css-overflow/inheritance.html @@ -0,0 +1,28 @@ + + + + +Inheritance of CSS Overflow properties + + + + + + + + +
+
+
+ + + diff --git a/tests/wpt/web-platform-tests/css/css-overflow/parsing/block-ellipsis-invalid.html b/tests/wpt/web-platform-tests/css/css-overflow/parsing/block-ellipsis-invalid.html new file mode 100644 index 00000000000..2b9c059a45d --- /dev/null +++ b/tests/wpt/web-platform-tests/css/css-overflow/parsing/block-ellipsis-invalid.html @@ -0,0 +1,22 @@ + + + + +CSS Overflow: parsing block-ellipsis with invalid values + + + + + + + + + + diff --git a/tests/wpt/web-platform-tests/css/css-overflow/parsing/block-ellipsis-valid.html b/tests/wpt/web-platform-tests/css/css-overflow/parsing/block-ellipsis-valid.html new file mode 100644 index 00000000000..06148ef01b2 --- /dev/null +++ b/tests/wpt/web-platform-tests/css/css-overflow/parsing/block-ellipsis-valid.html @@ -0,0 +1,19 @@ + + + + +CSS Overflow: parsing block-ellipsis with valid values + + + + + + + + + + diff --git a/tests/wpt/web-platform-tests/css/css-overflow/parsing/continue-invalid.html b/tests/wpt/web-platform-tests/css/css-overflow/parsing/continue-invalid.html new file mode 100644 index 00000000000..36e164158f3 --- /dev/null +++ b/tests/wpt/web-platform-tests/css/css-overflow/parsing/continue-invalid.html @@ -0,0 +1,19 @@ + + + + +CSS Overflow: parsing continue with invalid values + + + + + + + + + + diff --git a/tests/wpt/web-platform-tests/css/css-overflow/parsing/continue-valid.html b/tests/wpt/web-platform-tests/css/css-overflow/parsing/continue-valid.html new file mode 100644 index 00000000000..97524cf80db --- /dev/null +++ b/tests/wpt/web-platform-tests/css/css-overflow/parsing/continue-valid.html @@ -0,0 +1,18 @@ + + + + +CSS Overflow: parsing continue with valid values + + + + + + + + + + diff --git a/tests/wpt/web-platform-tests/css/css-overflow/parsing/line-clamp-invalid.html b/tests/wpt/web-platform-tests/css/css-overflow/parsing/line-clamp-invalid.html new file mode 100644 index 00000000000..7b64e473586 --- /dev/null +++ b/tests/wpt/web-platform-tests/css/css-overflow/parsing/line-clamp-invalid.html @@ -0,0 +1,27 @@ + + + + +CSS Overflow: parsing line-clamp with invalid values + + + + + + + + + + + diff --git a/tests/wpt/web-platform-tests/css/css-overflow/parsing/line-clamp-valid.html b/tests/wpt/web-platform-tests/css/css-overflow/parsing/line-clamp-valid.html new file mode 100644 index 00000000000..735300c9efe --- /dev/null +++ b/tests/wpt/web-platform-tests/css/css-overflow/parsing/line-clamp-valid.html @@ -0,0 +1,24 @@ + + + + +CSS Overflow: parsing line-clamp with valid values + + + + + + + + + + diff --git a/tests/wpt/web-platform-tests/css/css-overflow/parsing/max-lines-invalid.html b/tests/wpt/web-platform-tests/css/css-overflow/parsing/max-lines-invalid.html new file mode 100644 index 00000000000..85fe77fdb7a --- /dev/null +++ b/tests/wpt/web-platform-tests/css/css-overflow/parsing/max-lines-invalid.html @@ -0,0 +1,25 @@ + + + + +CSS Overflow: parsing max-lines with invalid values + + + + + + + + + + + diff --git a/tests/wpt/web-platform-tests/css/css-overflow/parsing/max-lines-valid.html b/tests/wpt/web-platform-tests/css/css-overflow/parsing/max-lines-valid.html new file mode 100644 index 00000000000..f2fda80c3b3 --- /dev/null +++ b/tests/wpt/web-platform-tests/css/css-overflow/parsing/max-lines-valid.html @@ -0,0 +1,19 @@ + + + + +CSS Overflow: parsing max-lines with valid values + + + + + + + + + + diff --git a/tests/wpt/web-platform-tests/css/css-overflow/parsing/overflow-computed.html b/tests/wpt/web-platform-tests/css/css-overflow/parsing/overflow-computed.html new file mode 100644 index 00000000000..f3aaaa3c67f --- /dev/null +++ b/tests/wpt/web-platform-tests/css/css-overflow/parsing/overflow-computed.html @@ -0,0 +1,52 @@ + + + + +CSS Overflow: getComputedValue().overflow + + + + + + + +
+ + + diff --git a/tests/wpt/web-platform-tests/css/css-overflow/parsing/overflow-invalid.html b/tests/wpt/web-platform-tests/css/css-overflow/parsing/overflow-invalid.html new file mode 100644 index 00000000000..c99fda7f784 --- /dev/null +++ b/tests/wpt/web-platform-tests/css/css-overflow/parsing/overflow-invalid.html @@ -0,0 +1,24 @@ + + + + +CSS Overflow: parsing overflow with invalid values + + + + + + + + + + diff --git a/tests/wpt/web-platform-tests/css/css-overflow/parsing/overflow-valid.html b/tests/wpt/web-platform-tests/css/css-overflow/parsing/overflow-valid.html new file mode 100644 index 00000000000..02ddd938593 --- /dev/null +++ b/tests/wpt/web-platform-tests/css/css-overflow/parsing/overflow-valid.html @@ -0,0 +1,37 @@ + + + + +CSS Overflow: parsing overflow with valid values + + + + + + + + + + diff --git a/tests/wpt/web-platform-tests/css/css-overflow/parsing/text-overflow-computed.html b/tests/wpt/web-platform-tests/css/css-overflow/parsing/text-overflow-computed.html new file mode 100644 index 00000000000..39358d04c6c --- /dev/null +++ b/tests/wpt/web-platform-tests/css/css-overflow/parsing/text-overflow-computed.html @@ -0,0 +1,18 @@ + + + + +CSS Overflow: getComputedValue().textOverflow + + + + + + +
+ + + diff --git a/tests/wpt/web-platform-tests/css/css-overflow/parsing/text-overflow-invalid.html b/tests/wpt/web-platform-tests/css/css-overflow/parsing/text-overflow-invalid.html new file mode 100644 index 00000000000..785632a727a --- /dev/null +++ b/tests/wpt/web-platform-tests/css/css-overflow/parsing/text-overflow-invalid.html @@ -0,0 +1,19 @@ + + + + +CSS Overflow: parsing text-overflow with invalid values + + + + + + + + + + diff --git a/tests/wpt/web-platform-tests/css/css-overflow/parsing/text-overflow-valid.html b/tests/wpt/web-platform-tests/css/css-overflow/parsing/text-overflow-valid.html new file mode 100644 index 00000000000..df77dffd6d8 --- /dev/null +++ b/tests/wpt/web-platform-tests/css/css-overflow/parsing/text-overflow-valid.html @@ -0,0 +1,18 @@ + + + + +CSS Overflow: parsing text-overflow with valid values + + + + + + + + + + diff --git a/tests/wpt/web-platform-tests/css/css-scroll-anchoring/opt-out-dynamic-scroller.html b/tests/wpt/web-platform-tests/css/css-scroll-anchoring/opt-out-dynamic-scroller.html new file mode 100644 index 00000000000..6ccbc4f2fd6 --- /dev/null +++ b/tests/wpt/web-platform-tests/css/css-scroll-anchoring/opt-out-dynamic-scroller.html @@ -0,0 +1,49 @@ + + + + + + +
+
+
content
+
+ diff --git a/tests/wpt/web-platform-tests/css/css-scroll-anchoring/opt-out-dynamic.html b/tests/wpt/web-platform-tests/css/css-scroll-anchoring/opt-out-dynamic.html new file mode 100644 index 00000000000..ec548dc3d65 --- /dev/null +++ b/tests/wpt/web-platform-tests/css/css-scroll-anchoring/opt-out-dynamic.html @@ -0,0 +1,51 @@ + + + + + + +
+
+
content
+
+ diff --git a/tests/wpt/web-platform-tests/css/css-shadow-parts/interaction-with-placeholder-ref.html b/tests/wpt/web-platform-tests/css/css-shadow-parts/interaction-with-placeholder-ref.html new file mode 100644 index 00000000000..11943c229a0 --- /dev/null +++ b/tests/wpt/web-platform-tests/css/css-shadow-parts/interaction-with-placeholder-ref.html @@ -0,0 +1,18 @@ + + + + CSS Shadow Parts - Interaction with placeholder + + + + + + +
+ The following text should be green: + +
+ + diff --git a/tests/wpt/web-platform-tests/css/css-shadow-parts/interaction-with-placeholder.html b/tests/wpt/web-platform-tests/css/css-shadow-parts/interaction-with-placeholder.html new file mode 100644 index 00000000000..a064789f061 --- /dev/null +++ b/tests/wpt/web-platform-tests/css/css-shadow-parts/interaction-with-placeholder.html @@ -0,0 +1,29 @@ + + + + CSS Shadow Parts - Interaction with placeholder + + + + + + + + + + + + + + diff --git a/tests/wpt/web-platform-tests/css/cssom/CSSStyleSheet-constructable.html b/tests/wpt/web-platform-tests/css/cssom/CSSStyleSheet-constructable.html index 7df1820c043..e3083d283f3 100644 --- a/tests/wpt/web-platform-tests/css/cssom/CSSStyleSheet-constructable.html +++ b/tests/wpt/web-platform-tests/css/cssom/CSSStyleSheet-constructable.html @@ -501,15 +501,18 @@ test(() => { span.shadowRoot.adoptedStyleSheets = [sheet]; assert_equals(getComputedStyle(shadowDiv).color, "rgb(255, 0, 0)"); + document.adoptNode(span); + assert_equals(span.shadowRoot.adoptedStyleSheets.length, 1); + assert_equals(span.shadowRoot.adoptedStyleSheets[0], sheet); + const iframe = document.createElement("iframe"); document.body.appendChild(iframe); iframe.contentDocument.adoptNode(span); iframe.contentDocument.body.appendChild(span); assert_not_equals(span.shadowRoot, null); - assert_equals(span.shadowRoot.adoptedStyleSheets.length, 1); - assert_equals(span.shadowRoot.adoptedStyleSheets[0], sheet); + assert_equals(span.shadowRoot.adoptedStyleSheets.length, 0); assert_equals(getComputedStyle(shadowDiv).color, "rgb(0, 0, 0)"); -}, 'Adopting a shadow host will move adoptedStyleSheets but it is not applied'); +}, 'Adopting a shadow host will empty adoptedStyleSheets if adopting to a different document'); diff --git a/tests/wpt/web-platform-tests/css/vendor-imports/mozilla/mozilla-central-reftests/values3/calc-width-table-auto-1-ref.html b/tests/wpt/web-platform-tests/css/vendor-imports/mozilla/mozilla-central-reftests/values3/calc-width-table-auto-1-ref.html index 62ebd566591..d161ecc6f31 100644 --- a/tests/wpt/web-platform-tests/css/vendor-imports/mozilla/mozilla-central-reftests/values3/calc-width-table-auto-1-ref.html +++ b/tests/wpt/web-platform-tests/css/vendor-imports/mozilla/mozilla-central-reftests/values3/calc-width-table-auto-1-ref.html @@ -14,6 +14,11 @@ x y + + + + +
xy
diff --git a/tests/wpt/web-platform-tests/css/vendor-imports/mozilla/mozilla-central-reftests/values3/calc-width-table-auto-1.html b/tests/wpt/web-platform-tests/css/vendor-imports/mozilla/mozilla-central-reftests/values3/calc-width-table-auto-1.html index b37c94ec5a3..c3d147c0b1c 100644 --- a/tests/wpt/web-platform-tests/css/vendor-imports/mozilla/mozilla-central-reftests/values3/calc-width-table-auto-1.html +++ b/tests/wpt/web-platform-tests/css/vendor-imports/mozilla/mozilla-central-reftests/values3/calc-width-table-auto-1.html @@ -11,6 +11,11 @@
xx y
+ + + + +
xy
diff --git a/tests/wpt/web-platform-tests/css/vendor-imports/mozilla/mozilla-central-reftests/values3/calc-width-table-fixed-1-ref.html b/tests/wpt/web-platform-tests/css/vendor-imports/mozilla/mozilla-central-reftests/values3/calc-width-table-fixed-1-ref.html index 1aad9eb16bd..9ae2d347c6b 100644 --- a/tests/wpt/web-platform-tests/css/vendor-imports/mozilla/mozilla-central-reftests/values3/calc-width-table-fixed-1-ref.html +++ b/tests/wpt/web-platform-tests/css/vendor-imports/mozilla/mozilla-central-reftests/values3/calc-width-table-fixed-1-ref.html @@ -19,6 +19,11 @@ table { table-layout: fixed; width: 500px; border-spacing: 0 }
xx y
+ + + + +
xy
diff --git a/tests/wpt/web-platform-tests/css/vendor-imports/mozilla/mozilla-central-reftests/values3/calc-width-table-fixed-1.html b/tests/wpt/web-platform-tests/css/vendor-imports/mozilla/mozilla-central-reftests/values3/calc-width-table-fixed-1.html index 05a902217f0..808a61274d3 100644 --- a/tests/wpt/web-platform-tests/css/vendor-imports/mozilla/mozilla-central-reftests/values3/calc-width-table-fixed-1.html +++ b/tests/wpt/web-platform-tests/css/vendor-imports/mozilla/mozilla-central-reftests/values3/calc-width-table-fixed-1.html @@ -16,6 +16,11 @@ table { table-layout: fixed; width: 500px; border-spacing: 0 }
xx y
+ + + + +
xy
diff --git a/tests/wpt/web-platform-tests/docs/_writing-tests/assumptions.md b/tests/wpt/web-platform-tests/docs/_writing-tests/assumptions.md index d1ab75b0f1d..28a990a3f71 100644 --- a/tests/wpt/web-platform-tests/docs/_writing-tests/assumptions.md +++ b/tests/wpt/web-platform-tests/docs/_writing-tests/assumptions.md @@ -8,7 +8,7 @@ The tests make a number of assumptions of the user agent, and new tests can freely rely on these assumptions being true: * The device is a full-color device. - * The device has a viewport width of at least 800px. + * The device has a viewport width of at least 600px. * The UA imposes no minimum font size. * The `medium` `font-size` computes to 16px. * The canvas background is `white`. diff --git a/tests/wpt/web-platform-tests/docs/_writing-tests/general-guidelines.md b/tests/wpt/web-platform-tests/docs/_writing-tests/general-guidelines.md index a07d55b9e1b..ff099ddf0a5 100644 --- a/tests/wpt/web-platform-tests/docs/_writing-tests/general-guidelines.md +++ b/tests/wpt/web-platform-tests/docs/_writing-tests/general-guidelines.md @@ -90,7 +90,7 @@ headers. ### Be Short Tests should be as short as possible. For reftests in particular -scrollbars at 800×600px window size must be avoided unless scrolling +scrollbars at 600×600px window size must be avoided unless scrolling behavior is specifically being tested. For all tests extraneous elements on the page should be avoided so it is clear what is part of the test (for a typical testharness test, the only content on the page diff --git a/tests/wpt/web-platform-tests/html/semantics/document-metadata/the-link-element/link-error-fired-before-scripting-unblocked.html b/tests/wpt/web-platform-tests/html/semantics/document-metadata/the-link-element/link-error-fired-before-scripting-unblocked.html new file mode 100644 index 00000000000..188e4ba5ab6 --- /dev/null +++ b/tests/wpt/web-platform-tests/html/semantics/document-metadata/the-link-element/link-error-fired-before-scripting-unblocked.html @@ -0,0 +1,25 @@ + + + + + + + + + + diff --git a/tests/wpt/web-platform-tests/html/semantics/document-metadata/the-link-element/link-load-event.html b/tests/wpt/web-platform-tests/html/semantics/document-metadata/the-link-element/link-load-event.html index 541291350a7..e95fff7988a 100644 --- a/tests/wpt/web-platform-tests/html/semantics/document-metadata/the-link-element/link-load-event.html +++ b/tests/wpt/web-platform-tests/html/semantics/document-metadata/the-link-element/link-load-event.html @@ -11,7 +11,7 @@ window.addEventListener('load', t.step_func_done(function() { })); + onload="t.step(function() { saw_link_onload = true; })" + onerror="t.unreached_func('Sheet should load OK')"> diff --git a/tests/wpt/web-platform-tests/html/semantics/document-metadata/the-link-element/link-load-fired-before-scripting-unblocked.html b/tests/wpt/web-platform-tests/html/semantics/document-metadata/the-link-element/link-load-fired-before-scripting-unblocked.html new file mode 100644 index 00000000000..a809cc44b19 --- /dev/null +++ b/tests/wpt/web-platform-tests/html/semantics/document-metadata/the-link-element/link-load-fired-before-scripting-unblocked.html @@ -0,0 +1,24 @@ + + + + + + + + + + diff --git a/tests/wpt/web-platform-tests/html/semantics/document-metadata/the-link-element/resources/neutral.css b/tests/wpt/web-platform-tests/html/semantics/document-metadata/the-link-element/resources/neutral.css new file mode 100644 index 00000000000..796c55c42f6 --- /dev/null +++ b/tests/wpt/web-platform-tests/html/semantics/document-metadata/the-link-element/resources/neutral.css @@ -0,0 +1,3 @@ +body { + background-color: gray; +} diff --git a/tests/wpt/web-platform-tests/html/semantics/document-metadata/the-link-element/stylesheet-not-removed-until-next-stylesheet-loads.html b/tests/wpt/web-platform-tests/html/semantics/document-metadata/the-link-element/stylesheet-not-removed-until-next-stylesheet-loads.html new file mode 100644 index 00000000000..27b443cee33 --- /dev/null +++ b/tests/wpt/web-platform-tests/html/semantics/document-metadata/the-link-element/stylesheet-not-removed-until-next-stylesheet-loads.html @@ -0,0 +1,22 @@ + + + + + + + + + diff --git a/tests/wpt/web-platform-tests/infrastructure/reftest/size-ref.html b/tests/wpt/web-platform-tests/infrastructure/reftest/size-ref.html new file mode 100644 index 00000000000..b2669612b79 --- /dev/null +++ b/tests/wpt/web-platform-tests/infrastructure/reftest/size-ref.html @@ -0,0 +1,2 @@ + +

innerWidth x innerHeight: 600x600

diff --git a/tests/wpt/web-platform-tests/infrastructure/reftest/size.html b/tests/wpt/web-platform-tests/infrastructure/reftest/size.html new file mode 100644 index 00000000000..a60befbf038 --- /dev/null +++ b/tests/wpt/web-platform-tests/infrastructure/reftest/size.html @@ -0,0 +1,6 @@ + + +

innerWidth x innerHeight:

+ diff --git a/tests/wpt/web-platform-tests/interfaces/SVG.idl b/tests/wpt/web-platform-tests/interfaces/SVG.idl index 9588ad0d608..78b9d64743e 100644 --- a/tests/wpt/web-platform-tests/interfaces/SVG.idl +++ b/tests/wpt/web-platform-tests/interfaces/SVG.idl @@ -262,7 +262,7 @@ interface SVGSVGElement : SVGGraphicsElement { DOMMatrix createSVGMatrix(); DOMRect createSVGRect(); SVGTransform createSVGTransform(); - SVGTransform createSVGTransformFromMatrix(DOMMatrixReadOnly matrix); + SVGTransform createSVGTransformFromMatrix(optional DOMMatrix2DInit matrix); Element getElementById(DOMString elementId); @@ -367,7 +367,7 @@ interface SVGTransform { [SameObject] readonly attribute DOMMatrix matrix; readonly attribute float angle; - void setMatrix(DOMMatrixReadOnly matrix); + void setMatrix(optional DOMMatrix2DInit matrix); void setTranslate(float tx, float ty); void setScale(float sx, float sy); void setRotate(float angle, float cx, float cy); @@ -391,7 +391,7 @@ interface SVGTransformList { setter void (unsigned long index, SVGTransform newItem); // Additional methods not common to other list interfaces. - SVGTransform createSVGTransformFromMatrix(DOMMatrixReadOnly matrix); + SVGTransform createSVGTransformFromMatrix(optional DOMMatrix2DInit matrix); SVGTransform? consolidate(); }; diff --git a/tests/wpt/web-platform-tests/payment-request/payment-response/retry-method-manual.https.html b/tests/wpt/web-platform-tests/payment-request/payment-response/retry-method-manual.https.html index 25d82a0649d..0af894500da 100644 --- a/tests/wpt/web-platform-tests/payment-request/payment-response/retry-method-manual.https.html +++ b/tests/wpt/web-platform-tests/payment-request/payment-response/retry-method-manual.https.html @@ -164,16 +164,18 @@ function userIsShownErrorsFields(button) { function abortTheUpdate(button) { button.disabled = true; promise_test(async t => { - const { response, request } = await getPaymentRequestResponse({ requestShipping: true }); - // causes "abort the update" to run - const shippingChangedPromise = new Promise(resolve => { - request.onshippingoptionchange = () => { - event.updateWith({ total: { amount: { currency: "USD", value: "INVALID" } }}); + const { response, request } = await getPaymentRequestResponse({ + requestShipping: true, + }); + const shipOptionChangePromise = new Promise(resolve => { + request.onshippingoptionchange = event => { + // causes "abort the update" to run + event.updateWith({ total: "error!" }); resolve(); }; }); const retryPromise = response.retry(); - await shippingChangedPromise; + await shipOptionChangePromise; await promise_rejects( t, new TypeError(), @@ -265,7 +267,9 @@ function callingRetryReturnsUniquePromise(button){
  • - When shown the payment sheet, hit pay once. Then retry once. + When shown the payment sheet, hit pay once. + Then, change the shipping option. + Select to pay again.

  • x