aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/wpt/metadata/FileAPI/url/url-with-fetch.any.js.ini3
-rw-r--r--tests/wpt/metadata/MANIFEST.json100
-rw-r--r--tests/wpt/metadata/css/css-transforms/parsing/scale-parsing-valid.html.ini7
-rw-r--r--tests/wpt/metadata/css/css-transforms/parsing/translate-parsing-valid.html.ini9
-rw-r--r--tests/wpt/metadata/css/cssom-view/matchMedia-display-none-iframe.html.ini2
-rw-r--r--tests/wpt/metadata/css/cssom-view/scroll-behavior-smooth.html.ini3
-rw-r--r--tests/wpt/metadata/dom/nodes/Document-contentType/contentType/contenttype_txt.html.ini2
-rw-r--r--tests/wpt/metadata/encoding/single-byte-decoder.html.ini1
-rw-r--r--tests/wpt/metadata/fetch/content-type/response.window.js.ini12
-rw-r--r--tests/wpt/metadata/fetch/content-type/script.window.js.ini3
-rw-r--r--tests/wpt/metadata/fetch/nosniff/parsing-nosniff.window.js.ini6
-rw-r--r--tests/wpt/metadata/html/browsers/history/the-history-interface/traverse_the_history_4.html.ini4
-rw-r--r--tests/wpt/metadata/html/browsers/history/the-history-interface/traverse_the_history_5.html.ini (renamed from tests/wpt/metadata/html/browsers/history/the-history-interface/traverse_the_history_2.html.ini)2
-rw-r--r--tests/wpt/metadata/html/browsers/origin/relaxing-the-same-origin-restriction/document_domain_access_details.sub.html.ini4
-rw-r--r--tests/wpt/metadata/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/creating_browsing_context_test_01.html.ini3
-rw-r--r--tests/wpt/metadata/html/browsers/windows/embedded-opener-remove-frame.html.ini2
-rw-r--r--tests/wpt/metadata/html/interaction/focus/the-autofocus-attribute/supported-elements.html.ini12
-rw-r--r--tests/wpt/metadata/html/semantics/embedded-content/the-iframe-element/iframe_sandbox_popups_escaping-1.html.ini2
-rw-r--r--tests/wpt/metadata/html/semantics/forms/form-submission-0/form-double-submit-3.html.ini2
-rw-r--r--tests/wpt/metadata/html/semantics/forms/form-submission-0/form-double-submit.html.ini2
-rw-r--r--tests/wpt/metadata/html/semantics/forms/the-button-element/button-submit-children.html.ini5
-rw-r--r--tests/wpt/metadata/html/semantics/scripting-1/the-script-element/script-onerror-insertion-point-2.html.ini2
-rw-r--r--tests/wpt/metadata/html/syntax/parsing/DOMContentLoaded-defer.html.ini4
-rw-r--r--tests/wpt/metadata/resource-timing/nested-context-navigations-iframe.html.ini2
-rw-r--r--tests/wpt/metadata/webaudio/the-audio-api/the-analysernode-interface/realtimeanalyser-fft-scaling.html.ini1
-rw-r--r--tests/wpt/metadata/webmessaging/with-ports/017.html.ini (renamed from tests/wpt/metadata/webmessaging/without-ports/017.html.ini)0
-rw-r--r--tests/wpt/metadata/webmessaging/without-ports/018.html.ini5
-rw-r--r--tests/wpt/metadata/workers/WorkerGlobalScope-close.html.ini4
-rw-r--r--tests/wpt/web-platform-tests/css/css-flexbox/select-element-zero-height-001-ref.html14
-rw-r--r--tests/wpt/web-platform-tests/css/css-flexbox/select-element-zero-height-001.html19
-rw-r--r--tests/wpt/web-platform-tests/css/css-flexbox/select-element-zero-height-002-ref.html18
-rw-r--r--tests/wpt/web-platform-tests/css/css-flexbox/select-element-zero-height-002.html22
-rw-r--r--tests/wpt/web-platform-tests/css/css-transforms/animation/scale-interpolation.html34
-rw-r--r--tests/wpt/web-platform-tests/css/css-transforms/animation/translate-interpolation.html8
-rw-r--r--tests/wpt/web-platform-tests/css/css-transforms/parsing/scale-parsing-valid.html4
-rw-r--r--tests/wpt/web-platform-tests/css/css-transforms/parsing/translate-parsing-valid.html5
-rw-r--r--tests/wpt/web-platform-tests/css/vendor-imports/mozilla/mozilla-central-reftests/will-change/reftest.list2
-rw-r--r--tests/wpt/web-platform-tests/css/vendor-imports/mozilla/mozilla-central-reftests/will-change/will-change-fixpos-cb-offset-path-1.html24
-rw-r--r--tests/wpt/web-platform-tests/css/vendor-imports/mozilla/mozilla-central-reftests/will-change/will-change-stacking-context-offset-path-1.html20
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/embedded-content/media-elements/track/track-element/cors/support/cors-tester.py6
-rw-r--r--tests/wpt/web-platform-tests/payment-method-basic-card/billing-address-is-null-manual.https.html150
41 files changed, 448 insertions, 82 deletions
diff --git a/tests/wpt/metadata/FileAPI/url/url-with-fetch.any.js.ini b/tests/wpt/metadata/FileAPI/url/url-with-fetch.any.js.ini
index 3b874fc1748..947e223fb28 100644
--- a/tests/wpt/metadata/FileAPI/url/url-with-fetch.any.js.ini
+++ b/tests/wpt/metadata/FileAPI/url/url-with-fetch.any.js.ini
@@ -34,6 +34,3 @@
[Revoke blob URL after creating Request, will fetch]
expected: FAIL
- [Revoke blob URL after calling fetch, fetch should succeed]
- expected: FAIL
-
diff --git a/tests/wpt/metadata/MANIFEST.json b/tests/wpt/metadata/MANIFEST.json
index 100907ddf92..39e2d500e7d 100644
--- a/tests/wpt/metadata/MANIFEST.json
+++ b/tests/wpt/metadata/MANIFEST.json
@@ -14281,6 +14281,12 @@
{}
]
],
+ "payment-method-basic-card/billing-address-is-null-manual.https.html": [
+ [
+ "payment-method-basic-card/billing-address-is-null-manual.https.html",
+ {}
+ ]
+ ],
"payment-method-basic-card/empty-data-manual.https.html": [
[
"payment-method-basic-card/empty-data-manual.https.html",
@@ -122235,6 +122241,30 @@
{}
]
],
+ "css/css-flexbox/select-element-zero-height-001.html": [
+ [
+ "css/css-flexbox/select-element-zero-height-001.html",
+ [
+ [
+ "/css/css-flexbox/select-element-zero-height-001-ref.html",
+ "=="
+ ]
+ ],
+ {}
+ ]
+ ],
+ "css/css-flexbox/select-element-zero-height-002.html": [
+ [
+ "css/css-flexbox/select-element-zero-height-002.html",
+ [
+ [
+ "/css/css-flexbox/select-element-zero-height-002-ref.html",
+ "=="
+ ]
+ ],
+ {}
+ ]
+ ],
"css/css-flexbox/table-as-item-auto-min-width.html": [
[
"css/css-flexbox/table-as-item-auto-min-width.html",
@@ -199775,6 +199805,18 @@
{}
]
],
+ "css/vendor-imports/mozilla/mozilla-central-reftests/will-change/will-change-fixpos-cb-offset-path-1.html": [
+ [
+ "css/vendor-imports/mozilla/mozilla-central-reftests/will-change/will-change-fixpos-cb-offset-path-1.html",
+ [
+ [
+ "/css/vendor-imports/mozilla/mozilla-central-reftests/will-change/green-square-100-by-100-offset-ref.html",
+ "=="
+ ]
+ ],
+ {}
+ ]
+ ],
"css/vendor-imports/mozilla/mozilla-central-reftests/will-change/will-change-fixpos-cb-perspective-1.html": [
[
"css/vendor-imports/mozilla/mozilla-central-reftests/will-change/will-change-fixpos-cb-perspective-1.html",
@@ -199907,6 +199949,18 @@
{}
]
],
+ "css/vendor-imports/mozilla/mozilla-central-reftests/will-change/will-change-stacking-context-offset-path-1.html": [
+ [
+ "css/vendor-imports/mozilla/mozilla-central-reftests/will-change/will-change-stacking-context-offset-path-1.html",
+ [
+ [
+ "/css/vendor-imports/mozilla/mozilla-central-reftests/will-change/green-square-100-by-100-ref.html",
+ "=="
+ ]
+ ],
+ {}
+ ]
+ ],
"css/vendor-imports/mozilla/mozilla-central-reftests/will-change/will-change-stacking-context-opacity-1.html": [
[
"css/vendor-imports/mozilla/mozilla-central-reftests/will-change/will-change-stacking-context-opacity-1.html",
@@ -246726,6 +246780,12 @@
"css/css-flexbox/scrollbars-ref.html": [
[]
],
+ "css/css-flexbox/select-element-zero-height-001-ref.html": [
+ []
+ ],
+ "css/css-flexbox/select-element-zero-height-002-ref.html": [
+ []
+ ],
"css/css-flexbox/support/100x100-green.png": [
[]
],
@@ -567017,6 +567077,22 @@
"0eca05bfc63f9522e6d624c35469ba69e7410968",
"reftest"
],
+ "css/css-flexbox/select-element-zero-height-001-ref.html": [
+ "37a102e0f605b575384de0a99601e77fd0f8a462",
+ "support"
+ ],
+ "css/css-flexbox/select-element-zero-height-001.html": [
+ "e39461ef129e99baae52fe93f01773ab27d8e4ac",
+ "reftest"
+ ],
+ "css/css-flexbox/select-element-zero-height-002-ref.html": [
+ "93222f70617378a33799224ede30a330f9933e7d",
+ "support"
+ ],
+ "css/css-flexbox/select-element-zero-height-002.html": [
+ "6b6b92896bcca7451703baf1e432bf3d28430b34",
+ "reftest"
+ ],
"css/css-flexbox/support/100x100-green.png": [
"25b76c3c6f216793a36b1f29287dafd993898c67",
"support"
@@ -600814,7 +600890,7 @@
"testharness"
],
"css/css-transforms/animation/scale-interpolation.html": [
- "e71b134ce5f94143127ba830e99d37c20a433313",
+ "29999d49ccf85b0e5d55cfa263754d90c8300675",
"testharness"
],
"css/css-transforms/animation/transform-interpolation-001.html": [
@@ -600846,7 +600922,7 @@
"testharness"
],
"css/css-transforms/animation/translate-interpolation.html": [
- "3d40863b3b4332799443433f1a470de0100956ce",
+ "1764df3e967088312af38d03e466adfaf2fa91fe",
"testharness"
],
"css/css-transforms/backface-visibility-hidden-001.html": [
@@ -601786,7 +601862,7 @@
"testharness"
],
"css/css-transforms/parsing/scale-parsing-valid.html": [
- "ac23a17b0133c271cb88d9579ebf33b93f4f502d",
+ "bbd443a717ab3c4acf1c7be52df4d92b9b8a9d03",
"testharness"
],
"css/css-transforms/parsing/transform-box-computed.html": [
@@ -601826,7 +601902,7 @@
"testharness"
],
"css/css-transforms/parsing/translate-parsing-valid.html": [
- "17699ccc1c2d6570a0f20c3c9442cfaf681369d2",
+ "f15fdf0c4fb4ad004db749f622747a0035dcc909",
"testharness"
],
"css/css-transforms/patternTransform/reference/svg-patternTransform-combination-ref.html": [
@@ -632674,7 +632750,7 @@
"support"
],
"css/vendor-imports/mozilla/mozilla-central-reftests/will-change/reftest.list": [
- "d3031a49b89da4fe0913e52d86f45413d3083c84",
+ "231532eac32c3fb038b04375b670a02a9d59288d",
"support"
],
"css/vendor-imports/mozilla/mozilla-central-reftests/will-change/will-change-fixpos-cb-contain-1.html": [
@@ -632689,6 +632765,10 @@
"892e6d4541ac2e00a365ab22ef6e246a9b8ccd11",
"reftest"
],
+ "css/vendor-imports/mozilla/mozilla-central-reftests/will-change/will-change-fixpos-cb-offset-path-1.html": [
+ "0fe1ec1da798479cdf0c43d3d7f8ee506b796e47",
+ "reftest"
+ ],
"css/vendor-imports/mozilla/mozilla-central-reftests/will-change/will-change-fixpos-cb-perspective-1.html": [
"4a394f9958fec7021c5eab39dcacbe31902fe6e5",
"reftest"
@@ -632733,6 +632813,10 @@
"ae13ac6b668889785ba51e778ee64ab15df24379",
"reftest"
],
+ "css/vendor-imports/mozilla/mozilla-central-reftests/will-change/will-change-stacking-context-offset-path-1.html": [
+ "07277b66d92f74e0d8df1d934ff213efd78c9ab4",
+ "reftest"
+ ],
"css/vendor-imports/mozilla/mozilla-central-reftests/will-change/will-change-stacking-context-opacity-1.html": [
"2bff6676a7171e9132f7d4168d5ee2ad7c3b0f62",
"reftest"
@@ -654238,7 +654322,7 @@
"support"
],
"html/semantics/embedded-content/media-elements/track/track-element/cors/support/cors-tester.py": [
- "1c27a0d14bde05c1fed0a731650cae8e929d96a2",
+ "7ec7b160115b0eee7ab711bc37d61a9750b0cd5d",
"support"
],
"html/semantics/embedded-content/media-elements/track/track-element/cors/support/remove-cookie.html": [
@@ -678245,6 +678329,10 @@
"8b9fe78e2e4f50f11364246edc6c53941b0ad395",
"testharness"
],
+ "payment-method-basic-card/billing-address-is-null-manual.https.html": [
+ "3250e0a2c550e89b4744a34341e68cd2ae063cea",
+ "manual"
+ ],
"payment-method-basic-card/empty-data-manual.https.html": [
"ba881ee2366c49aa15799767892c5ed847e41ac3",
"manual"
diff --git a/tests/wpt/metadata/css/css-transforms/parsing/scale-parsing-valid.html.ini b/tests/wpt/metadata/css/css-transforms/parsing/scale-parsing-valid.html.ini
new file mode 100644
index 00000000000..14663c5a719
--- /dev/null
+++ b/tests/wpt/metadata/css/css-transforms/parsing/scale-parsing-valid.html.ini
@@ -0,0 +1,7 @@
+[scale-parsing-valid.html]
+ [e.style['scale'\] = "100 200 1" should set the property value]
+ expected: FAIL
+
+ [e.style['scale'\] = "100 100 1" should set the property value]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/css/css-transforms/parsing/translate-parsing-valid.html.ini b/tests/wpt/metadata/css/css-transforms/parsing/translate-parsing-valid.html.ini
index 2e5706ee01d..9bfdefbcc40 100644
--- a/tests/wpt/metadata/css/css-transforms/parsing/translate-parsing-valid.html.ini
+++ b/tests/wpt/metadata/css/css-transforms/parsing/translate-parsing-valid.html.ini
@@ -8,3 +8,12 @@
[e.style['translate'\] = "100px calc(10px - 10%)" should set the property value]
expected: FAIL
+ [e.style['translate'\] = "100px 200px 0px" should set the property value]
+ expected: FAIL
+
+ [e.style['translate'\] = "100px 0px 0px" should set the property value]
+ expected: FAIL
+
+ [e.style['translate'\] = "1px 2px 0" should set the property value]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/css/cssom-view/matchMedia-display-none-iframe.html.ini b/tests/wpt/metadata/css/cssom-view/matchMedia-display-none-iframe.html.ini
new file mode 100644
index 00000000000..e6e1f29e274
--- /dev/null
+++ b/tests/wpt/metadata/css/cssom-view/matchMedia-display-none-iframe.html.ini
@@ -0,0 +1,2 @@
+[matchMedia-display-none-iframe.html]
+ expected: ERROR
diff --git a/tests/wpt/metadata/css/cssom-view/scroll-behavior-smooth.html.ini b/tests/wpt/metadata/css/cssom-view/scroll-behavior-smooth.html.ini
index e1a609649d6..bcd187f508c 100644
--- a/tests/wpt/metadata/css/cssom-view/scroll-behavior-smooth.html.ini
+++ b/tests/wpt/metadata/css/cssom-view/scroll-behavior-smooth.html.ini
@@ -3,3 +3,6 @@
[scroll-behavior: smooth on DIV element]
expected: FAIL
+ [Instant scrolling while doing history navigation.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/dom/nodes/Document-contentType/contentType/contenttype_txt.html.ini b/tests/wpt/metadata/dom/nodes/Document-contentType/contentType/contenttype_txt.html.ini
deleted file mode 100644
index c3916f8555d..00000000000
--- a/tests/wpt/metadata/dom/nodes/Document-contentType/contentType/contenttype_txt.html.ini
+++ /dev/null
@@ -1,2 +0,0 @@
-[contenttype_txt.html]
- expected: CRASH
diff --git a/tests/wpt/metadata/encoding/single-byte-decoder.html.ini b/tests/wpt/metadata/encoding/single-byte-decoder.html.ini
index 939a36eb9d9..3d135f3bd66 100644
--- a/tests/wpt/metadata/encoding/single-byte-decoder.html.ini
+++ b/tests/wpt/metadata/encoding/single-byte-decoder.html.ini
@@ -2,6 +2,7 @@
type: testharness
[single-byte-decoder.html?document]
+ expected: TIMEOUT
[ISO-8859-4: iso_8859-4:1988 (document.characterSet and document.inputEncoding)]
expected: FAIL
diff --git a/tests/wpt/metadata/fetch/content-type/response.window.js.ini b/tests/wpt/metadata/fetch/content-type/response.window.js.ini
index 21e72d6dadf..24fbbdab5cb 100644
--- a/tests/wpt/metadata/fetch/content-type/response.window.js.ini
+++ b/tests/wpt/metadata/fetch/content-type/response.window.js.ini
@@ -315,18 +315,12 @@
[<iframe>: combined response Content-Type: text/html;" text/plain]
expected: FAIL
- [<iframe>: combined response Content-Type: text/html;charset=gbk text/plain text/html]
+ [<iframe>: separate response Content-Type: text/html */*;charset=gbk]
expected: FAIL
- [<iframe>: separate response Content-Type: text/html;" text/plain]
+ [<iframe>: separate response Content-Type: text/html;x=" text/plain]
expected: FAIL
- [<iframe>: separate response Content-Type: text/html */*]
- expected: FAIL
-
- [<iframe>: separate response Content-Type: text/plain */*]
- expected: FAIL
-
- [<iframe>: combined response Content-Type: text/html */*;charset=gbk]
+ [<iframe>: separate response Content-Type: text/html;" \\" text/plain]
expected: FAIL
diff --git a/tests/wpt/metadata/fetch/content-type/script.window.js.ini b/tests/wpt/metadata/fetch/content-type/script.window.js.ini
index b2ffc8abf78..ab9bcf18e68 100644
--- a/tests/wpt/metadata/fetch/content-type/script.window.js.ini
+++ b/tests/wpt/metadata/fetch/content-type/script.window.js.ini
@@ -59,3 +59,6 @@
[separate text/javascript error]
expected: FAIL
+ [separate text/javascript;charset=windows-1252 text/javascript]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/fetch/nosniff/parsing-nosniff.window.js.ini b/tests/wpt/metadata/fetch/nosniff/parsing-nosniff.window.js.ini
index e90ead91b2e..87c807a49ff 100644
--- a/tests/wpt/metadata/fetch/nosniff/parsing-nosniff.window.js.ini
+++ b/tests/wpt/metadata/fetch/nosniff/parsing-nosniff.window.js.ini
@@ -11,9 +11,3 @@
[X-Content-Type-Options%3A%20nosniff%0C]
expected: FAIL
- [X-Content-Type-Options%3A%20%2Cnosniff]
- expected: FAIL
-
- [Content-Type-Options%3A%20nosniff]
- expected: FAIL
-
diff --git a/tests/wpt/metadata/html/browsers/history/the-history-interface/traverse_the_history_4.html.ini b/tests/wpt/metadata/html/browsers/history/the-history-interface/traverse_the_history_4.html.ini
deleted file mode 100644
index 385376c7321..00000000000
--- a/tests/wpt/metadata/html/browsers/history/the-history-interface/traverse_the_history_4.html.ini
+++ /dev/null
@@ -1,4 +0,0 @@
-[traverse_the_history_4.html]
- [Multiple history traversals, last would be aborted]
- expected: FAIL
-
diff --git a/tests/wpt/metadata/html/browsers/history/the-history-interface/traverse_the_history_2.html.ini b/tests/wpt/metadata/html/browsers/history/the-history-interface/traverse_the_history_5.html.ini
index 75d75b4cda2..dc2e45516de 100644
--- a/tests/wpt/metadata/html/browsers/history/the-history-interface/traverse_the_history_2.html.ini
+++ b/tests/wpt/metadata/html/browsers/history/the-history-interface/traverse_the_history_5.html.ini
@@ -1,4 +1,4 @@
-[traverse_the_history_2.html]
+[traverse_the_history_5.html]
[Multiple history traversals, last would be aborted]
expected: FAIL
diff --git a/tests/wpt/metadata/html/browsers/origin/relaxing-the-same-origin-restriction/document_domain_access_details.sub.html.ini b/tests/wpt/metadata/html/browsers/origin/relaxing-the-same-origin-restriction/document_domain_access_details.sub.html.ini
index 83d36d0a1ab..3a0b9784395 100644
--- a/tests/wpt/metadata/html/browsers/origin/relaxing-the-same-origin-restriction/document_domain_access_details.sub.html.ini
+++ b/tests/wpt/metadata/html/browsers/origin/relaxing-the-same-origin-restriction/document_domain_access_details.sub.html.ini
@@ -22,13 +22,13 @@
expected: NOTRUN
[Access allowed if same-origin and both set document.domain to existing value.]
- expected: TIMEOUT
+ expected: NOTRUN
[Access is not revoked to Document object when we stop being same effective script origin due to document.domain.]
expected: NOTRUN
[Access disallowed if same-origin but only one sets document.domain.]
- expected: FAIL
+ expected: TIMEOUT
[Access evolves correctly for cross-origin objects when we join up via document.domain and then diverge again.]
expected: NOTRUN
diff --git a/tests/wpt/metadata/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/creating_browsing_context_test_01.html.ini b/tests/wpt/metadata/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/creating_browsing_context_test_01.html.ini
index 16fa2c5cfc1..dec4c579137 100644
--- a/tests/wpt/metadata/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/creating_browsing_context_test_01.html.ini
+++ b/tests/wpt/metadata/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/creating_browsing_context_test_01.html.ini
@@ -1,4 +1,5 @@
[creating_browsing_context_test_01.html]
+ expected: TIMEOUT
[first argument: absolute url]
- expected: FAIL
+ expected: TIMEOUT
diff --git a/tests/wpt/metadata/html/browsers/windows/embedded-opener-remove-frame.html.ini b/tests/wpt/metadata/html/browsers/windows/embedded-opener-remove-frame.html.ini
index c757b400205..fd369192a02 100644
--- a/tests/wpt/metadata/html/browsers/windows/embedded-opener-remove-frame.html.ini
+++ b/tests/wpt/metadata/html/browsers/windows/embedded-opener-remove-frame.html.ini
@@ -1,5 +1,5 @@
[embedded-opener-remove-frame.html]
- expected: CRASH
+ expected: TIMEOUT
[opener and "removed" embedded documents]
expected: FAIL
diff --git a/tests/wpt/metadata/html/interaction/focus/the-autofocus-attribute/supported-elements.html.ini b/tests/wpt/metadata/html/interaction/focus/the-autofocus-attribute/supported-elements.html.ini
index 6b68e9094e4..8b743f36e1d 100644
--- a/tests/wpt/metadata/html/interaction/focus/the-autofocus-attribute/supported-elements.html.ini
+++ b/tests/wpt/metadata/html/interaction/focus/the-autofocus-attribute/supported-elements.html.ini
@@ -1,16 +1,20 @@
[supported-elements.html]
+ expected: TIMEOUT
[Contenteditable element should support autofocus]
expected: FAIL
[Element with tabindex should support autofocus]
- expected: FAIL
+ expected: TIMEOUT
[Host element with delegatesFocus including no focusable descendants should be skipped]
- expected: FAIL
+ expected: NOTRUN
[Area element should support autofocus]
- expected: FAIL
+ expected: NOTRUN
[Host element with delegatesFocus should support autofocus]
- expected: FAIL
+ expected: NOTRUN
+
+ [Non-HTMLElement should not support autofocus]
+ expected: NOTRUN
diff --git a/tests/wpt/metadata/html/semantics/embedded-content/the-iframe-element/iframe_sandbox_popups_escaping-1.html.ini b/tests/wpt/metadata/html/semantics/embedded-content/the-iframe-element/iframe_sandbox_popups_escaping-1.html.ini
index fc37df7e3fa..2a166bb97b7 100644
--- a/tests/wpt/metadata/html/semantics/embedded-content/the-iframe-element/iframe_sandbox_popups_escaping-1.html.ini
+++ b/tests/wpt/metadata/html/semantics/embedded-content/the-iframe-element/iframe_sandbox_popups_escaping-1.html.ini
@@ -1,6 +1,6 @@
[iframe_sandbox_popups_escaping-1.html]
type: testharness
- expected: TIMEOUT
+ expected: CRASH
[Check that popups from a sandboxed iframe escape the sandbox if\n allow-popups-to-escape-sandbox is used]
expected: TIMEOUT
diff --git a/tests/wpt/metadata/html/semantics/forms/form-submission-0/form-double-submit-3.html.ini b/tests/wpt/metadata/html/semantics/forms/form-submission-0/form-double-submit-3.html.ini
index 941d0dee0c8..df89cd21511 100644
--- a/tests/wpt/metadata/html/semantics/forms/form-submission-0/form-double-submit-3.html.ini
+++ b/tests/wpt/metadata/html/semantics/forms/form-submission-0/form-double-submit-3.html.ini
@@ -1,5 +1,5 @@
[form-double-submit-3.html]
expected: ERROR
[<button> should have the same double-submit protection as <input type=submit>]
- expected: TIMEOUT
+ expected: FAIL
diff --git a/tests/wpt/metadata/html/semantics/forms/form-submission-0/form-double-submit.html.ini b/tests/wpt/metadata/html/semantics/forms/form-submission-0/form-double-submit.html.ini
index 47a7bbb7975..dce74c6dd71 100644
--- a/tests/wpt/metadata/html/semantics/forms/form-submission-0/form-double-submit.html.ini
+++ b/tests/wpt/metadata/html/semantics/forms/form-submission-0/form-double-submit.html.ini
@@ -1,5 +1,5 @@
[form-double-submit.html]
expected: ERROR
[default submit action should supersede onclick submit()]
- expected: TIMEOUT
+ expected: FAIL
diff --git a/tests/wpt/metadata/html/semantics/forms/the-button-element/button-submit-children.html.ini b/tests/wpt/metadata/html/semantics/forms/the-button-element/button-submit-children.html.ini
deleted file mode 100644
index dbb4c200800..00000000000
--- a/tests/wpt/metadata/html/semantics/forms/the-button-element/button-submit-children.html.ini
+++ /dev/null
@@ -1,5 +0,0 @@
-[button-submit-children.html]
- expected: TIMEOUT
- [This test will pass if a form navigation successfully occurs when clicking a child element of a <button type=submit> element with a onclick event handler which prevents the default form submission and manually calls form.submit() instead.]
- expected: TIMEOUT
-
diff --git a/tests/wpt/metadata/html/semantics/scripting-1/the-script-element/script-onerror-insertion-point-2.html.ini b/tests/wpt/metadata/html/semantics/scripting-1/the-script-element/script-onerror-insertion-point-2.html.ini
deleted file mode 100644
index 178680e5d14..00000000000
--- a/tests/wpt/metadata/html/semantics/scripting-1/the-script-element/script-onerror-insertion-point-2.html.ini
+++ /dev/null
@@ -1,2 +0,0 @@
-[script-onerror-insertion-point-2.html]
- expected: TIMEOUT
diff --git a/tests/wpt/metadata/html/syntax/parsing/DOMContentLoaded-defer.html.ini b/tests/wpt/metadata/html/syntax/parsing/DOMContentLoaded-defer.html.ini
new file mode 100644
index 00000000000..a9677391662
--- /dev/null
+++ b/tests/wpt/metadata/html/syntax/parsing/DOMContentLoaded-defer.html.ini
@@ -0,0 +1,4 @@
+[DOMContentLoaded-defer.html]
+ [The end: DOMContentLoaded and defer scripts]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/resource-timing/nested-context-navigations-iframe.html.ini b/tests/wpt/metadata/resource-timing/nested-context-navigations-iframe.html.ini
index 8594361ff44..ec371a1bf72 100644
--- a/tests/wpt/metadata/resource-timing/nested-context-navigations-iframe.html.ini
+++ b/tests/wpt/metadata/resource-timing/nested-context-navigations-iframe.html.ini
@@ -1,5 +1,5 @@
[nested-context-navigations-iframe.html]
- expected: CRASH
+ expected: TIMEOUT
[Test that iframe navigations are not observable by the parent, even after history navigations by the parent]
expected: FAIL
diff --git a/tests/wpt/metadata/webaudio/the-audio-api/the-analysernode-interface/realtimeanalyser-fft-scaling.html.ini b/tests/wpt/metadata/webaudio/the-audio-api/the-analysernode-interface/realtimeanalyser-fft-scaling.html.ini
index 66bd350083b..a56bad443a2 100644
--- a/tests/wpt/metadata/webaudio/the-audio-api/the-analysernode-interface/realtimeanalyser-fft-scaling.html.ini
+++ b/tests/wpt/metadata/webaudio/the-audio-api/the-analysernode-interface/realtimeanalyser-fft-scaling.html.ini
@@ -1,4 +1,5 @@
[realtimeanalyser-fft-scaling.html]
+ expected: TIMEOUT
[X 2048-point FFT peak position is not equal to 64. Got 0.]
expected: FAIL
diff --git a/tests/wpt/metadata/webmessaging/without-ports/017.html.ini b/tests/wpt/metadata/webmessaging/with-ports/017.html.ini
index 064cf47545b..064cf47545b 100644
--- a/tests/wpt/metadata/webmessaging/without-ports/017.html.ini
+++ b/tests/wpt/metadata/webmessaging/with-ports/017.html.ini
diff --git a/tests/wpt/metadata/webmessaging/without-ports/018.html.ini b/tests/wpt/metadata/webmessaging/without-ports/018.html.ini
new file mode 100644
index 00000000000..663a1f8fa30
--- /dev/null
+++ b/tests/wpt/metadata/webmessaging/without-ports/018.html.ini
@@ -0,0 +1,5 @@
+[018.html]
+ expected: TIMEOUT
+ [origin of the script that invoked the method, javascript:]
+ expected: TIMEOUT
+
diff --git a/tests/wpt/metadata/workers/WorkerGlobalScope-close.html.ini b/tests/wpt/metadata/workers/WorkerGlobalScope-close.html.ini
new file mode 100644
index 00000000000..fe8654e447c
--- /dev/null
+++ b/tests/wpt/metadata/workers/WorkerGlobalScope-close.html.ini
@@ -0,0 +1,4 @@
+[WorkerGlobalScope-close.html]
+ [Test sending a message after closing.]
+ expected: FAIL
+
diff --git a/tests/wpt/web-platform-tests/css/css-flexbox/select-element-zero-height-001-ref.html b/tests/wpt/web-platform-tests/css/css-flexbox/select-element-zero-height-001-ref.html
new file mode 100644
index 00000000000..37a102e0f60
--- /dev/null
+++ b/tests/wpt/web-platform-tests/css/css-flexbox/select-element-zero-height-001-ref.html
@@ -0,0 +1,14 @@
+<!DOCTYPE html>
+<title>Reference: Select element in flexbox with zero height</title>
+<link rel="author" title="Mozilla" href="https://mozilla.org">
+<style>
+ .container {
+ height: 0px;
+ border: 1px dotted black;
+ }
+</style>
+<body>
+ <div class="container">
+ <select style="width:100%"><option>Hi</option></select>
+ </div>
+</body>
diff --git a/tests/wpt/web-platform-tests/css/css-flexbox/select-element-zero-height-001.html b/tests/wpt/web-platform-tests/css/css-flexbox/select-element-zero-height-001.html
new file mode 100644
index 00000000000..e39461ef129
--- /dev/null
+++ b/tests/wpt/web-platform-tests/css/css-flexbox/select-element-zero-height-001.html
@@ -0,0 +1,19 @@
+<!DOCTYPE html>
+<title>Select element in flexbox with zero height</title>
+<link rel="author" title="Mozilla" href="https://mozilla.org">
+<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1591925">
+<link rel="help" href="https://drafts.csswg.org/css-flexbox/#content-size-suggestion">
+<link rel="match" href="select-element-zero-height-001-ref.html">
+<style>
+ .container {
+ display: flex;
+ flex-direction: column;
+ height: 0px;
+ border: 1px dotted black;
+ }
+</style>
+<body>
+ <div class="container">
+ <select><option>Hi</option></select>
+ </div>
+</body>
diff --git a/tests/wpt/web-platform-tests/css/css-flexbox/select-element-zero-height-002-ref.html b/tests/wpt/web-platform-tests/css/css-flexbox/select-element-zero-height-002-ref.html
new file mode 100644
index 00000000000..93222f70617
--- /dev/null
+++ b/tests/wpt/web-platform-tests/css/css-flexbox/select-element-zero-height-002-ref.html
@@ -0,0 +1,18 @@
+<!DOCTYPE html>
+<title>Reference: Select element with background color in flexbox with zero height</title>
+<link rel="author" title="Mozilla" href="https://mozilla.org">
+<style>
+ .container {
+ height: 0px;
+ border: 1px dotted black;
+ }
+ .with-background {
+ width: 100%;
+ background: lime;
+ }
+</style>
+<body>
+ <div class="container">
+ <select class="with-background"><option>Hi</option></select>
+ </div>
+</body>
diff --git a/tests/wpt/web-platform-tests/css/css-flexbox/select-element-zero-height-002.html b/tests/wpt/web-platform-tests/css/css-flexbox/select-element-zero-height-002.html
new file mode 100644
index 00000000000..6b6b92896bc
--- /dev/null
+++ b/tests/wpt/web-platform-tests/css/css-flexbox/select-element-zero-height-002.html
@@ -0,0 +1,22 @@
+<!DOCTYPE html>
+<title>Select element with background color in flexbox with zero height</title>
+<link rel="author" title="Mozilla" href="https://mozilla.org">
+<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1591925">
+<link rel="help" href="https://drafts.csswg.org/css-flexbox/#content-size-suggestion">
+<link rel="match" href="select-element-zero-height-002-ref.html">
+<style>
+ .container {
+ display: flex;
+ flex-direction: column;
+ height: 0px;
+ border: 1px dotted black;
+ }
+ .with-background {
+ background: lime;
+ }
+</style>
+<body>
+ <div class="container">
+ <select class="with-background"><option>Hi</option></select>
+ </div>
+</body>
diff --git a/tests/wpt/web-platform-tests/css/css-transforms/animation/scale-interpolation.html b/tests/wpt/web-platform-tests/css/css-transforms/animation/scale-interpolation.html
index e71b134ce5f..29999d49ccf 100644
--- a/tests/wpt/web-platform-tests/css/css-transforms/animation/scale-interpolation.html
+++ b/tests/wpt/web-platform-tests/css/css-transforms/animation/scale-interpolation.html
@@ -92,12 +92,12 @@
from: '-10 5 1',
to: '1',
}, [
- {at: -1, expect: '-21 9 1'},
- {at: 0, expect: '-10 5 1'},
- {at: 0.25, expect: '-7.25 4 1'},
- {at: 0.75, expect: '-1.75 2 1'},
+ {at: -1, expect: '-21 9'},
+ {at: 0, expect: '-10 5'},
+ {at: 0.25, expect: '-7.25 4'},
+ {at: 0.75, expect: '-1.75 2'},
{at: 1, expect: '1'},
- {at: 2, expect: '12 -3 1'},
+ {at: 2, expect: '12 -3'},
]);
// Handling of the none value.
@@ -148,12 +148,12 @@
from: 'initial',
to: '2 0.5 1',
}, [
- {at: -1, expect: '0 1.5 1'},
+ {at: -1, expect: '0 1.5'},
{at: 0, expect: 'none'},
- {at: 0.25, expect: '1.25 0.875 1'},
- {at: 0.75, expect: '1.75 0.625 1'},
- {at: 1, expect: '2 0.5 1'},
- {at: 2, expect: '3 0 1'},
+ {at: 0.25, expect: '1.25 0.875'},
+ {at: 0.75, expect: '1.75 0.625'},
+ {at: 1, expect: '2 0.5'},
+ {at: 2, expect: '3 0'},
]);
test_interpolation({
@@ -161,12 +161,12 @@
from: '2 0.5 1',
to: 'initial',
}, [
- {at: -1, expect: '3 0 1'},
- {at: 0, expect: '2 0.5 1'},
- {at: 0.25, expect: '1.75 0.6251 1'},
- {at: 0.75, expect: '1.25 0.875 1'},
+ {at: -1, expect: '3 0'},
+ {at: 0, expect: '2 0.5'},
+ {at: 0.25, expect: '1.75 0.6251'},
+ {at: 0.75, expect: '1.25 0.875'},
{at: 1, expect: 'none'},
- {at: 2, expect: '0 1.5 1'},
+ {at: 2, expect: '0 1.5'},
]);
@@ -194,7 +194,7 @@
{at: 0, expect: '0.5 1 2'},
{at: 0.25, expect: '0.875 0.875 1.75'},
{at: 0.75, expect: '1.625 0.625 1.25'},
- {at: 1, expect: '2 0.5 1'},
+ {at: 1, expect: '2 0.5'},
{at: 2, expect: '3.5 0 0'},
]);
@@ -204,7 +204,7 @@
to: 'inherit',
}, [
{at: -1, expect: '3.5 0 0'},
- {at: 0, expect: '2 0.5 1'},
+ {at: 0, expect: '2 0.5'},
{at: 0.25, expect: '1.625 0.625 1.25'},
{at: 0.75, expect: '0.875 0.875 1.75'},
{at: 1, expect: '0.5 1 2'},
diff --git a/tests/wpt/web-platform-tests/css/css-transforms/animation/translate-interpolation.html b/tests/wpt/web-platform-tests/css/css-transforms/animation/translate-interpolation.html
index 3d40863b3b4..1764df3e967 100644
--- a/tests/wpt/web-platform-tests/css/css-transforms/animation/translate-interpolation.html
+++ b/tests/wpt/web-platform-tests/css/css-transforms/animation/translate-interpolation.html
@@ -9,14 +9,6 @@
<script src="/resources/testharnessreport.js"></script>
<script src="/css/support/interpolation-testcommon.js"></script>
<style>
- body {
- width: 500px;
- height: 500px;
- }
- div {
- width: 10px;
- height: 10px;
- }
.parent {
translate: 100px 200px 300px;
}
diff --git a/tests/wpt/web-platform-tests/css/css-transforms/parsing/scale-parsing-valid.html b/tests/wpt/web-platform-tests/css/css-transforms/parsing/scale-parsing-valid.html
index ac23a17b013..bbd443a717a 100644
--- a/tests/wpt/web-platform-tests/css/css-transforms/parsing/scale-parsing-valid.html
+++ b/tests/wpt/web-platform-tests/css/css-transforms/parsing/scale-parsing-valid.html
@@ -17,10 +17,10 @@ test_valid_value("scale", "1");
test_valid_value("scale", "100");
test_valid_value("scale", "100 100", "100");
-test_valid_value("scale", "100 100 1");
+test_valid_value("scale", "100 100 1", "100");
test_valid_value("scale", "100 200");
-test_valid_value("scale", "100 200 1");
+test_valid_value("scale", "100 200 1", "100 200");
test_valid_value("scale", "100 200 300");
</script>
</body>
diff --git a/tests/wpt/web-platform-tests/css/css-transforms/parsing/translate-parsing-valid.html b/tests/wpt/web-platform-tests/css/css-transforms/parsing/translate-parsing-valid.html
index 17699ccc1c2..f15fdf0c4fb 100644
--- a/tests/wpt/web-platform-tests/css/css-transforms/parsing/translate-parsing-valid.html
+++ b/tests/wpt/web-platform-tests/css/css-transforms/parsing/translate-parsing-valid.html
@@ -23,14 +23,15 @@ test_valid_value("translate", "100px calc(10px - 10%)", "100px calc(10px - 10%)"
test_valid_value("translate", "100px 200%");
test_valid_value("translate", "100% 200px");
-test_valid_value("translate", "100px 200px 0px");
+test_valid_value("translate", "100px 200px 0px", "100px 200px");
+test_valid_value("translate", "100px 0px 0px", "100px");
test_valid_value("translate", "100px 200px 300px");
test_valid_value("translate", "100% 200% 300px");
test_valid_value("translate", "calc(10% + 10px) calc(20% + 20px) calc(30em + 30px)");
test_valid_value("translate", "0", "0px");
-test_valid_value("translate", "1px 2px 0", "1px 2px 0px");
+test_valid_value("translate", "1px 2px 0", "1px 2px");
</script>
</body>
</html>
diff --git a/tests/wpt/web-platform-tests/css/vendor-imports/mozilla/mozilla-central-reftests/will-change/reftest.list b/tests/wpt/web-platform-tests/css/vendor-imports/mozilla/mozilla-central-reftests/will-change/reftest.list
index d3031a49b89..231532eac32 100644
--- a/tests/wpt/web-platform-tests/css/vendor-imports/mozilla/mozilla-central-reftests/will-change/reftest.list
+++ b/tests/wpt/web-platform-tests/css/vendor-imports/mozilla/mozilla-central-reftests/will-change/reftest.list
@@ -9,6 +9,7 @@
== will-change-stacking-context-position-1.html green-square-100-by-100-ref.html
== will-change-stacking-context-transform-1.html green-square-100-by-100-ref.html
== will-change-stacking-context-translate-1.html green-square-100-by-100-ref.html
+== will-change-stacking-context-offset-path-1.html green-square-100-by-100-ref.html
== will-change-stacking-context-transform-style-1.html green-square-100-by-100-ref.html
== will-change-stacking-context-z-index-1.html green-square-100-by-100-ref.html
== will-change-fixpos-cb-contain-1.html green-square-100-by-100-offset-ref.html
@@ -18,4 +19,5 @@
== will-change-fixpos-cb-position-1.html green-square-100-by-100-offset-ref.html
== will-change-fixpos-cb-transform-1.html green-square-100-by-100-offset-ref.html
== will-change-fixpos-cb-translate-1.html green-square-100-by-100-offset-ref.html
+== will-change-fixpos-cb-offset-path-1.html green-square-100-by-100-offset-ref.html
== will-change-fixpos-cb-transform-style-1.html green-square-100-by-100-offset-ref.html
diff --git a/tests/wpt/web-platform-tests/css/vendor-imports/mozilla/mozilla-central-reftests/will-change/will-change-fixpos-cb-offset-path-1.html b/tests/wpt/web-platform-tests/css/vendor-imports/mozilla/mozilla-central-reftests/will-change/will-change-fixpos-cb-offset-path-1.html
new file mode 100644
index 00000000000..0fe1ec1da79
--- /dev/null
+++ b/tests/wpt/web-platform-tests/css/vendor-imports/mozilla/mozilla-central-reftests/will-change/will-change-fixpos-cb-offset-path-1.html
@@ -0,0 +1,24 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>CSS will-change: 'will-change: offset-path' creates a containing block for fixed positioned elements</title>
+<link rel="author" title="Mozilla" href="http://www.mozilla.org/">
+<link rel="help" href="https://drafts.csswg.org/css-will-change-1/#will-change">
+<link rel="help" href="https://drafts.fxtf.org/motion-1/#offset-path-property">
+<link rel="match" href="green-square-100-by-100-offset-ref.html">
+<meta name="assert" content="If any non-initial value of a property would cause the element to generate a containing block for fixed-position elements, specifying that property in will-change must cause the element to generate a containing block for fixed-position elements.">
+<style>
+html, body { margin: 0; padding: 0; }
+div { width: 100px; height: 100px }
+#wc { will-change: offset-path; margin: 100px 0 0 100px; background: red }
+.child { top: 0; left: 0; width: 50px; background: green }
+#fixpos { position: fixed }
+#abspos { position: absolute; left: 50px }
+</style>
+<body>
+ <div id="wc">
+ <div class="child" id="fixpos">
+ </div>
+ <div class="child" id="abspos">
+ </div>
+ </div>
+</body>
diff --git a/tests/wpt/web-platform-tests/css/vendor-imports/mozilla/mozilla-central-reftests/will-change/will-change-stacking-context-offset-path-1.html b/tests/wpt/web-platform-tests/css/vendor-imports/mozilla/mozilla-central-reftests/will-change/will-change-stacking-context-offset-path-1.html
new file mode 100644
index 00000000000..07277b66d92
--- /dev/null
+++ b/tests/wpt/web-platform-tests/css/vendor-imports/mozilla/mozilla-central-reftests/will-change/will-change-stacking-context-offset-path-1.html
@@ -0,0 +1,20 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>CSS will-change: 'will-change: offset-path' creates a stacking context</title>
+<link rel="author" title="Mozilla" href="http://www.mozilla.org/">
+<link rel="help" href="https://drafts.csswg.org/css-will-change-1/#will-change">
+<link rel="help" href="https://drafts.fxtf.org/motion-1/#offset-path-property">
+<link rel="match" href="green-square-100-by-100-ref.html">
+<meta name="assert" content="If any non-initial value of a property would create a stacking context on the element, specifying that property in will-change must create a stacking context on the element.">
+<style>
+html, body { margin: 0; padding: 0; }
+div { width: 100px; height: 100px }
+#wc { will-change: offset-path; background: red }
+#child { position: absolute; top: 0; left: 0; z-index: -1; background: green }
+</style>
+<body>
+ <div id="wc">
+ <div id="child">
+ </div>
+ </div>
+</body>
diff --git a/tests/wpt/web-platform-tests/html/semantics/embedded-content/media-elements/track/track-element/cors/support/cors-tester.py b/tests/wpt/web-platform-tests/html/semantics/embedded-content/media-elements/track/track-element/cors/support/cors-tester.py
index 1c27a0d14bd..7ec7b160115 100644
--- a/tests/wpt/web-platform-tests/html/semantics/embedded-content/media-elements/track/track-element/cors/support/cors-tester.py
+++ b/tests/wpt/web-platform-tests/html/semantics/embedded-content/media-elements/track/track-element/cors/support/cors-tester.py
@@ -31,9 +31,9 @@ def main(request, response):
cors = request.headers.get("origin", "no")
- cookie = request.cookies.first(id, "no")
-
- line = 'cors = ' + cors + ' | cookie = ' + cookie.value;
+ cookie = request.cookies.first(id, None)
+ cookie_value = cookie.value if cookie is not None else "no"
+ line = 'cors = ' + cors + ' | cookie = ' + cookie_value;
data = request.server.stash.take(id)
if data is not None:
diff --git a/tests/wpt/web-platform-tests/payment-method-basic-card/billing-address-is-null-manual.https.html b/tests/wpt/web-platform-tests/payment-method-basic-card/billing-address-is-null-manual.https.html
new file mode 100644
index 00000000000..3250e0a2c55
--- /dev/null
+++ b/tests/wpt/web-platform-tests/payment-method-basic-card/billing-address-is-null-manual.https.html
@@ -0,0 +1,150 @@
+<!DOCTYPE html> <meta charset="utf-8" />
+<title>Test for requesting billing address</title>
+<link
+ rel="help"
+ href="https://github.com/w3c/payment-method-basic-card/pull/65"
+/>
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<script>
+ setup({
+ explicit_done: true,
+ explicit_timeout: true,
+ });
+ const basicCard = { supportedMethods: "basic-card" };
+ const details = {
+ total: {
+ label: "label",
+ amount: { currency: "USD", value: "5.00" },
+ },
+ };
+
+ // Smoke tests
+ test(() => {
+ assert_true(
+ "onpaymentmethodchange" in PaymentRequest.prototype,
+ "The paymentmethodchange event handler is not supported on PaymentRequest"
+ );
+ assert_true(
+ "PaymentMethodChangeEvent" in window,
+ "The PaymentMethodChangeEvent is not supported"
+ );
+ }, "PaymentMethodChangeEvent support");
+
+ function dontRequestBillingAddress(options) {
+ promise_test(async t => {
+ const request = new PaymentRequest([basicCard], details, {
+ requestBillingAddress: false,
+ });
+ const showPromise = request.show();
+
+ // Let's check the method data from PaymentMethodChangeEvent.
+ const event = await new Promise(resolve =>
+ request.addEventListener("paymentmethodchange", resolve)
+ );
+ assert_true(
+ event instanceof PaymentMethodChangeEvent,
+ "Expected instance of PaymentMethodChangeEvent"
+ );
+ assert_equals(
+ event.methodDetails.billingAddress,
+ null,
+ "Expected methodDetails.billingAddress to be null"
+ );
+
+ // Let's check the billingAddress in the response
+ const response = await showPromise;
+ const {
+ details: { billingAddress: responseBillingAddress },
+ } = response;
+
+ assert_equals(
+ responseBillingAddress,
+ null,
+ "Expected PaymentResponse.data.billingAddress to be null"
+ );
+
+ // And we are done
+ await response.complete("success");
+ });
+ }
+
+ function requestBillingAddress() {
+ promise_test(async t => {
+ const request = new PaymentRequest([basicCard], details, {
+ requestBillingAddress: true,
+ });
+ const showPromise = request.show();
+
+ // Let's check the methodDetails from event.
+ const event = await new Promise(resolve =>
+ request.addEventListener("paymentmethodchange", resolve)
+ );
+ assert_true(
+ event instanceof PaymentMethodChangeEvent,
+ "Expected instance of PaymentMethodChangeEvent"
+ );
+ const { billingAddress: eventBillingAddress } = event.methodDetails;
+ checkRedactList(eventBillingAddress);
+
+ // Let's check the billingAddress in the response.
+ const response = await showPromise;
+ const {
+ details: { billingAddress: responseBillingAddress },
+ } = await showPromise;
+ checkRedactList(responseBillingAddress);
+
+ // And we are done.
+ await response.complete("success");
+ });
+ }
+
+ function checkRedaction(billingAddress) {
+ assert_true(
+ billingAddress instanceof PaymentAddress,
+ "Expected instance of PaymentAddress"
+ );
+ for (const item of ["organization", "phone", "recipient"]) {
+ assert_equals(
+ billingAddress[item],
+ "",
+ `Expected billingAddress's "${item}" attribute to equal null (redacted).`
+ );
+ }
+ }
+</script>
+
+<h2>Request billing address</h2>
+<p>
+ Click on each button in sequence from top to bottom without refreshing the
+ page. Each button will bring up the Payment Request UI window.
+</p>
+<p>
+ When the payment sheet is presented, select a payment method (e.g., a credit
+ card), and press "Pay".
+</p>
+<ol>
+ <li>
+ <button onclick="dontRequestBillingAddress()">
+ When no billing address is requested,
+ `PaymentMethodChangeEvent.methodData.billingAddress` is null.
+ </button>
+ </li>
+ <li>
+ <button onclick="requestBillingAddress()">
+ When billing address is
+ requested,`PaymentMethodChangeEvent.methodData.billingAddress` is a
+ `PaymentAddress`.
+ </button>
+ </li>
+ <li><button onclick="done()">Done!</button></li>
+</ol>
+<small>
+ If you find a buggy test, please
+ <a href="https://github.com/web-platform-tests/wpt/issues">file a bug</a> and
+ tag one of the
+ <a
+ href="https://github.com/web-platform-tests/wpt/blob/master/payment-request/META.yml"
+ >suggested reviewers</a
+ >.
+</small>