From 7ba3376dde9fea3d84d00464da17055af66f9b44 Mon Sep 17 00:00:00 2001 From: WPT Sync Bot Date: Fri, 28 Sep 2018 21:31:46 -0400 Subject: [PATCH] Update web-platform-tests to revision 2df7f9ff620cbdaa2928464892fb1dfb880fd6c6 --- .../FileAPI/url/url-with-fetch.any.js.ini | 6 + tests/wpt/metadata/MANIFEST.json | 276 +++++++++-- ...lex-minimum-height-flex-items-009.html.ini | 7 + ...css-text-line-break-ja-cpm-normal.html.ini | 12 - ...text-line-break-ja-hyphens-strict.html.ini | 9 + ...css-text-line-break-zh-cpm-normal.html.ini | 12 - .../properties-value-inherit-002.html.ini | 173 ++----- ...nsitions-animatable-properties-01.html.ini | 51 +- .../encoding/single-byte-decoder.html.ini | 2 +- .../eventsource/format-field-id-2.htm.ini | 5 - .../eventsource/format-field-id.htm.ini | 5 - .../traverse_the_history_5.html.ini | 4 - ...-protocol-setter-non-broken-weird.html.ini | 16 + .../hash-name-reference.html.ini | 60 +++ .../viewport-change.html.ini | 2 +- .../aborted-parser.window.js.ini | 3 - .../metadata/url/urlencoded-parser.any.js.ini | 11 +- .../realtimeanalyser-fft-scaling.html.ini | 73 ++- .../alpha/import-in-moduleworker.html.ini | 1 + .../css/transition_calc_implicit.html.ini | 2 + tests/wpt/web-platform-tests/README.md | 8 +- .../accname/name_test_case_659-manual.html | 2 +- .../accname/name_test_case_660-manual.html | 2 +- .../background-fetch/fetch.https.window.js | 33 +- ...ontent-and-allowed-schemes.https.window.js | 28 -- .../background-fetch/service_workers/sw.js | 2 - .../contain-layout-button-001.html | 20 + .../contain-layout-flexbox-001.html | 20 + .../css-contain/contain-layout-grid-001.html | 20 + .../css-contain/contain-paint-clip-019.html | 38 ++ .../css-contain/contain-size-button-001.html | 5 +- .../css-contain/contain-size-flexbox-001.html | 5 +- .../css-contain/contain-size-grid-001.html | 5 +- .../contain-layout-button-001-ref.html | 19 + .../contain-layout-flexbox-001-ref.html | 16 + .../contain-layout-grid-001-ref.html | 16 + .../reference/contain-paint-clip-019-ref.html | 19 + .../contain-size-button-001-ref.html | 8 +- .../contain-size-flexbox-001-ref.html | 8 +- .../reference/contain-size-grid-001-ref.html | 8 +- .../flex-minimum-height-flex-items-009.html | 62 +++ .../css-grid/alignment/grid-gutters-013.html | 36 ++ ...{inheritance.html => inheritance.sub.html} | 6 +- .../flexbox/flexbox-dyn-resize-001-ref.html | 60 +++ .../flexbox/flexbox-dyn-resize-001.html | 65 +++ .../flexbox/reftest.list | 3 + .../interfaces/screen-capture.idl | 12 + .../interfaces/speech-api.idl | 17 +- .../intersection-observer/bounding-box.html | 29 +- .../target-in-different-window.html | 36 ++ tests/wpt/web-platform-tests/lint.whitelist | 1 + .../navigation-redirect.https.html | 446 +++++++++++++++--- .../navigation-redirect-other-origin.html | 19 + .../resources/redirect-worker.js | 55 ++- ...ak-without-activation-fails.tentative.html | 2 +- ...SpeechSynthesisErrorEvent-constructor.html | 88 ++++ .../SpeechSynthesisEvent-constructor.html | 67 +++ .../tools/manifest/sourcefile.py | 1 + .../tools/manifest/tests/test_sourcefile.py | 2 + .../tools/wptserve/tests/functional/base.py | 2 +- .../tests/functional/test_handlers.py | 3 + .../wptserve/tests/functional/test_pipes.py | 52 +- .../wptserve/tests/functional/test_request.py | 5 +- .../tools/wptserve/wptserve/pipes.py | 30 +- .../tools/wptserve/wptserve/request.py | 32 +- .../tools/wptserve/wptserve/response.py | 4 +- .../webdriver/tests/perform_actions/key.py | 8 + .../tests/perform_actions/key_modifiers.py | 13 + .../RTCIceTransport-extension-helper.js | 42 ++ .../RTCIceTransport-extension.https.html | 24 +- .../webrtc/RTCQuicStream.https.html | 15 +- .../webrtc/RTCQuicTransport-helper.js | 78 ++- .../webrtc/RTCQuicTransport.https.html | 157 ++++-- .../misc/texture-upload-size.html.ini | 3 + 74 files changed, 1984 insertions(+), 503 deletions(-) create mode 100644 tests/wpt/metadata/css/css-flexbox/flex-minimum-height-flex-items-009.html.ini delete mode 100644 tests/wpt/metadata/eventsource/format-field-id-2.htm.ini delete mode 100644 tests/wpt/metadata/eventsource/format-field-id.htm.ini delete mode 100644 tests/wpt/metadata/html/browsers/history/the-history-interface/traverse_the_history_5.html.ini create mode 100644 tests/wpt/metadata/html/browsers/history/the-location-interface/location-protocol-setter-non-broken-weird.html.ini create mode 100644 tests/wpt/mozilla/meta/css/transition_calc_implicit.html.ini create mode 100644 tests/wpt/web-platform-tests/css/css-contain/contain-layout-button-001.html create mode 100644 tests/wpt/web-platform-tests/css/css-contain/contain-layout-flexbox-001.html create mode 100644 tests/wpt/web-platform-tests/css/css-contain/contain-layout-grid-001.html create mode 100644 tests/wpt/web-platform-tests/css/css-contain/contain-paint-clip-019.html create mode 100644 tests/wpt/web-platform-tests/css/css-contain/reference/contain-layout-button-001-ref.html create mode 100644 tests/wpt/web-platform-tests/css/css-contain/reference/contain-layout-flexbox-001-ref.html create mode 100644 tests/wpt/web-platform-tests/css/css-contain/reference/contain-layout-grid-001-ref.html create mode 100644 tests/wpt/web-platform-tests/css/css-contain/reference/contain-paint-clip-019-ref.html create mode 100644 tests/wpt/web-platform-tests/css/css-flexbox/flex-minimum-height-flex-items-009.html create mode 100644 tests/wpt/web-platform-tests/css/css-grid/alignment/grid-gutters-013.html rename tests/wpt/web-platform-tests/css/css-masking/{inheritance.html => inheritance.sub.html} (87%) create mode 100644 tests/wpt/web-platform-tests/css/vendor-imports/mozilla/mozilla-central-reftests/flexbox/flexbox-dyn-resize-001-ref.html create mode 100644 tests/wpt/web-platform-tests/css/vendor-imports/mozilla/mozilla-central-reftests/flexbox/flexbox-dyn-resize-001.html create mode 100644 tests/wpt/web-platform-tests/intersection-observer/target-in-different-window.html create mode 100644 tests/wpt/web-platform-tests/speech-api/SpeechSynthesisErrorEvent-constructor.html create mode 100644 tests/wpt/web-platform-tests/speech-api/SpeechSynthesisEvent-constructor.html create mode 100644 tests/wpt/web-platform-tests/webrtc/RTCIceTransport-extension-helper.js 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 947e223fb28f..3a3d15b84062 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 @@ -14,6 +14,9 @@ [Revoke blob URL after creating Request, will fetch] expected: FAIL + [Revoke blob URL after calling fetch, fetch should succeed] + expected: FAIL + [url-with-fetch.any.html] [Untitled] @@ -34,3 +37,6 @@ [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 d13132f9b135..1aa1a0ed3ca8 100644 --- a/tests/wpt/metadata/MANIFEST.json +++ b/tests/wpt/metadata/MANIFEST.json @@ -109729,6 +109729,18 @@ {} ] ], + "css/css-contain/contain-layout-button-001.html": [ + [ + "/css/css-contain/contain-layout-button-001.html", + [ + [ + "/css/css-contain/reference/contain-layout-button-001-ref.html", + "==" + ] + ], + {} + ] + ], "css/css-contain/contain-layout-cell-001.html": [ [ "/css/css-contain/contain-layout-cell-001.html", @@ -109753,6 +109765,30 @@ {} ] ], + "css/css-contain/contain-layout-flexbox-001.html": [ + [ + "/css/css-contain/contain-layout-flexbox-001.html", + [ + [ + "/css/css-contain/reference/contain-layout-flexbox-001-ref.html", + "==" + ] + ], + {} + ] + ], + "css/css-contain/contain-layout-grid-001.html": [ + [ + "/css/css-contain/contain-layout-grid-001.html", + [ + [ + "/css/css-contain/reference/contain-layout-grid-001-ref.html", + "==" + ] + ], + {} + ] + ], "css/css-contain/contain-layout-ifc-022.html": [ [ "/css/css-contain/contain-layout-ifc-022.html", @@ -110341,6 +110377,18 @@ {} ] ], + "css/css-contain/contain-paint-clip-019.html": [ + [ + "/css/css-contain/contain-paint-clip-019.html", + [ + [ + "/css/css-contain/reference/contain-paint-clip-019-ref.html", + "==" + ] + ], + {} + ] + ], "css/css-contain/contain-paint-ifc-011.html": [ [ "/css/css-contain/contain-paint-ifc-011.html", @@ -120897,6 +120945,18 @@ {} ] ], + "css/css-grid/alignment/grid-gutters-013.html": [ + [ + "/css/css-grid/alignment/grid-gutters-013.html", + [ + [ + "/css/reference/ref-filled-green-100px-square.xht", + "==" + ] + ], + {} + ] + ], "css/css-grid/alignment/self-baseline/grid-self-baseline-changes-grid-area-size-001.html": [ [ "/css/css-grid/alignment/self-baseline/grid-self-baseline-changes-grid-area-size-001.html", @@ -172081,6 +172141,18 @@ {} ] ], + "css/vendor-imports/mozilla/mozilla-central-reftests/flexbox/flexbox-dyn-resize-001.html": [ + [ + "/css/vendor-imports/mozilla/mozilla-central-reftests/flexbox/flexbox-dyn-resize-001.html", + [ + [ + "/css/vendor-imports/mozilla/mozilla-central-reftests/flexbox/flexbox-dyn-resize-001-ref.html", + "==" + ] + ], + {} + ] + ], "css/vendor-imports/mozilla/mozilla-central-reftests/flexbox/flexbox-flex-basis-content-001a.html": [ [ "/css/vendor-imports/mozilla/mozilla-central-reftests/flexbox/flexbox-flex-basis-content-001a.html", @@ -248225,11 +248297,26 @@ {} ] ], + "css/css-contain/reference/contain-layout-button-001-ref.html": [ + [ + {} + ] + ], "css/css-contain/reference/contain-layout-cell-001-ref.html": [ [ {} ] ], + "css/css-contain/reference/contain-layout-flexbox-001-ref.html": [ + [ + {} + ] + ], + "css/css-contain/reference/contain-layout-grid-001-ref.html": [ + [ + {} + ] + ], "css/css-contain/reference/contain-layout-ifc-022-ref.html": [ [ {} @@ -248290,6 +248377,11 @@ {} ] ], + "css/css-contain/reference/contain-paint-clip-019-ref.html": [ + [ + {} + ] + ], "css/css-contain/reference/contain-paint-ifc-011-ref.html": [ [ {} @@ -275025,6 +275117,11 @@ {} ] ], + "css/vendor-imports/mozilla/mozilla-central-reftests/flexbox/flexbox-dyn-resize-001-ref.html": [ + [ + {} + ] + ], "css/vendor-imports/mozilla/mozilla-central-reftests/flexbox/flexbox-flex-basis-content-001-ref.html": [ [ {} @@ -314165,6 +314262,11 @@ {} ] ], + "webrtc/RTCIceTransport-extension-helper.js": [ + [ + {} + ] + ], "webrtc/RTCPeerConnection-helper.js": [ [ {} @@ -332830,6 +332932,12 @@ {} ] ], + "css/css-flexbox/flex-minimum-height-flex-items-009.html": [ + [ + "/css/css-flexbox/flex-minimum-height-flex-items-009.html", + {} + ] + ], "css/css-flexbox/flexbox_first-letter.html": [ [ "/css/css-flexbox/flexbox_first-letter.html", @@ -335436,9 +335544,9 @@ {} ] ], - "css/css-masking/inheritance.html": [ + "css/css-masking/inheritance.sub.html": [ [ - "/css/css-masking/inheritance.html", + "/css/css-masking/inheritance.sub.html", {} ] ], @@ -371266,6 +371374,12 @@ {} ] ], + "intersection-observer/target-in-different-window.html": [ + [ + "/intersection-observer/target-in-different-window.html", + {} + ] + ], "intersection-observer/text-target.html": [ [ "/intersection-observer/text-target.html", @@ -396946,6 +397060,12 @@ { "timeout": "long" } + ], + [ + "/service-workers/service-worker/navigation-redirect.https.html?client", + { + "timeout": "long" + } ] ], "service-workers/service-worker/navigation-timing.https.html": [ @@ -397986,6 +398106,18 @@ {} ] ], + "speech-api/SpeechSynthesisErrorEvent-constructor.html": [ + [ + "/speech-api/SpeechSynthesisErrorEvent-constructor.html", + {} + ] + ], + "speech-api/SpeechSynthesisEvent-constructor.html": [ + [ + "/speech-api/SpeechSynthesisEvent-constructor.html", + {} + ] + ], "speech-api/SpeechSynthesisUtterance-basics.https.html": [ [ "/speech-api/SpeechSynthesisUtterance-basics.https.html", @@ -437900,7 +438032,7 @@ "support" ], "README.md": [ - "684f4617f689d0611b18ce1b338bfdeb8d5886b7", + "6f9436bc3e4261e2f6813253e1709cbb60763ca2", "support" ], "WebCryptoAPI/META.yml": [ @@ -439248,11 +439380,11 @@ "manual" ], "accname/name_test_case_659-manual.html": [ - "1332c30c4929430bdc7839bb543c1078fa67047a", + "abf5e85e16ba7bc28d157127db0607a9a6023de2", "manual" ], "accname/name_test_case_660-manual.html": [ - "66b36635d940fcf5e34fdc89ecd193ad09c1a7ba", + "0c18218707b0320f114aeafe3e2b5b601c692620", "manual" ], "accname/name_test_case_661-manual.html": [ @@ -441732,7 +441864,7 @@ "testharness" ], "background-fetch/fetch.https.window.js": [ - "98ecdfa3933c40b909793100b4b9f9cccb35cb86", + "b8b1ff0983cdce1c799d03c7f1856548fa649b17", "testharness" ], "background-fetch/get-ids.https.window.js": [ @@ -441748,7 +441880,7 @@ "testharness" ], "background-fetch/mixed-content-and-allowed-schemes.https.window.js": [ - "9f24f13581819ef444a89cb7549de900f5b98ef6", + "05b32501228fbb765a5c782102660ebd476f0168", "testharness" ], "background-fetch/port-blocking.https.window.js": [ @@ -441772,7 +441904,7 @@ "support" ], "background-fetch/service_workers/sw.js": [ - "43d778c08914da6c8ff75acb819676895adbc180", + "af4655dbad4ef6ad6b17d79bb2645aee98ce1102", "support" ], "background-fetch/update-ui.https.window.js": [ @@ -530931,6 +531063,10 @@ "fadb3c41c5363742eb88bdf803eac7cdbf5e7a8f", "reftest" ], + "css/css-contain/contain-layout-button-001.html": [ + "e8beef7c0edfa20258b9600376d3ab245ca63f32", + "reftest" + ], "css/css-contain/contain-layout-cell-001.html": [ "fa1af0eee6848a34c61f47861c22d9efb56ab059", "reftest" @@ -530939,6 +531075,14 @@ "331a0e6519b0af23ba91355584f0c37dfcf6a88e", "reftest" ], + "css/css-contain/contain-layout-flexbox-001.html": [ + "2b206edb57f46f3baa9dcfbcc24591b852cf8697", + "reftest" + ], + "css/css-contain/contain-layout-grid-001.html": [ + "a6bcc4dbc2adda58602281eac5c2c0b2c0a9de61", + "reftest" + ], "css/css-contain/contain-layout-ifc-022.html": [ "3e4f3dafbf213c18a09cfd2a7512dd485c13f839", "reftest" @@ -531135,6 +531279,10 @@ "17bcccdeff538ea869a51d703acb80e9acc4b0ca", "reftest" ], + "css/css-contain/contain-paint-clip-019.html": [ + "bd761b8a523bd9fa05dd88f57b6b1317b5c4c40b", + "reftest" + ], "css/css-contain/contain-paint-ifc-011.html": [ "b8a03936cbcc3ddcc88dc1237fab0af56f4bd72b", "reftest" @@ -531272,7 +531420,7 @@ "reftest" ], "css/css-contain/contain-size-button-001.html": [ - "1e4965e9daf380aec19cf43902c409ad6b457370", + "4b2ecd7b76e421ea5dfffce6654d722142b5823c", "reftest" ], "css/css-contain/contain-size-fieldset-001.html": [ @@ -531280,11 +531428,11 @@ "reftest" ], "css/css-contain/contain-size-flexbox-001.html": [ - "31e82f5d24c4aa673291a2ce25c660cf10977e28", + "16ba62eda041abe11424f63c65d6dfd46aa82570", "reftest" ], "css/css-contain/contain-size-grid-001.html": [ - "f67f0e118e00b3426986b39226310c59b14a3755", + "4510c1e55368aeea38a79ba66059acd4d7660ddb", "reftest" ], "css/css-contain/contain-size-grid-002.html": [ @@ -531399,10 +531547,22 @@ "c68bee1d0aa4f9201fb6e48cc25199f373128ca8", "support" ], + "css/css-contain/reference/contain-layout-button-001-ref.html": [ + "11a784b213cbc05d10cdcc199a11055fe0c0fdfa", + "support" + ], "css/css-contain/reference/contain-layout-cell-001-ref.html": [ "9ff7f45e39ca741b4b334c1c9b3d1d5ee6759b73", "support" ], + "css/css-contain/reference/contain-layout-flexbox-001-ref.html": [ + "832e4c72c2cef426f2d759e77435290fff2f0d55", + "support" + ], + "css/css-contain/reference/contain-layout-grid-001-ref.html": [ + "b5ff8e0e0dad0cd586e7b899d8a7905b26063233", + "support" + ], "css/css-contain/reference/contain-layout-ifc-022-ref.html": [ "682af7d4f44b22f987c069dbbee370520612bc10", "support" @@ -531451,6 +531611,10 @@ "781a6d2f2f4e8810690ab321f7ff7bf3539044f3", "support" ], + "css/css-contain/reference/contain-paint-clip-019-ref.html": [ + "2a529c12c48e630cc7df146fe3e685afd85a42f0", + "support" + ], "css/css-contain/reference/contain-paint-ifc-011-ref.html": [ "229c8c2d74ba3f2b5cede6824091575835807092", "support" @@ -531520,7 +531684,7 @@ "support" ], "css/css-contain/reference/contain-size-button-001-ref.html": [ - "1cbaaccd1a0751c5dadf913e1fc31d130ff95259", + "eff64aa8e2ef0c7fbce03858e90ef0d9e2a7ee6b", "support" ], "css/css-contain/reference/contain-size-fieldset-001-ref.html": [ @@ -531528,11 +531692,11 @@ "support" ], "css/css-contain/reference/contain-size-flexbox-001-ref.html": [ - "85628b59c48f7931e7d3e5a498da60cc264dc363", + "70f408643007d8338f401ef947f7bb24f1eaedc9", "support" ], "css/css-contain/reference/contain-size-grid-001-ref.html": [ - "d71636bd5f4a344352249b50563eb03d249484c6", + "cf4f8076650928dfd0cefc18665ef1e8ab52d7b6", "support" ], "css/css-contain/reference/contain-size-monolithic-001-ref.html": [ @@ -534427,6 +534591,10 @@ "ead7a424b374fddb247046d2a36a37a11669baae", "reftest" ], + "css/css-flexbox/flex-minimum-height-flex-items-009.html": [ + "718386af02069fa1a3fff0ee5aaa10415ef4b23a", + "testharness" + ], "css/css-flexbox/flex-minimum-width-flex-items-001.xht": [ "b8e2866edaa46af46900c287238894cd8ddef24c", "reftest" @@ -545547,6 +545715,10 @@ "1e56e708dfb45f1dd1e48d7779818d244eb25f3d", "reftest" ], + "css/css-grid/alignment/grid-gutters-013.html": [ + "e72814725d2cb90fba6f3bd4d1e8370f37382fbb", + "reftest" + ], "css/css-grid/alignment/grid-row-axis-alignment-positioned-items-001.html": [ "e350f972357cfdc9559c5a86116e538d87c9ce61", "testharness" @@ -548911,8 +549083,8 @@ "c415eaaa67a2bc9a4b621700049eb0c0b60ec0a3", "testharness" ], - "css/css-masking/inheritance.html": [ - "34f75859ee88833ed39a56bb6c443cd60586e1b5", + "css/css-masking/inheritance.sub.html": [ + "95424204d5094bb1cbcd49e32f5e38c28d86d76f", "testharness" ], "css/css-masking/mask-image/mask-image-url-image-hash.html": [ @@ -585035,6 +585207,14 @@ "cf54aabe9936b3963e7343d566d957633fc26c69", "reftest" ], + "css/vendor-imports/mozilla/mozilla-central-reftests/flexbox/flexbox-dyn-resize-001-ref.html": [ + "5e5561cadf2ddbd6dfd2c7b4819f146f61be006b", + "support" + ], + "css/vendor-imports/mozilla/mozilla-central-reftests/flexbox/flexbox-dyn-resize-001.html": [ + "d64c4bdf28ecb783af4f342d515dcf63134602c6", + "reftest" + ], "css/vendor-imports/mozilla/mozilla-central-reftests/flexbox/flexbox-flex-basis-content-001-ref.html": [ "b5377110201d1de21a966c8a7f1a7d60dfff4126", "support" @@ -585876,7 +586056,7 @@ "reftest" ], "css/vendor-imports/mozilla/mozilla-central-reftests/flexbox/reftest.list": [ - "df226fa8df7801a7bbfe8807e512e678d13bf0fa", + "5bb3b650139c3293cb7d782d47af7dbff9bc3ad6", "support" ], "css/vendor-imports/mozilla/mozilla-central-reftests/flexbox/support/Ahem.ttf": [ @@ -619084,7 +619264,7 @@ "support" ], "interfaces/screen-capture.idl": [ - "668f4588ba2a24a909dc7f44b24628c56631296d", + "b79d09d19dced9e3b77e791e2d543fc9f44742ee", "support" ], "interfaces/screen-orientation.idl": [ @@ -619116,7 +619296,7 @@ "support" ], "interfaces/speech-api.idl": [ - "8e998df5bc3fa41d728b5c79d592746701bc3754", + "0b5c866b35c28d8e10261205fb6cbaa6962e480a", "support" ], "interfaces/storage.idl": [ @@ -619236,7 +619416,7 @@ "support" ], "intersection-observer/bounding-box.html": [ - "69052b11ce6c40c6a56fe2b723c70c49ddc36dd9", + "50f33f0443bb70e64bec2e2fcc930fa2b4118ed6", "testharness" ], "intersection-observer/client-rect.html": [ @@ -619351,6 +619531,10 @@ "d049c70919e129fa6c335e8601f6ce6a6cd73a9d", "testharness" ], + "intersection-observer/target-in-different-window.html": [ + "cf8fe4e6ec9e6b33df2d61b6219a1b2d4bb74c79", + "testharness" + ], "intersection-observer/text-target.html": [ "13dc3abea2d8b0438ac76e9da974718778bcbb12", "testharness" @@ -619528,7 +619712,7 @@ "support" ], "lint.whitelist": [ - "46c2550e72884c3f060b0fc7355f44562d2803d4", + "9f5693fcc2b9ad790ca7d502d998a1b71701b717", "support" ], "longtask-timing/META.yml": [ @@ -644152,7 +644336,7 @@ "testharness" ], "service-workers/service-worker/navigation-redirect.https.html": [ - "b6281b9e6c30540aae97c31454e4a2a5ac2c62b9", + "6f03fd8f2f0db54f4895d284a2ced78723d9965c", "testharness" ], "service-workers/service-worker/navigation-timing.https.html": [ @@ -644948,7 +645132,7 @@ "support" ], "service-workers/service-worker/resources/navigation-redirect-other-origin.html": [ - "0d2825f31093f8959b45712eff247a0a21c7c8cd", + "d82571d1a3c71e23274009d147e410b10fe8d245", "support" ], "service-workers/service-worker/resources/navigation-redirect-out-scope.py": [ @@ -645100,7 +645284,7 @@ "support" ], "service-workers/service-worker/resources/redirect-worker.js": [ - "bf0a3a8d9e0486f896e635e478dcd623dda987c0", + "0c5bc3bd9aa5bff83df74ce5e0a8a244f21a85a7", "support" ], "service-workers/service-worker/resources/redirect.py": [ @@ -646280,7 +646464,15 @@ "testharness" ], "speech-api/SpeechSynthesis-speak-without-activation-fails.tentative.html": [ - "acf0d7d575b5dc7f9b348d82b056aa90089b6639", + "1b86552a1cbd8dabaf8b50f928823e743e4b46cb", + "testharness" + ], + "speech-api/SpeechSynthesisErrorEvent-constructor.html": [ + "61e179cca47b70d001e5e081e87166ec1363714a", + "testharness" + ], + "speech-api/SpeechSynthesisEvent-constructor.html": [ + "47a37d25d9723cadcb9da2d778481fd9561c37aa", "testharness" ], "speech-api/SpeechSynthesisUtterance-basics.https.html": [ @@ -651324,7 +651516,7 @@ "support" ], "tools/manifest/sourcefile.py": [ - "9be0d8966ece1bf56fd93e3fd606ac08c4bb1a76", + "1f08088eb4666158b5fbece0c2727a9f41b7d907", "support" ], "tools/manifest/tests/__init__.py": [ @@ -651344,7 +651536,7 @@ "support" ], "tools/manifest/tests/test_sourcefile.py": [ - "57a175cae913a273c6ba4ebbcc13dd47571e4970", + "ad59055de73f5f8801c53095fe16faececf4fc97", "support" ], "tools/manifest/update.py": [ @@ -656548,7 +656740,7 @@ "support" ], "tools/wptserve/tests/functional/base.py": [ - "741ab0bcb745753f72f2e26e37258f877caae513", + "e49c8287c5985aa5ebbed04ef3070bc785831733", "support" ], "tools/wptserve/tests/functional/docroot/document.txt": [ @@ -656668,7 +656860,7 @@ "support" ], "tools/wptserve/tests/functional/test_handlers.py": [ - "759a096b79957079429ae387186d6e7891651ecf", + "7ac410abfee2d0a700f9f39bc466cedffbb4780f", "support" ], "tools/wptserve/tests/functional/test_input_file.py": [ @@ -656676,11 +656868,11 @@ "support" ], "tools/wptserve/tests/functional/test_pipes.py": [ - "7739af5e26e17c7b7930a612816151772f3f5cc0", + "83b2c621641ca17b670eb5a8c08b38f8d37cc2a7", "support" ], "tools/wptserve/tests/functional/test_request.py": [ - "983539260a5215cab779e76b256f678894f654f3", + "096c0535b9ae79a9782be097545a51e526a29106", "support" ], "tools/wptserve/tests/functional/test_response.py": [ @@ -656724,7 +656916,7 @@ "support" ], "tools/wptserve/wptserve/pipes.py": [ - "33a43e1f06b9835a2acf9be78b38a765cc9fdb60", + "ad96f591a3a8c8b7e8d13a4ad95a1aae500f66da", "support" ], "tools/wptserve/wptserve/ranges.py": [ @@ -656732,11 +656924,11 @@ "support" ], "tools/wptserve/wptserve/request.py": [ - "233ff151c28e482f1087a853e385ab2f9c819276", + "cb575ccdba4514a456c0cbf73904bb63c12fd7ff", "support" ], "tools/wptserve/wptserve/response.py": [ - "483265bf084666069c21dd91310a005d2162268b", + "44299cc994ef43ebe72053e1444f5af7cd7f9598", "support" ], "tools/wptserve/wptserve/router.py": [ @@ -661408,7 +661600,7 @@ "support" ], "webdriver/tests/perform_actions/key.py": [ - "2b3414c5ebfd62955860de540b4614471efbe8ad", + "cbfb5bcef43d52bb34faa515e7c24182e808cfa9", "wdspec" ], "webdriver/tests/perform_actions/key_events.py": [ @@ -661416,7 +661608,7 @@ "wdspec" ], "webdriver/tests/perform_actions/key_modifiers.py": [ - "55dc9280c6267172a96a4f3c02f2503aa0c22500", + "e8ea30dd3d7d0be7ceddab672554fd871457bf7a", "wdspec" ], "webdriver/tests/perform_actions/key_shortcuts.py": [ @@ -662275,8 +662467,12 @@ "974ed0c76cfafb788e865c0b1c71fa19007c55b9", "testharness" ], + "webrtc/RTCIceTransport-extension-helper.js": [ + "659ec59b8df2847e7e2a3c513d3d6fd01027f16d", + "support" + ], "webrtc/RTCIceTransport-extension.https.html": [ - "9c6cec7e1e4994ee58f6822d77048eca8e8af569", + "5adee9fbe61eb9a8f7235b7faa6670eaea45cc89", "testharness" ], "webrtc/RTCIceTransport.html": [ @@ -662444,15 +662640,15 @@ "testharness" ], "webrtc/RTCQuicStream.https.html": [ - "1e08016d75af57307d922b9876605e8152f92768", + "33025451b252e1bdf2491fa118e072f4b8711d12", "testharness" ], "webrtc/RTCQuicTransport-helper.js": [ - "50d9e6666a2d3bf8b3128f94b3c902579fabc0f5", + "3ea19d7a78e4a3788e97d0fa537d51d4b9e6b4fc", "support" ], "webrtc/RTCQuicTransport.https.html": [ - "703f424a63851996b3708fe66caff63c7e0f5502", + "ec79bc228ad21de3a9ce3c2ee812a7d50e57571b", "testharness" ], "webrtc/RTCRtpCapabilities-helper.js": [ diff --git a/tests/wpt/metadata/css/css-flexbox/flex-minimum-height-flex-items-009.html.ini b/tests/wpt/metadata/css/css-flexbox/flex-minimum-height-flex-items-009.html.ini new file mode 100644 index 000000000000..c13515644a20 --- /dev/null +++ b/tests/wpt/metadata/css/css-flexbox/flex-minimum-height-flex-items-009.html.ini @@ -0,0 +1,7 @@ +[flex-minimum-height-flex-items-009.html] + [.container 2] + expected: FAIL + + [.container 1] + expected: FAIL + diff --git a/tests/wpt/metadata/css/css-text/i18n/ja/css-text-line-break-ja-cpm-normal.html.ini b/tests/wpt/metadata/css/css-text/i18n/ja/css-text-line-break-ja-cpm-normal.html.ini index 7cf9eb154536..b480ed7298a4 100644 --- a/tests/wpt/metadata/css/css-text/i18n/ja/css-text-line-break-ja-cpm-normal.html.ini +++ b/tests/wpt/metadata/css/css-text/i18n/ja/css-text-line-break-ja-cpm-normal.html.ini @@ -1,16 +1,4 @@ [css-text-line-break-ja-cpm-normal.html] - [203C DOUBLE EXCLAMATION MARK may NOT appear at line start if ja and normal] - expected: FAIL - - [2047 DOUBLE QUESTION MARK may NOT appear at line start if ja and normal] - expected: FAIL - - [2048 QUESTION EXCLAMATION MARK may NOT appear at line start if ja and normal] - expected: FAIL - - [2049 EXCLAMATION QUESTION MARK may NOT appear at line start if ja and normal] - expected: FAIL - [30FB KATAKANA MIDDLE DOT may NOT appear at line start if ja and normal] expected: if os == "linux": FAIL diff --git a/tests/wpt/metadata/css/css-text/i18n/ja/css-text-line-break-ja-hyphens-strict.html.ini b/tests/wpt/metadata/css/css-text/i18n/ja/css-text-line-break-ja-hyphens-strict.html.ini index d769457c57c3..166c50e4e648 100644 --- a/tests/wpt/metadata/css/css-text/i18n/ja/css-text-line-break-ja-hyphens-strict.html.ini +++ b/tests/wpt/metadata/css/css-text/i18n/ja/css-text-line-break-ja-hyphens-strict.html.ini @@ -3,3 +3,12 @@ expected: if os == "linux": FAIL + [2010 HYPHEN may NOT appear at line start if ja and strict] + expected: FAIL + + [30A0 KATAKANA-HIRAGANA DOUBLE HYPHEN may NOT appear at line start if ja and strict] + expected: FAIL + + [2013 EN DASH may NOT appear at line start if ja and strict] + expected: FAIL + diff --git a/tests/wpt/metadata/css/css-text/i18n/zh/css-text-line-break-zh-cpm-normal.html.ini b/tests/wpt/metadata/css/css-text/i18n/zh/css-text-line-break-zh-cpm-normal.html.ini index 169f8bdf10a8..27e695ead3c7 100644 --- a/tests/wpt/metadata/css/css-text/i18n/zh/css-text-line-break-zh-cpm-normal.html.ini +++ b/tests/wpt/metadata/css/css-text/i18n/zh/css-text-line-break-zh-cpm-normal.html.ini @@ -1,16 +1,4 @@ [css-text-line-break-zh-cpm-normal.html] - [203C DOUBLE EXCLAMATION MARK may NOT appear at line start if zh and normal] - expected: FAIL - - [2047 DOUBLE QUESTION MARK may NOT appear at line start if zh and normal] - expected: FAIL - - [2048 QUESTION EXCLAMATION MARK may NOT appear at line start if zh and normal] - expected: FAIL - - [2049 EXCLAMATION QUESTION MARK may NOT appear at line start if zh and normal] - expected: FAIL - [30FB KATAKANA MIDDLE DOT may NOT appear at line start if zh and normal] expected: if os == "linux": FAIL diff --git a/tests/wpt/metadata/css/css-transitions/properties-value-inherit-002.html.ini b/tests/wpt/metadata/css/css-transitions/properties-value-inherit-002.html.ini index a2e15ddcf051..b7a0697c20df 100644 --- a/tests/wpt/metadata/css/css-transitions/properties-value-inherit-002.html.ini +++ b/tests/wpt/metadata/css/css-transitions/properties-value-inherit-002.html.ini @@ -1,7 +1,6 @@ [properties-value-inherit-002.html] - expected: TIMEOUT [outline-width length(px) / values] - expected: TIMEOUT + expected: FAIL [border-left-width length(em) / values] expected: FAIL @@ -25,13 +24,13 @@ expected: FAIL [opacity number[0,1\](zero-to-one) / values] - expected: TIMEOUT + expected: FAIL [line-height number(integer) / values] expected: FAIL [outline-offset length(px) / values] - expected: TIMEOUT + expected: FAIL [font-size length(pt) / values] expected: FAIL @@ -40,7 +39,7 @@ expected: FAIL [vertical-align length(in) / values] - expected: TIMEOUT + expected: FAIL [max-height percentage(%) / values] expected: FAIL @@ -76,7 +75,7 @@ expected: FAIL [vertical-align percentage(%) / values] - expected: TIMEOUT + expected: FAIL [background-position length(in) / events] expected: FAIL @@ -100,10 +99,10 @@ expected: FAIL [vertical-align length(em) / values] - expected: TIMEOUT + expected: FAIL [clip rectangle(rectangle) / values] - expected: TIMEOUT + expected: FAIL [word-spacing length(em) / values] expected: FAIL @@ -127,7 +126,7 @@ expected: FAIL [outline-offset length(ex) / values] - expected: TIMEOUT + expected: FAIL [min-width length(cm) / values] expected: FAIL @@ -142,16 +141,16 @@ expected: FAIL [vertical-align length(pc) / values] - expected: TIMEOUT + expected: FAIL [vertical-align length(cm) / values] - expected: TIMEOUT + expected: FAIL [max-height length(ex) / values] expected: FAIL [vertical-align length(ex) / values] - expected: TIMEOUT + expected: FAIL [min-height percentage(%) / values] expected: FAIL @@ -160,7 +159,7 @@ expected: FAIL [outline-offset length(mm) / values] - expected: TIMEOUT + expected: FAIL [font-weight font-weight(keyword) / values] expected: FAIL @@ -169,7 +168,7 @@ expected: FAIL [outline-offset length(pt) / values] - expected: TIMEOUT + expected: FAIL [line-height length(mm) / values] expected: FAIL @@ -202,7 +201,7 @@ expected: FAIL [vertical-align length(pt) / values] - expected: TIMEOUT + expected: FAIL [border-left-color color(rgba) / values] expected: FAIL @@ -271,10 +270,10 @@ expected: FAIL [outline-offset length(in) / values] - expected: TIMEOUT + expected: FAIL [outline-width length(pt) / values] - expected: TIMEOUT + expected: FAIL [border-top-width length(pc) / values] expected: FAIL @@ -292,7 +291,7 @@ expected: FAIL [outline-width length(in) / values] - expected: TIMEOUT + expected: FAIL [word-spacing length(pt) / values] expected: FAIL @@ -304,7 +303,7 @@ expected: FAIL [outline-color color(rgba) / values] - expected: TIMEOUT + expected: FAIL [background-position length(ex) / events] expected: FAIL @@ -328,7 +327,7 @@ expected: FAIL [outline-width length(ex) / values] - expected: TIMEOUT + expected: FAIL [font-size length(pc) / values] expected: FAIL @@ -340,7 +339,7 @@ expected: FAIL [outline-width length(cm) / values] - expected: TIMEOUT + expected: FAIL [max-width percentage(%) / values] expected: FAIL @@ -355,19 +354,19 @@ expected: FAIL [outline-width length(mm) / values] - expected: TIMEOUT + expected: FAIL [border-left-width length(pc) / values] expected: FAIL [outline-width length(pc) / values] - expected: TIMEOUT + expected: FAIL [font-weight font-weight(numeric) / values] expected: FAIL [vertical-align length(px) / values] - expected: TIMEOUT + expected: FAIL [letter-spacing length(px) / values] expected: FAIL @@ -394,7 +393,7 @@ expected: FAIL [outline-width length(em) / values] - expected: TIMEOUT + expected: FAIL [border-right-width length(em) / values] expected: FAIL @@ -406,10 +405,10 @@ expected: FAIL [outline-offset length(em) / values] - expected: TIMEOUT + expected: FAIL [outline-offset length(cm) / values] - expected: TIMEOUT + expected: FAIL [background-position length(mm) / events] expected: FAIL @@ -421,13 +420,13 @@ expected: FAIL [z-index integer(integer) / values] - expected: TIMEOUT + expected: FAIL [border-left-width length(pt) / values] expected: FAIL [vertical-align length(mm) / values] - expected: TIMEOUT + expected: FAIL [border-bottom-width length(pc) / values] expected: FAIL @@ -448,7 +447,7 @@ expected: FAIL [outline-offset length(pc) / values] - expected: TIMEOUT + expected: FAIL [max-height length(pc) / values] expected: FAIL @@ -483,126 +482,30 @@ [word-spacing percentage(%) / values] expected: FAIL - [outline-width length(pc) / events] - expected: TIMEOUT - - [height percentage(%) / values] - expected: FAIL - - [vertical-align length(px) / events] - expected: TIMEOUT - - [padding-right length(em) / values] + [text-indent length(pc) / values] expected: FAIL - [outline-offset length(mm) / events] - expected: TIMEOUT - - [vertical-align length(in) / events] - expected: TIMEOUT - - [padding-left length(px) / values] + [text-indent length(ex) / values] expected: FAIL - [vertical-align length(em) / events] - expected: TIMEOUT - - [vertical-align length(cm) / events] - expected: TIMEOUT - - [outline-offset length(cm) / events] - expected: TIMEOUT - - [vertical-align length(mm) / events] - expected: TIMEOUT - - [outline-offset length(em) / events] - expected: TIMEOUT - - [z-index integer(integer) / events] - expected: TIMEOUT - - [vertical-align length(ex) / events] - expected: TIMEOUT - - [outline-width length(em) / events] - expected: TIMEOUT - - [visibility visibility(keyword) / events] - expected: TIMEOUT - - [width length(pc) / values] + [text-indent length(px) / values] expected: FAIL - [opacity number[0,1\](zero-to-one) / events] - expected: TIMEOUT - - [margin-bottom length(px) / values] + [text-indent length(mm) / values] expected: FAIL - [visibility visibility(keyword) / values] - expected: TIMEOUT - - [width length(pt) / values] + [text-indent length(cm) / values] expected: FAIL - [outline-width length(cm) / events] - expected: TIMEOUT - - [clip rectangle(rectangle) / events] - expected: TIMEOUT - - [outline-width length(ex) / events] - expected: TIMEOUT - - [outline-width length(mm) / events] - expected: TIMEOUT - - [width length(mm) / values] + [text-shadow shadow(shadow) / values] expected: FAIL - [vertical-align percentage(%) / events] - expected: TIMEOUT - - [outline-width length(pt) / events] - expected: TIMEOUT - - [outline-color color(rgba) / events] - expected: TIMEOUT - - [outline-width length(in) / events] - expected: TIMEOUT - - [outline-offset length(ex) / events] - expected: TIMEOUT - - [padding-top length(mm) / values] + [text-indent length(in) / values] expected: FAIL - [vertical-align length(pc) / events] - expected: TIMEOUT - - [vertical-align length(pt) / events] - expected: TIMEOUT - - [width length(ex) / values] + [text-indent length(em) / values] expected: FAIL - [top length(ex) / values] + [text-indent percentage(%) / values] expected: FAIL - [outline-offset length(pt) / events] - expected: TIMEOUT - - [outline-offset length(px) / events] - expected: TIMEOUT - - [outline-offset length(in) / events] - expected: TIMEOUT - - [outline-width length(px) / events] - expected: TIMEOUT - - [outline-offset length(pc) / events] - expected: TIMEOUT - diff --git a/tests/wpt/metadata/css/css-transitions/transitions-animatable-properties-01.html.ini b/tests/wpt/metadata/css/css-transitions/transitions-animatable-properties-01.html.ini index d56a003324d5..2bd915cc0b92 100644 --- a/tests/wpt/metadata/css/css-transitions/transitions-animatable-properties-01.html.ini +++ b/tests/wpt/metadata/css/css-transitions/transitions-animatable-properties-01.html.ini @@ -47,66 +47,33 @@ [outline-width end] expected: FAIL - [max-height end] - expected: FAIL - - [height end] - expected: FAIL - - [line-height end] - expected: FAIL - - [min-height end] - expected: FAIL - - [bottom end] - expected: FAIL - - [clip end] - expected: FAIL - [font-weight end] expected: FAIL - [border-left-color end] - expected: FAIL - - [border-top-width end] - expected: FAIL - - [margin-right intermediate] - expected: FAIL - - [border-left-width end] - expected: FAIL - - [border-bottom-width end] - expected: FAIL - - [letter-spacing end] + [min-width intermediate] expected: FAIL - [margin-bottom end] + [clip intermediate] expected: FAIL - [border-right-width end] + [border-right-width intermediate] expected: FAIL - [border-right-color end] + [border-left-width intermediate] expected: FAIL - [border-top-color end] + [border-top-width intermediate] expected: FAIL - [color end] + [max-width intermediate] expected: FAIL - [border-spacing end] + [border-spacing intermediate] expected: FAIL - [visibility end] + [left intermediate] expected: FAIL - [left end] + [bottom intermediate] expected: FAIL diff --git a/tests/wpt/metadata/encoding/single-byte-decoder.html.ini b/tests/wpt/metadata/encoding/single-byte-decoder.html.ini index d0509d2ede5a..32626f90fad2 100644 --- a/tests/wpt/metadata/encoding/single-byte-decoder.html.ini +++ b/tests/wpt/metadata/encoding/single-byte-decoder.html.ini @@ -2,7 +2,7 @@ type: testharness [single-byte-decoder.html?document] - expected: TIMEOUT + expected: CRASH [windows-1254: iso_8859-9 (document.characterSet and document.inputEncoding)] expected: FAIL diff --git a/tests/wpt/metadata/eventsource/format-field-id-2.htm.ini b/tests/wpt/metadata/eventsource/format-field-id-2.htm.ini deleted file mode 100644 index f917c63e1b70..000000000000 --- a/tests/wpt/metadata/eventsource/format-field-id-2.htm.ini +++ /dev/null @@ -1,5 +0,0 @@ -[format-field-id-2.htm] - expected: TIMEOUT - [EventSource: Last-Event-ID (2)] - expected: TIMEOUT - diff --git a/tests/wpt/metadata/eventsource/format-field-id.htm.ini b/tests/wpt/metadata/eventsource/format-field-id.htm.ini deleted file mode 100644 index 38a0c7e29165..000000000000 --- a/tests/wpt/metadata/eventsource/format-field-id.htm.ini +++ /dev/null @@ -1,5 +0,0 @@ -[format-field-id.htm] - expected: TIMEOUT - [EventSource: Last-Event-ID] - expected: TIMEOUT - diff --git a/tests/wpt/metadata/html/browsers/history/the-history-interface/traverse_the_history_5.html.ini b/tests/wpt/metadata/html/browsers/history/the-history-interface/traverse_the_history_5.html.ini deleted file mode 100644 index dc2e45516deb..000000000000 --- a/tests/wpt/metadata/html/browsers/history/the-history-interface/traverse_the_history_5.html.ini +++ /dev/null @@ -1,4 +0,0 @@ -[traverse_the_history_5.html] - [Multiple history traversals, last would be aborted] - expected: FAIL - diff --git a/tests/wpt/metadata/html/browsers/history/the-location-interface/location-protocol-setter-non-broken-weird.html.ini b/tests/wpt/metadata/html/browsers/history/the-location-interface/location-protocol-setter-non-broken-weird.html.ini new file mode 100644 index 000000000000..a30c51097ab4 --- /dev/null +++ b/tests/wpt/metadata/html/browsers/history/the-location-interface/location-protocol-setter-non-broken-weird.html.ini @@ -0,0 +1,16 @@ +[location-protocol-setter-non-broken-weird.html] + [Set location.protocol to data] + expected: FAIL + + [Set location.protocol to ftp] + expected: FAIL + + [Set location.protocol to gopher] + expected: FAIL + + [Set location.protocol to x] + expected: FAIL + + [Set location.protocol to http+x] + expected: FAIL + diff --git a/tests/wpt/metadata/html/semantics/embedded-content/image-maps/image-map-processing-model/hash-name-reference.html.ini b/tests/wpt/metadata/html/semantics/embedded-content/image-maps/image-map-processing-model/hash-name-reference.html.ini index 1de3f8d68b28..6b0817b6c569 100644 --- a/tests/wpt/metadata/html/semantics/embedded-content/image-maps/image-map-processing-model/hash-name-reference.html.ini +++ b/tests/wpt/metadata/html/semantics/embedded-content/image-maps/image-map-processing-model/hash-name-reference.html.ini @@ -172,3 +172,63 @@ [XHTML img usemap="http://example.org/#garbage-before-hash-id"] expected: FAIL + [XHTML img usemap="#percent-escape-id-%41"] + expected: FAIL + + [XHTML img usemap="#different-CASE-id"] + expected: FAIL + + [HTML (quirks) IMG usemap="#"] + expected: FAIL + + [XHTML img usemap="hash-last#"] + expected: FAIL + + [HTML (quirks) IMG usemap="no-hash-id"] + expected: FAIL + + [HTML (quirks) IMG usemap="no-hash-name"] + expected: FAIL + + [HTML (quirks) IMG usemap="#no-such-map"] + expected: FAIL + + [HTML (quirks) IMG usemap="hash-last#"] + expected: FAIL + + [XHTML img usemap="no-hash-id"] + expected: FAIL + + [HTML (quirks) IMG usemap="#different-CASE-name"] + expected: FAIL + + [XHTML img usemap="#no-such-map"] + expected: FAIL + + [XHTML img usemap="#percent-escape-name-%41"] + expected: FAIL + + [XHTML img usemap="#"] + expected: FAIL + + [HTML (quirks) IMG usemap="#different-CASE-id"] + expected: FAIL + + [XHTML img usemap="#different-CASE-name"] + expected: FAIL + + [XHTML img usemap=""] + expected: FAIL + + [HTML (quirks) IMG usemap=""] + expected: FAIL + + [HTML (quirks) IMG usemap="#percent-escape-name-%41"] + expected: FAIL + + [HTML (quirks) IMG usemap="#percent-escape-id-%41"] + expected: FAIL + + [XHTML img usemap="no-hash-name"] + expected: FAIL + diff --git a/tests/wpt/metadata/html/semantics/embedded-content/the-img-element/environment-changes/viewport-change.html.ini b/tests/wpt/metadata/html/semantics/embedded-content/the-img-element/environment-changes/viewport-change.html.ini index 772148dc71fa..bed3bccce25f 100644 --- a/tests/wpt/metadata/html/semantics/embedded-content/the-img-element/environment-changes/viewport-change.html.ini +++ b/tests/wpt/metadata/html/semantics/embedded-content/the-img-element/environment-changes/viewport-change.html.ini @@ -5,7 +5,7 @@ expected: TIMEOUT [picture: source (max-width:500px) valid image, img valid image, resize to wide] - expected: FAIL + expected: TIMEOUT [picture: source (max-width:500px) valid image, img broken image, resize to narrow] expected: TIMEOUT diff --git a/tests/wpt/metadata/html/webappapis/dynamic-markup-insertion/opening-the-input-stream/aborted-parser.window.js.ini b/tests/wpt/metadata/html/webappapis/dynamic-markup-insertion/opening-the-input-stream/aborted-parser.window.js.ini index ce482a60da89..c6d49957c4a3 100644 --- a/tests/wpt/metadata/html/webappapis/dynamic-markup-insertion/opening-the-input-stream/aborted-parser.window.js.ini +++ b/tests/wpt/metadata/html/webappapis/dynamic-markup-insertion/opening-the-input-stream/aborted-parser.window.js.ini @@ -2,6 +2,3 @@ [document.open() after parser is aborted] expected: FAIL - [async document.open() after parser is aborted] - expected: FAIL - diff --git a/tests/wpt/metadata/url/urlencoded-parser.any.js.ini b/tests/wpt/metadata/url/urlencoded-parser.any.js.ini index 110786c5f37a..f3a2aaf504d1 100644 --- a/tests/wpt/metadata/url/urlencoded-parser.any.js.ini +++ b/tests/wpt/metadata/url/urlencoded-parser.any.js.ini @@ -8,10 +8,10 @@ [response.formData() with input: a&b&c] expected: FAIL - [response.formData() with input: _charset_=windows-1252&test=%C2x] + [request.formData() with input: a&b&c] expected: FAIL - [response.formData() with input: a=b&c=d] + [response.formData() with input: a=b&c=d&] expected: FAIL @@ -19,18 +19,15 @@ [request.formData() with input: a&b&c] expected: FAIL - [request.formData() with input: _charset_=windows-1252&test=%C2x] - expected: FAIL - [response.formData() with input: a&b&c] expected: FAIL [response.formData() with input: a=b&c=d&] expected: FAIL - [request.formData() with input: a=b&c=d] + [response.formData() with input: &&&a=b&&&&c=d&] expected: FAIL - [response.formData() with input: _charset_=windows-1252&test=%C2x] + [request.formData() with input: a=b&c=d&] 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 dfc61af48f01..66bd350083b0 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,2 +1,73 @@ [realtimeanalyser-fft-scaling.html] - expected: TIMEOUT + [X 2048-point FFT peak position is not equal to 64. Got 0.] + expected: FAIL + + [X 128-point FFT peak position is not equal to 4. Got 0.] + expected: FAIL + + [X 32768-point FFT peak value in dBFS is not greater than or equal to -13.56. Got -1000.] + expected: FAIL + + [X 64-point FFT peak value in dBFS is not greater than or equal to -13.56. Got -1000.] + expected: FAIL + + [X 4096-point FFT peak value in dBFS is not greater than or equal to -13.56. Got -1000.] + expected: FAIL + + [< [FFT scaling tests\] 22 out of 22 assertions were failed.] + expected: FAIL + + [X 128-point FFT peak value in dBFS is not greater than or equal to -13.56. Got -1000.] + expected: FAIL + + [X 8192-point FFT peak position is not equal to 256. Got 0.] + expected: FAIL + + [X 32-point FFT peak value in dBFS is not greater than or equal to -14.43. Got -1000.] + expected: FAIL + + [X 16384-point FFT peak value in dBFS is not greater than or equal to -13.56. Got -1000.] + expected: FAIL + + [X 256-point FFT peak value in dBFS is not greater than or equal to -13.56. Got -1000.] + expected: FAIL + + [X 8192-point FFT peak value in dBFS is not greater than or equal to -13.56. Got -1000.] + expected: FAIL + + [X 1024-point FFT peak position is not equal to 32. Got 0.] + expected: FAIL + + [X 64-point FFT peak position is not equal to 2. Got 0.] + expected: FAIL + + [X 512-point FFT peak value in dBFS is not greater than or equal to -13.56. Got -1000.] + expected: FAIL + + [X 32-point FFT peak position is not equal to 1. Got 0.] + expected: FAIL + + [X 16384-point FFT peak position is not equal to 512. Got 0.] + expected: FAIL + + [X 1024-point FFT peak value in dBFS is not greater than or equal to -13.56. Got -1000.] + expected: FAIL + + [X 2048-point FFT peak value in dBFS is not greater than or equal to -13.56. Got -1000.] + expected: FAIL + + [X 32768-point FFT peak position is not equal to 1024. Got 0.] + expected: FAIL + + [X 4096-point FFT peak position is not equal to 128. Got 0.] + expected: FAIL + + [X 512-point FFT peak position is not equal to 16. Got 0.] + expected: FAIL + + [X 256-point FFT peak position is not equal to 8. Got 0.] + expected: FAIL + + [# AUDIT TASK RUNNER FINISHED: 1 out of 1 tasks were failed.] + expected: FAIL + diff --git a/tests/wpt/metadata/workers/baseurl/alpha/import-in-moduleworker.html.ini b/tests/wpt/metadata/workers/baseurl/alpha/import-in-moduleworker.html.ini index bf2a1d61bab8..bfd4d6dd2d69 100644 --- a/tests/wpt/metadata/workers/baseurl/alpha/import-in-moduleworker.html.ini +++ b/tests/wpt/metadata/workers/baseurl/alpha/import-in-moduleworker.html.ini @@ -1,4 +1,5 @@ [import-in-moduleworker.html] + expected: ERROR [Base URL in module dedicated workers: import] expected: FAIL diff --git a/tests/wpt/mozilla/meta/css/transition_calc_implicit.html.ini b/tests/wpt/mozilla/meta/css/transition_calc_implicit.html.ini new file mode 100644 index 000000000000..dbea4f293ad0 --- /dev/null +++ b/tests/wpt/mozilla/meta/css/transition_calc_implicit.html.ini @@ -0,0 +1,2 @@ +[transition_calc_implicit.html] + expected: TIMEOUT diff --git a/tests/wpt/web-platform-tests/README.md b/tests/wpt/web-platform-tests/README.md index 684f4617f689..6f9436bc3e42 100644 --- a/tests/wpt/web-platform-tests/README.md +++ b/tests/wpt/web-platform-tests/README.md @@ -432,11 +432,11 @@ upstream review. Search filters to find things to review: -* [Open PRs (excluding vendor exports)](https://github.com/web-platform-tests/wpt/pulls?utf8=%E2%9C%93&q=is%3Apr+is%3Aopen+-label%3A%22mozilla%3Agecko-sync%22+-label%3A%22chromium-export%22+-label%3A%22webkit-export%22+-label%3A%22servo-export%22) -* [Reviewed but still open PRs (excluding vendor exports)](https://github.com/web-platform-tests/wpt/pulls?utf8=%E2%9C%93&q=is%3Apr+is%3Aopen+-label%3Amozilla%3Agecko-sync+-label%3Achromium-export+-label%3Awebkit-export+-label%3Aservo-export+review%3Aapproved+-label%3A%22do+not+merge+yet%22+-label%3A%22status%3Aneeds-spec-decision%22) (Merge? Something left to fix? Ping other reviewer?) +* [Open PRs (excluding vendor exports)](https://github.com/web-platform-tests/wpt/pulls?utf8=%E2%9C%93&q=is%3Apr+is%3Aopen+-label%3A%22mozilla%3Agecko-sync%22+-label%3A%22chromium-export%22+-label%3A%22webkit-export%22+-label%3A%22servo-export%22+-label%3Avendor-imports) +* [Reviewed but still open PRs (excluding vendor exports)](https://github.com/web-platform-tests/wpt/pulls?utf8=%E2%9C%93&q=is%3Apr+is%3Aopen+-label%3Amozilla%3Agecko-sync+-label%3Achromium-export+-label%3Awebkit-export+-label%3Aservo-export+-label%3Avendor-imports+review%3Aapproved+-label%3A%22do+not+merge+yet%22+-label%3A%22status%3Aneeds-spec-decision%22) (Merge? Something left to fix? Ping other reviewer?) * [Open PRs without reviewers](https://github.com/web-platform-tests/wpt/pulls?q=is%3Apr+is%3Aopen+label%3Astatus%3Aneeds-reviewers) -* [Open PRs with label `infra` (excluding vendor exports)](https://github.com/web-platform-tests/wpt/pulls?utf8=%E2%9C%93&q=is%3Apr+is%3Aopen+label%3Ainfra+-label%3A%22mozilla%3Agecko-sync%22+-label%3A%22chromium-export%22+-label%3A%22webkit-export%22+-label%3A%22servo-export%22) -* [Open PRs with label `docs` (excluding vendor exports)](https://github.com/web-platform-tests/wpt/pulls?utf8=%E2%9C%93&q=is%3Apr+is%3Aopen+label%3Adocs+-label%3A%22mozilla%3Agecko-sync%22+-label%3A%22chromium-export%22+-label%3A%22webkit-export%22+-label%3A%22servo-export%22) +* [Open PRs with label `infra` (excluding vendor exports)](https://github.com/web-platform-tests/wpt/pulls?utf8=%E2%9C%93&q=is%3Apr+is%3Aopen+label%3Ainfra+-label%3A%22mozilla%3Agecko-sync%22+-label%3A%22chromium-export%22+-label%3A%22webkit-export%22+-label%3A%22servo-export%22+-label%3Avendor-imports) +* [Open PRs with label `docs` (excluding vendor exports)](https://github.com/web-platform-tests/wpt/pulls?utf8=%E2%9C%93&q=is%3Apr+is%3Aopen+label%3Adocs+-label%3A%22mozilla%3Agecko-sync%22+-label%3A%22chromium-export%22+-label%3A%22webkit-export%22+-label%3A%22servo-export%22+-label%3Avendor-imports) Getting Involved ================ diff --git a/tests/wpt/web-platform-tests/accname/name_test_case_659-manual.html b/tests/wpt/web-platform-tests/accname/name_test_case_659-manual.html index 1332c30c4929..abf5e85e16ba 100644 --- a/tests/wpt/web-platform-tests/accname/name_test_case_659-manual.html +++ b/tests/wpt/web-platform-tests/accname/name_test_case_659-manual.html @@ -66,7 +66,7 @@ label:after { content: "baz"; }
- +
diff --git a/tests/wpt/web-platform-tests/accname/name_test_case_660-manual.html b/tests/wpt/web-platform-tests/accname/name_test_case_660-manual.html index 66b36635d940..0c18218707b0 100644 --- a/tests/wpt/web-platform-tests/accname/name_test_case_660-manual.html +++ b/tests/wpt/web-platform-tests/accname/name_test_case_660-manual.html @@ -66,7 +66,7 @@ label:after { content: "baz"; }
- +
diff --git a/tests/wpt/web-platform-tests/background-fetch/fetch.https.window.js b/tests/wpt/web-platform-tests/background-fetch/fetch.https.window.js index 98ecdfa3933c..b8b1ff0983cd 100644 --- a/tests/wpt/web-platform-tests/background-fetch/fetch.https.window.js +++ b/tests/wpt/web-platform-tests/background-fetch/fetch.https.window.js @@ -67,6 +67,21 @@ backgroundFetchTest(async (test, backgroundFetch) => { }, 'IDs must be unique among active Background Fetch registrations'); +backgroundFetchTest(async (test, backgroundFetch) => { + const registrationId = uniqueId(); + const registration = + await backgroundFetch.fetch(registrationId, ''); + + assert_equals(registration.id, registrationId); + + const {type, eventRegistration, results} = await getMessageFromServiceWorker(); + + assert_equals('backgroundfetchsuccess', type); + assert_equals(eventRegistration.result, 'success'); + assert_equals(eventRegistration.failureReason, ''); + +}, 'Empty URL is OK.'); + backgroundFetchTest(async (test, backgroundFetch) => { const registrationId = uniqueId(); const registration = @@ -190,4 +205,20 @@ backgroundFetchTest(async (test, backgroundFetch) => { assert_equals(eventRegistration.result, 'failure'); assert_equals(eventRegistration.failureReason, 'bad-status'); -}, 'Using Background Fetch to fetch a non-existent resource should fail.'); \ No newline at end of file +}, 'Using Background Fetch to fetch a non-existent resource should fail.'); + +backgroundFetchTest(async (test, backgroundFetch) => { + const registration = await backgroundFetch.fetch( + 'my-id', + ['https://example.com', 'http://example.com']); + + const {type, eventRegistration, results} = await getMessageFromServiceWorker(); + + assert_equals('backgroundfetchfail', type); + assert_equals(eventRegistration.failureReason, 'fetch-error'); + + assert_equals(results.length, 2); + assert_true(results[0].url.includes('https://example.com')); + assert_equals(results[1].url, ''); + +}, 'Fetches with mixed content should fail.'); diff --git a/tests/wpt/web-platform-tests/background-fetch/mixed-content-and-allowed-schemes.https.window.js b/tests/wpt/web-platform-tests/background-fetch/mixed-content-and-allowed-schemes.https.window.js index 9f24f1358181..05b32501228f 100644 --- a/tests/wpt/web-platform-tests/background-fetch/mixed-content-and-allowed-schemes.https.window.js +++ b/tests/wpt/web-platform-tests/background-fetch/mixed-content-and-allowed-schemes.https.window.js @@ -30,34 +30,6 @@ backgroundFetchTest((t, bgFetch) => { return bgFetch.fetch(uniqueId(), 'http://localhost'); }, 'localhost http: fetch should register ok'); -backgroundFetchTest((t, bgFetch) => { - return promise_rejects(t, new TypeError(), - bgFetch.fetch(uniqueId(), 'http://example.com')); -}, 'non-loopback http: fetch should reject'); - -backgroundFetchTest((t, bgFetch) => { - return promise_rejects(t, new TypeError(), - bgFetch.fetch(uniqueId(), 'http://192.0.2.0')); -}, 'non-loopback IPv4 http: fetch should reject'); - -backgroundFetchTest((t, bgFetch) => { - return promise_rejects(t, new TypeError(), - bgFetch.fetch(uniqueId(), 'http://[2001:db8::1]')); -}, 'non-loopback IPv6 http: fetch should reject'); - -backgroundFetchTest((t, bgFetch) => { - return promise_rejects(t, new TypeError(), - bgFetch.fetch(uniqueId(), ['https://example.com', - 'http://example.com'])); -}, 'https: and non-loopback http: fetch should reject'); - -backgroundFetchTest((t, bgFetch) => { - return promise_rejects(t, new TypeError(), - bgFetch.fetch(uniqueId(), ['http://example.com', - 'https://example.com'])); -}, 'non-loopback http: and https: fetch should reject'); - - backgroundFetchTest((t, bgFetch) => { return promise_rejects(t, new TypeError(), bgFetch.fetch(uniqueId(), 'wss:127.0.0.1')); diff --git a/tests/wpt/web-platform-tests/background-fetch/service_workers/sw.js b/tests/wpt/web-platform-tests/background-fetch/service_workers/sw.js index 43d778c08914..af4655dbad4e 100644 --- a/tests/wpt/web-platform-tests/background-fetch/service_workers/sw.js +++ b/tests/wpt/web-platform-tests/background-fetch/service_workers/sw.js @@ -27,5 +27,3 @@ function handleBackgroundFetchUpdateEvent(event) { self.addEventListener('backgroundfetchsuccess', handleBackgroundFetchUpdateEvent); self.addEventListener('backgroundfetchfail', handleBackgroundFetchUpdateEvent); - - diff --git a/tests/wpt/web-platform-tests/css/css-contain/contain-layout-button-001.html b/tests/wpt/web-platform-tests/css/css-contain/contain-layout-button-001.html new file mode 100644 index 000000000000..e8beef7c0edf --- /dev/null +++ b/tests/wpt/web-platform-tests/css/css-contain/contain-layout-button-001.html @@ -0,0 +1,20 @@ + + +CSS Containment Test: Layout containment on button + + + + + + +

This test passes if it has the same output as the reference. You see the word "before", a 10px green square at the bottom, and then the word "after".

+beforeafter diff --git a/tests/wpt/web-platform-tests/css/css-contain/contain-layout-flexbox-001.html b/tests/wpt/web-platform-tests/css/css-contain/contain-layout-flexbox-001.html new file mode 100644 index 000000000000..2b206edb57f4 --- /dev/null +++ b/tests/wpt/web-platform-tests/css/css-contain/contain-layout-flexbox-001.html @@ -0,0 +1,20 @@ + + +CSS Containment Test: Layout containment on flexbox container + + + + + + +

This test passes if it has the same output as the reference. You see the word "before", a 10px green square at the bottom, and then the word "after".

+before
f
after diff --git a/tests/wpt/web-platform-tests/css/css-contain/contain-layout-grid-001.html b/tests/wpt/web-platform-tests/css/css-contain/contain-layout-grid-001.html new file mode 100644 index 000000000000..a6bcc4dbc2ad --- /dev/null +++ b/tests/wpt/web-platform-tests/css/css-contain/contain-layout-grid-001.html @@ -0,0 +1,20 @@ + + +CSS Containment Test: Layout containment on grid container + + + + + + +

This test passes if it has the same output as the reference. You see the word "before", a 10px green square at the bottom, and then the word "after".

+before
g
after diff --git a/tests/wpt/web-platform-tests/css/css-contain/contain-paint-clip-019.html b/tests/wpt/web-platform-tests/css/css-contain/contain-paint-clip-019.html new file mode 100644 index 000000000000..bd761b8a523b --- /dev/null +++ b/tests/wpt/web-platform-tests/css/css-contain/contain-paint-clip-019.html @@ -0,0 +1,38 @@ + + + + +CSS Containment Test: 'contain: paint' and clipping prevents scrollbars + + + + + + + + + + +

Test passes if there there is a green square. No red and no scrollbars should be visible.

+ +
+
+
+
diff --git a/tests/wpt/web-platform-tests/css/css-contain/contain-size-button-001.html b/tests/wpt/web-platform-tests/css/css-contain/contain-size-button-001.html index 1e4965e9daf3..4b2ecd7b76e4 100644 --- a/tests/wpt/web-platform-tests/css/css-contain/contain-size-button-001.html +++ b/tests/wpt/web-platform-tests/css/css-contain/contain-size-button-001.html @@ -4,15 +4,16 @@ - + -

This test passes if it has the same output as the reference. You see the word "before", a 10px green square, and then the word "after".

+

This test passes if it has the same output as the reference. You see the word "before", a 10px green square at the top, and then the word "after".

beforeafter diff --git a/tests/wpt/web-platform-tests/css/css-contain/contain-size-flexbox-001.html b/tests/wpt/web-platform-tests/css/css-contain/contain-size-flexbox-001.html index 31e82f5d24c4..16ba62eda041 100644 --- a/tests/wpt/web-platform-tests/css/css-contain/contain-size-flexbox-001.html +++ b/tests/wpt/web-platform-tests/css/css-contain/contain-size-flexbox-001.html @@ -4,15 +4,16 @@ - + -

This test passes if it has the same output as the reference. You see the word "before", a 10px green square, and then the word "after".

+

This test passes if it has the same output as the reference. You see the word "before", a 10px green square at the top, and then the word "after".

before
flex
after diff --git a/tests/wpt/web-platform-tests/css/css-contain/contain-size-grid-001.html b/tests/wpt/web-platform-tests/css/css-contain/contain-size-grid-001.html index f67f0e118e00..4510c1e55368 100644 --- a/tests/wpt/web-platform-tests/css/css-contain/contain-size-grid-001.html +++ b/tests/wpt/web-platform-tests/css/css-contain/contain-size-grid-001.html @@ -4,15 +4,16 @@ - + -

This test passes if it has the same output as the reference. You see the word "before", a 10px green square, and then the word "after".

+

This test passes if it has the same output as the reference. You see the word "before", a 10px green square at the top, and then the word "after".

before
grid
after diff --git a/tests/wpt/web-platform-tests/css/css-contain/reference/contain-layout-button-001-ref.html b/tests/wpt/web-platform-tests/css/css-contain/reference/contain-layout-button-001-ref.html new file mode 100644 index 000000000000..11a784b213cb --- /dev/null +++ b/tests/wpt/web-platform-tests/css/css-contain/reference/contain-layout-button-001-ref.html @@ -0,0 +1,19 @@ + + +CSS Containment Test: Reference file + + + +

This test passes if it has the same output as the reference. You see the word "before", a 10px green square at the bottom, and then the word "after".

+beforeafter diff --git a/tests/wpt/web-platform-tests/css/css-contain/reference/contain-layout-flexbox-001-ref.html b/tests/wpt/web-platform-tests/css/css-contain/reference/contain-layout-flexbox-001-ref.html new file mode 100644 index 000000000000..832e4c72c2ce --- /dev/null +++ b/tests/wpt/web-platform-tests/css/css-contain/reference/contain-layout-flexbox-001-ref.html @@ -0,0 +1,16 @@ + + +CSS Containment Test: Reference file + + + +

This test passes if it has the same output as the reference. You see the word "before", a 10px green square at the bottom, and then the word "after".

+before
after diff --git a/tests/wpt/web-platform-tests/css/css-contain/reference/contain-layout-grid-001-ref.html b/tests/wpt/web-platform-tests/css/css-contain/reference/contain-layout-grid-001-ref.html new file mode 100644 index 000000000000..b5ff8e0e0dad --- /dev/null +++ b/tests/wpt/web-platform-tests/css/css-contain/reference/contain-layout-grid-001-ref.html @@ -0,0 +1,16 @@ + + +CSS Containment Test: Reference file + + + +

This test passes if it has the same output as the reference. You see the word "before", a 10px green square at the bottom, and then the word "after".

+before
after diff --git a/tests/wpt/web-platform-tests/css/css-contain/reference/contain-paint-clip-019-ref.html b/tests/wpt/web-platform-tests/css/css-contain/reference/contain-paint-clip-019-ref.html new file mode 100644 index 000000000000..2a529c12c48e --- /dev/null +++ b/tests/wpt/web-platform-tests/css/css-contain/reference/contain-paint-clip-019-ref.html @@ -0,0 +1,19 @@ + + + + +CSS Reference Test + + + + + +

Test passes if there there is a green square. No red and no scrollbars should be visible.

+ +
diff --git a/tests/wpt/web-platform-tests/css/css-contain/reference/contain-size-button-001-ref.html b/tests/wpt/web-platform-tests/css/css-contain/reference/contain-size-button-001-ref.html index 1cbaaccd1a07..eff64aa8e2ef 100644 --- a/tests/wpt/web-platform-tests/css/css-contain/reference/contain-size-button-001-ref.html +++ b/tests/wpt/web-platform-tests/css/css-contain/reference/contain-size-button-001-ref.html @@ -6,8 +6,12 @@ button { border: 5px solid green; padding: 0; + color: transparent; + width: 0; + height: 0; + font-size: 2em; } -

This test passes if it has the same output as the reference. You see the word "before", a 10px green square, and then the word "after".

-beforeafter +

This test passes if it has the same output as the reference. You see the word "before", a 10px green square at the top, and then the word "after".

+beforeafter diff --git a/tests/wpt/web-platform-tests/css/css-contain/reference/contain-size-flexbox-001-ref.html b/tests/wpt/web-platform-tests/css/css-contain/reference/contain-size-flexbox-001-ref.html index 85628b59c48f..70f408643007 100644 --- a/tests/wpt/web-platform-tests/css/css-contain/reference/contain-size-flexbox-001-ref.html +++ b/tests/wpt/web-platform-tests/css/css-contain/reference/contain-size-flexbox-001-ref.html @@ -6,8 +6,12 @@ div { display: inline-flex; border: 5px solid green; + color: transparent; + width: 0; + height: 0; + font-size: 2em; } -

This test passes if it has the same output as the reference. You see the word "before", a 10px green square, and then the word "after".

-before
after +

This test passes if it has the same output as the reference. You see the word "before", a 10px green square at the top, and then the word "after".

+before
f
after diff --git a/tests/wpt/web-platform-tests/css/css-contain/reference/contain-size-grid-001-ref.html b/tests/wpt/web-platform-tests/css/css-contain/reference/contain-size-grid-001-ref.html index d71636bd5f4a..cf4f80766509 100644 --- a/tests/wpt/web-platform-tests/css/css-contain/reference/contain-size-grid-001-ref.html +++ b/tests/wpt/web-platform-tests/css/css-contain/reference/contain-size-grid-001-ref.html @@ -6,8 +6,12 @@ div { display: inline-grid; border: 5px solid green; + color: transparent; + width: 0; + height: 0; + font-size: 2em; } -

This test passes if it has the same output as the reference. You see the word "before", a 10px green square, and then the word "after".

-before
after +

This test passes if it has the same output as the reference. You see the word "before", a 10px green square at the top, and then the word "after".

+before
g
after diff --git a/tests/wpt/web-platform-tests/css/css-flexbox/flex-minimum-height-flex-items-009.html b/tests/wpt/web-platform-tests/css/css-flexbox/flex-minimum-height-flex-items-009.html new file mode 100644 index 000000000000..718386af0206 --- /dev/null +++ b/tests/wpt/web-platform-tests/css/css-flexbox/flex-minimum-height-flex-items-009.html @@ -0,0 +1,62 @@ + +Tests correct handling of min-height: auto with dynamic changes + + + + + + + + + +

Green rectangle should be entirely within the black rectangle

+
+
+
+
+
+
+
+
+
+
+
+
+
+ +
+
+
+
+
+
+
+
+
+
+
+
diff --git a/tests/wpt/web-platform-tests/css/css-grid/alignment/grid-gutters-013.html b/tests/wpt/web-platform-tests/css/css-grid/alignment/grid-gutters-013.html new file mode 100644 index 000000000000..e72814725d2c --- /dev/null +++ b/tests/wpt/web-platform-tests/css/css-grid/alignment/grid-gutters-013.html @@ -0,0 +1,36 @@ + + +CSS Grid Layout Test: Gutters adjacent to collapsed tracks also collapse + + + + + + + + + +

Test passes if there is a filled green square and no red.

+
+
+
diff --git a/tests/wpt/web-platform-tests/css/css-masking/inheritance.html b/tests/wpt/web-platform-tests/css/css-masking/inheritance.sub.html similarity index 87% rename from tests/wpt/web-platform-tests/css/css-masking/inheritance.html rename to tests/wpt/web-platform-tests/css/css-masking/inheritance.sub.html index 34f75859ee88..95424204d509 100644 --- a/tests/wpt/web-platform-tests/css/css-masking/inheritance.html +++ b/tests/wpt/web-platform-tests/css/css-masking/inheritance.sub.html @@ -16,17 +16,17 @@ + + +
+
+
+
+
+
+
+
+ +
+
+
+
+
+
+
+
+ + diff --git a/tests/wpt/web-platform-tests/css/vendor-imports/mozilla/mozilla-central-reftests/flexbox/reftest.list b/tests/wpt/web-platform-tests/css/vendor-imports/mozilla/mozilla-central-reftests/flexbox/reftest.list index df226fa8df78..5bb3b650139c 100644 --- a/tests/wpt/web-platform-tests/css/vendor-imports/mozilla/mozilla-central-reftests/flexbox/reftest.list +++ b/tests/wpt/web-platform-tests/css/vendor-imports/mozilla/mozilla-central-reftests/flexbox/reftest.list @@ -108,6 +108,9 @@ == flexbox-column-row-gap-003.html flexbox-column-row-gap-003-ref.html == flexbox-column-row-gap-004.html flexbox-column-row-gap-004-ref.html +# Tests with dynamic changes that impact sizing: +== flexbox-dyn-resize-001.html flexbox-dyn-resize-001-ref.html + # Tests for "flex-basis: content" == flexbox-flex-basis-content-001a.html flexbox-flex-basis-content-001-ref.html == flexbox-flex-basis-content-001b.html flexbox-flex-basis-content-001-ref.html diff --git a/tests/wpt/web-platform-tests/interfaces/screen-capture.idl b/tests/wpt/web-platform-tests/interfaces/screen-capture.idl index 668f4588ba2a..b79d09d19dce 100644 --- a/tests/wpt/web-platform-tests/interfaces/screen-capture.idl +++ b/tests/wpt/web-platform-tests/interfaces/screen-capture.idl @@ -7,12 +7,24 @@ partial interface Navigator { Promise getDisplayMedia(optional MediaStreamConstraints constraints); }; +partial dictionary MediaTrackSupportedConstraints { + boolean displaySurface = true; + boolean logicalSurface = true; + boolean cursor = true; +}; + partial dictionary MediaTrackConstraintSet { ConstrainDOMString displaySurface; ConstrainBoolean logicalSurface; ConstrainDOMString cursor; }; +partial dictionary MediaTrackSettings { + DOMString displaySurface; + boolean logicalSurface; + DOMString cursor; +}; + enum DisplayCaptureSurfaceType { "monitor", "window", diff --git a/tests/wpt/web-platform-tests/interfaces/speech-api.idl b/tests/wpt/web-platform-tests/interfaces/speech-api.idl index 8e998df5bc3f..0b5c866b35c2 100644 --- a/tests/wpt/web-platform-tests/interfaces/speech-api.idl +++ b/tests/wpt/web-platform-tests/interfaces/speech-api.idl @@ -137,7 +137,8 @@ interface SpeechSynthesisUtterance : EventTarget { attribute EventHandler onboundary; }; -[Exposed=Window] +[Exposed=Window, + Constructor(DOMString type, SpeechSynthesisEventInit eventInitDict)] interface SpeechSynthesisEvent : Event { readonly attribute SpeechSynthesisUtterance utterance; readonly attribute unsigned long charIndex; @@ -145,6 +146,13 @@ interface SpeechSynthesisEvent : Event { readonly attribute DOMString name; }; +dictionary SpeechSynthesisEventInit : EventInit { + required SpeechSynthesisUtterance utterance; + unsigned long charIndex = 0; + float elapsedTime = 0; + DOMString name = ""; +}; + enum SpeechSynthesisErrorCode { "canceled", "interrupted", @@ -160,11 +168,16 @@ enum SpeechSynthesisErrorCode { "not-allowed", }; -[Exposed=Window] +[Exposed=Window, + Constructor(DOMString type, SpeechSynthesisErrorEventInit eventInitDict)] interface SpeechSynthesisErrorEvent : SpeechSynthesisEvent { readonly attribute SpeechSynthesisErrorCode error; }; +dictionary SpeechSynthesisErrorEventInit : SpeechSynthesisEventInit { + required SpeechSynthesisErrorCode error; +}; + [Exposed=Window] interface SpeechSynthesisVoice { readonly attribute DOMString voiceURI; diff --git a/tests/wpt/web-platform-tests/intersection-observer/bounding-box.html b/tests/wpt/web-platform-tests/intersection-observer/bounding-box.html index 69052b11ce6c..50f33f0443bb 100644 --- a/tests/wpt/web-platform-tests/intersection-observer/bounding-box.html +++ b/tests/wpt/web-platform-tests/intersection-observer/bounding-box.html @@ -13,7 +13,7 @@ overflow: visible; height: 200px; width: 160px; - border: 7px solid black; + border: 8px solid black; } #target { margin: 10px; @@ -50,12 +50,35 @@ var targetBounds = clientBounds(target); target.style.transform = "translateY(195px)"; runTestCycle(step1, "target.style.transform = 'translateY(195px)'"); - checkLastEntry(entries, 0, targetBounds.concat(0, 0, 0, 0, 8, 182, 8, 222, false)); + checkLastEntry(entries, 0, targetBounds.concat(0, 0, 0, 0, 8, 184, 8, 224, false)); } function step1() { + var targetBounds = clientBounds(target); + target.style.transform = "translateY(300px)"; + runTestCycle(step2, "target.style.transform = 'translateY(300px)'"); + checkLastEntry(entries, 1, targetBounds.concat(26, 146, 221, 224, 8, 184, 8, 224, true)); +} + +function step2() { var targetBounds = clientBounds(target); target.style.transform = ""; - checkLastEntry(entries, 1, targetBounds.concat(25, 145, 220, 222, 8, 182, 8, 222, true)); + target.style.zoom = "2"; + runTestCycle(step3, "target.style.zoom = 2"); + checkLastEntry(entries, 2, targetBounds.concat(0, 0, 0, 0, 8, 184, 8, 224, false)); } + +function step3() { + var targetBounds = clientBounds(target); + var intersectionWidth = ( + 176 // root width including border + -8 // root left border + -20 // target left margin * target zoom + ) / 2; // convert to target's zoom factor. + var intersectionHeight = (216 - 8 - 20) / 2; + var intersectionRect = [targetBounds[0], targetBounds[0] + intersectionWidth, + targetBounds[2], targetBounds[2] + intersectionHeight]; + checkLastEntry(entries, 3, targetBounds.concat(intersectionRect).concat(8, 184, 8, 224, true)); +} + diff --git a/tests/wpt/web-platform-tests/intersection-observer/target-in-different-window.html b/tests/wpt/web-platform-tests/intersection-observer/target-in-different-window.html new file mode 100644 index 000000000000..cf8fe4e6ec9e --- /dev/null +++ b/tests/wpt/web-platform-tests/intersection-observer/target-in-different-window.html @@ -0,0 +1,36 @@ + + + + + + diff --git a/tests/wpt/web-platform-tests/lint.whitelist b/tests/wpt/web-platform-tests/lint.whitelist index 46c2550e7288..9f5693fcc2b9 100644 --- a/tests/wpt/web-platform-tests/lint.whitelist +++ b/tests/wpt/web-platform-tests/lint.whitelist @@ -169,6 +169,7 @@ SET TIMEOUT: html/webappapis/scripting/events/event-handler-processing-algorithm SET TIMEOUT: html/webappapis/scripting/processing-model-2/* SET TIMEOUT: IndexedDB/* SET TIMEOUT: infrastructure/* +SET TIMEOUT: intersection-observer/target-in-different-window.html SET TIMEOUT: media-source/mediasource-util.js SET TIMEOUT: media-source/URL-createObjectURL-revoke.html SET TIMEOUT: mixed-content/generic/sanity-checker.js diff --git a/tests/wpt/web-platform-tests/service-workers/service-worker/navigation-redirect.https.html b/tests/wpt/web-platform-tests/service-workers/service-worker/navigation-redirect.https.html index b6281b9e6c30..6f03fd8f2f0d 100644 --- a/tests/wpt/web-platform-tests/service-workers/service-worker/navigation-redirect.https.html +++ b/tests/wpt/web-platform-tests/service-workers/service-worker/navigation-redirect.https.html @@ -1,6 +1,11 @@ Service Worker: Navigation redirection + + + + + @@ -76,36 +81,208 @@ assert_object_equals(urls, expected_urls, 'Intercepted URLs should match.'); } +// Checks |clients| returned from a worker. Only the client matching +// |expected_final_client_tag| should be found. Returns true if a client was +// found. Note that the final client is not necessarily found by this worker, +// if the client is cross-origin. +// +// |clients| is an object like: +// {x: {found: true, id: id1, url: url1}, b: {found: false}} +function check_clients(clients, + expected_id, + expected_url, + expected_final_client_tag, + worker_name) { + let found = false; + Object.keys(clients).forEach(key => { + const info = clients[key]; + if (info.found) { + assert_true(expected_final_client_tag, + `${worker_name} client tag exists`); + assert_equals(key, expected_final_client_tag, + `${worker_name} client tag matches`); + assert_equals(info.id, expected_id, `${worker_name} client id`); + assert_equals(info.url, expected_url, `${worker_name} client url`); + found = true; + } + }); + return found; +} + +function check_resulting_client_ids(infos, expected_infos, actual_ids, worker) { + assert_equals(infos.length, expected_infos.length, + `request length for ${worker}`); + for (var i = 0; i < infos.length; i++) { + const tag = expected_infos[i].resultingClientIdTag; + const url = expected_infos[i].url; + const actual_id = infos[i].resultingClientId; + const expected_id = actual_ids[tag]; + assert_equals(typeof(actual_id), 'string', + `resultingClientId for ${url} request to ${worker}`); + if (expected_id) { + assert_equals(requestInfos[0], expected_id, + `resultingClientId for ${url} request to ${worker}`); + } else { + actual_ids[key] = actual_id; + } + } +} + // Creates an iframe and navigates to |url|, which is expected to start a chain // of redirects. // - |expected_last_url| is the expected window.location after the // navigation. +// // - |expected_request_infos| is the expected requests that the service workers // were dispatched fetch events for. The format is: // [ -// [{url: url1}, {url: url2}], // requests from workers[0], -// [{url: url1}, // requests from workers[1], -// [{url: url1}, {url: url2}] // requests from cross-origin worker +// [ +// // Requests received by workers[0]. +// {url: url1, resultingClientIdTag: 'a'}, +// {url: url2, resultingClientIdTag: 'a'} +// ], +// [ +// // Requests received by workers[1]. +// {url: url3, resultingClientIdTag: 'a'} +// ], +// [ +// // Requests received by the cross-origin worker. +// {url: url4, resultingClientIdTag: 'x'} +// {url: url5, resultingClientIdTag: 'x'} +// ] // ] +// Here, |url| is |event.request.url| and |resultingClientIdTag| represents +// |event.resultingClientId|. Since the actual client ids are not known +// beforehand, the expectation isn't the literal expected value, but all equal +// tags must map to the same actual id. +// +// - |expected_final_client_tag| is the resultingClientIdTag that is +// expected to map to the created client's id. This is null if there +// is no such tag, which can happen when the final request was a cross-origin +// redirect to out-scope, so no worker received a fetch event whose +// resultingClientId is the id of the resulting client. +// +// In the example above: +// - workers[0] receives two requests with the same resultingClientId. +// - workers[1] receives one request also with that resultingClientId. +// - The cross-origin worker receives two requests with the same +// resultingClientId which differs from the previous one. +// - Assuming |expected_final_client_tag| is 'x', then the created +// client has the id seen by the cross-origin worker above. function redirect_test(url, expected_last_url, expected_request_infos, + expected_final_client_tag, test_name) { promise_test(async t => { const frame = await with_iframe(url); t.add_cleanup(() => { frame.remove(); }); - const expected_intercepted_urls = expected_request_infos.map(requests => { - return requests.map(info => { - return info.url; - }); - }); - await check_all_intercepted_urls(expected_intercepted_urls); - const last_url = await send_to_iframe(frame, 'getLocation'); - assert_equals(last_url, expected_last_url, 'Last URL should match.'); + // Switch on variant. + if (document.location.search == '?client') { + return client_variant_test(url, expected_last_url, expected_request_infos, + expected_final_client_tag, test_name); + } + + return default_variant_test(url, expected_last_url, expected_request_infos, + frame, test_name); }, test_name); } +// The default variant tests the request interception chain and +// resulting document.location. +async function default_variant_test(url, + expected_last_url, + expected_request_infos, + frame, + test_name) { + const expected_intercepted_urls = expected_request_infos.map( + requests_for_worker => { + return requests_for_worker.map(info => { + return info.url; + }); + }); + await check_all_intercepted_urls(expected_intercepted_urls); + const last_url = await send_to_iframe(frame, 'getLocation'); + assert_equals(last_url, expected_last_url, 'Last URL should match.'); +} + +// The "client" variant tests the Clients API using resultingClientId. +async function client_variant_test(url, + expected_last_url, + expected_request_infos, + expected_final_client_tag, + test_name) { + // Request infos is an array like: + // [ + // [{url: url1, resultingClientIdTag: tag1}], + // [{url: url2, resultingClientIdTag: tag2}], + // [{url: url3: resultingClientIdTag: tag3}] + // ] + const requestInfos = await get_all_request_infos(); + + // We check the actual infos against the expected ones, and learn the + // actual ids as we go. + const actual_ids = {}; + check_resulting_client_ids(requestInfos[0], + expected_request_infos[0], + actual_ids, + 'worker0'); + check_resulting_client_ids(requestInfos[1], + expected_request_infos[1], + actual_ids, + 'worker1'); + check_resulting_client_ids(requestInfos[2], + expected_request_infos[2], + actual_ids, + 'crossOriginWorker'); + + // Now |actual_ids| maps tag to actual id: + // {x: id1, b: id2, c: id3} + // Ask each worker to try to resolve the actual ids to clients. + // Only |expected_final_client_tag| should resolve to a client. + const client_infos = await get_all_clients(actual_ids); + + // Client infos is an object like: + // { + // worker0: {x: {found: true, id: id1, url: url1}, b: {found: false}}, + // worker1: {x: {found: true, id: id1, url: url1}}, + // crossOriginWorker: {x: {found: false}}, {b: {found: false}} + // } + // + // Now check each client info. check_clients() verifies each info: only + // |expected_final_client_tag| should ever be found and the found client + // should have the expected url and id. A wrinkle is that not all workers + // will find the client, if they are cross-origin to the client. This + // means check_clients() trivially passes if no clients are found. So + // additionally check that at least one worker found the client (|found|), + // if that was expected (|expect_found|). + let found = false; + const expect_found = !!expected_final_client_tag; + const expected_id = actual_ids[expected_final_client_tag]; + found = check_clients(client_infos.worker0, + expected_id, + expected_last_url, + expected_final_client_tag, + 'worker0'); + found = check_clients(client_infos.worker1, + expected_id, + expected_last_url, + expected_final_client_tag, + 'worker1') || found; + found = check_clients(client_infos.crossOriginWorker, + expected_id, + expected_last_url, + expected_final_client_tag, + 'crossOriginWorker') || found; + assert_equals(found, expect_found, 'client found'); + + if (!expect_found) { + // TODO(falken): Ask the other origin frame if it has a client of the + // expected URL. + } +} + window.addEventListener('message', on_message, false); function on_message(e) { @@ -129,6 +306,27 @@ }); } +async function get_all_clients(actual_ids) { + const client_infos = {}; + client_infos['worker0'] = await get_clients(workers[0], actual_ids); + client_infos['worker1'] = await get_clients(workers[1], actual_ids); + client_infos['crossOriginWorker'] = + await send_to_iframe(other_origin_frame, + {command: 'get_clients', actual_ids}); + return client_infos; +} + +function get_clients(worker, actual_ids) { + return new Promise(resolve => { + var channel = new MessageChannel(); + channel.port1.onmessage = (msg) => { + resolve(msg.data.clients); + }; + worker.postMessage({command: 'getClients', actual_ids, port: channel.port2}, + [channel.port2]); + }); +} + // Returns an array of the URLs that |worker| received fetch events for: // [url1, url2] async function get_intercepted_urls(worker) { @@ -138,7 +336,10 @@ // Returns the requests that |worker| received fetch events for. The return // value is an array of format: -// [{url: url1}, {url: url2}] +// [ +// {url: url1, resultingClientId: id}, +// {url: url2, resultingClientId: id} +// ] function get_request_infos(worker) { return new Promise(resolve => { var channel = new MessageChannel(); @@ -150,6 +351,29 @@ }); } +// Returns an array of the requests the workers received fetch events for: +// [ +// // Requests from workers[0]. +// [ +// {url: url1, resultingClientIdTag: tag1}, +// {url: url2, resultingClientIdTag: tag1} +// ], +// +// // Requests from workers[1]. +// [{url: url3, resultingClientIdTag: tag2}], +// +// // Requests from the cross-origin worker. +// [] +// ] +async function get_all_request_infos() { + const request_infos = []; + request_infos.push(await get_request_infos(workers[0])); + request_infos.push(await get_request_infos(workers[1])); + request_infos.push(await send_to_iframe(other_origin_frame, + {command: 'get_request_infos'})); + return request_infos; +} + let url; let url1; let url2; @@ -159,7 +383,8 @@ redirect_test( OUT_SCOPE + 'url=' + encodeURIComponent(url), url, - [[{url}], [], []], + [[{url, resultingClientIdTag: 'x'}], [], []], + 'x', 'Normal redirect to same-origin scope.'); @@ -167,30 +392,33 @@ redirect_test( OUT_SCOPE + 'url=' + encodeURIComponent(SCOPE1) + '#ref', url, - [[{url}], [], []], + [[{url, resultingClientIdTag: 'x'}], [], []], + 'x', 'Normal redirect to same-origin scope with a hash fragment.'); url = SCOPE1 + '#ref2'; redirect_test( OUT_SCOPE + 'url=' + encodeURIComponent(url) + '#ref', url, - [[{url}], [], []], + [[{url, resultingClientIdTag: 'x'}], [], []], + 'x', 'Normal redirect to same-origin scope with different hash fragments.'); url = OTHER_ORIGIN_SCOPE; redirect_test( OUT_SCOPE + 'url=' + encodeURIComponent(url), url, - [[], [], [{url}]], + [[], [], [{url, resultingClientIdTag: 'x'}]], + 'x', 'Normal redirect to other-origin scope.'); - // SW fallbacked redirect. SW doesn't handle the fetch request. url = SCOPE1 + 'url=' + encodeURIComponent(OUT_SCOPE); redirect_test( url, OUT_SCOPE, - [[{url}], [], []], + [[{url, resultingClientIdTag: 'x'}], [], []], + 'x', 'SW-fallbacked redirect to same-origin out-scope.'); url1 = SCOPE1 + 'url=' + encodeURIComponent(SCOPE1); @@ -198,7 +426,15 @@ redirect_test( url1, url2, - [[{url: url1}, {url: url2}], [], []], + [ + [ + {url: url1, resultingClientIdTag: 'x'}, + {url: url2, resultingClientIdTag: 'x'} + ], + [], + [] + ], + 'x', 'SW-fallbacked redirect to same-origin same-scope.'); url1 = SCOPE1 + 'url=' + encodeURIComponent(SCOPE1) + '#ref'; @@ -206,7 +442,15 @@ redirect_test( url1, url2, - [[{url: url1}, {url: url2}], [], []], + [ + [ + {url: url1, resultingClientIdTag: 'x'}, + {url: url2, resultingClientIdTag: 'x'} + ], + [], + [] + ], + 'x', 'SW-fallbacked redirect to same-origin same-scope with a hash fragment.'); url1 = SCOPE1 + 'url=' + encodeURIComponent(SCOPE1 + '#ref2') + '#ref'; @@ -214,7 +458,15 @@ redirect_test( url1, url2, - [[{url: url1}, {url: url2}], [], []], + [ + [ + {url: url1, resultingClientIdTag: 'x'}, + {url: url2, resultingClientIdTag: 'x'} + ], + [], + [] + ], + 'x', 'SW-fallbacked redirect to same-origin same-scope with different hash ' + 'fragments.'); @@ -223,7 +475,12 @@ redirect_test( url1, url2, - [[{url: url1}], [{url: url2}], []], + [ + [{url: url1, resultingClientIdTag: 'x'}], + [{url: url2, resultingClientIdTag: 'x'}], + [] + ], + 'x', 'SW-fallbacked redirect to same-origin other-scope.'); url1 = SCOPE1 + 'url=' + encodeURIComponent(OTHER_ORIGIN_OUT_SCOPE); @@ -231,7 +488,8 @@ redirect_test( url1, url2, - [[{url: url1}], [], []], + [[{url: url1, resultingClientIdTag: 'a'}], [], []], + 'x', 'SW-fallbacked redirect to other-origin out-scope.'); url1 = SCOPE1 + 'url=' + encodeURIComponent(OTHER_ORIGIN_SCOPE); @@ -239,10 +497,32 @@ redirect_test( url1, url2, - [[{url: url1}], [], [{url: url2}]], + [ + [{url: url1, resultingClientIdTag: 'a'}], + [], + [{url: url2, resultingClientIdTag: 'x'}] + ], + 'x', 'SW-fallbacked redirect to other-origin in-scope.'); +url3 = SCOPE1; +url2 = OTHER_ORIGIN_SCOPE + 'url=' + encodeURIComponent(url3); +url1 = SCOPE1 + 'url=' + encodeURIComponent(url2); +redirect_test( + url1, + url3, + [ + [ + {url: url1, resultingClientIdTag: 'a'}, + {url: url3, resultingClientIdTag: 'x'} + ], + [], + [{url: url2, resultingClientIdTag: 'b'}] + ], + 'x', + 'SW-fallbacked redirect to other-origin and back to same-origin.'); + // SW generated redirect. // SW: event.respondWith(Response.redirect(params['url'])); url1 = SCOPE1 + 'sw=gen&url=' + encodeURIComponent(OUT_SCOPE); @@ -250,7 +530,8 @@ redirect_test( url1, url2, - [[{url: url1}], [], []], + [[{url: url1, resultingClientIdTag: 'a'}], [], []], + null, 'SW-generated redirect to same-origin out-scope.'); url1 = SCOPE1 + 'sw=gen&url=' + encodeURIComponent(OUT_SCOPE) + '#ref'; @@ -258,7 +539,8 @@ redirect_test( url1, url2, - [[{url: url1}], [], []], + [[{url: url1, resultingClientIdTag: 'x'}], [], []], + 'x', 'SW-generated redirect to same-origin out-scope with a hash fragment.'); url1 = SCOPE1 + 'sw=gen&url=' + encodeURIComponent(OUT_SCOPE + '#ref2') + '#ref'; @@ -266,7 +548,8 @@ redirect_test( url1, url2, - [[{url: url1}], [], []], + [[{url: url1, resultingClientIdTag: 'x'}], [], []], + 'x', 'SW-generated redirect to same-origin out-scope with different hash ' + 'fragments.'); @@ -275,7 +558,15 @@ redirect_test( url1, url2, - [[{url: url1}, {url: url2}], [], []], + [ + [ + {url: url1, resultingClientIdTag: 'x'}, + {url: url2, resultingClientIdTag: 'x'} + ], + [], + [] + ], + 'x', 'SW-generated redirect to same-origin same-scope.'); url1 = SCOPE1 + 'sw=gen&url=' + encodeURIComponent(SCOPE2); @@ -283,7 +574,12 @@ redirect_test( url1, url2, - [[{url: url1}], [{url: url2}], []], + [ + [{url: url1, resultingClientIdTag: 'x'}], + [{url: url2, resultingClientIdTag: 'x'}], + [] + ], + 'x', 'SW-generated redirect to same-origin other-scope.'); url1 = SCOPE1 + 'sw=gen&url=' + encodeURIComponent(OTHER_ORIGIN_OUT_SCOPE); @@ -291,7 +587,8 @@ redirect_test( url1, url2, - [[{url: url1}], [], []], + [[{url: url1, resultingClientIdTag: 'a'}], [], []], + null, 'SW-generated redirect to other-origin out-scope.'); url1 = SCOPE1 + 'sw=gen&url=' + encodeURIComponent(OTHER_ORIGIN_SCOPE); @@ -300,10 +597,11 @@ url1, url2, [ - [{url: url1}], + [{url: url1, resultingClientIdTag: 'a'}], [], - [{url: url2}] + [{url: url2, resultingClientIdTag: 'x'}] ], + 'x', 'SW-generated redirect to other-origin in-scope.'); @@ -314,7 +612,8 @@ redirect_test( url1, url2, - [[{url: url1}], [], []], + [[{url: url1, resultingClientIdTag: 'x'}], [], []], + 'x', 'SW-fetched redirect to same-origin out-scope.'); url1 = SCOPE1 + 'sw=fetch&url=' + encodeURIComponent(SCOPE1); @@ -322,7 +621,15 @@ redirect_test( url1, url2, - [[{url: url1}, {url: url2}], [], []], + [ + [ + {url: url1, resultingClientIdTag: 'x'}, + {url: url2, resultingClientIdTag: 'x'} + ], + [], + [] + ], + 'x', 'SW-fetched redirect to same-origin same-scope.'); url1 = SCOPE1 + 'sw=fetch&url=' + encodeURIComponent(SCOPE2); @@ -331,10 +638,11 @@ url1, url2, [ - [{url: url1}], - [{url: url2}], + [{url: url1, resultingClientIdTag: 'x'}], + [{url: url2, resultingClientIdTag: 'x'}], [] ], + 'x', 'SW-fetched redirect to same-origin other-scope.'); url1 = SCOPE1 + 'sw=fetch&url=' + encodeURIComponent(OTHER_ORIGIN_OUT_SCOPE); @@ -342,7 +650,8 @@ redirect_test( url1, url2, - [[{url: url1}], [], []], + [[{url: url1, resultingClientIdTag: 'a'}], [], []], + null, 'SW-fetched redirect to other-origin out-scope.'); url1 = SCOPE1 + 'sw=fetch&url=' + encodeURIComponent(OTHER_ORIGIN_SCOPE); @@ -351,10 +660,11 @@ url1, url2, [ - [{url: url1}], + [{url: url1, resultingClientIdTag: 'a'}], [], - [{url: url2}] + [{url: url2, resultingClientIdTag: 'x'}] ], + 'x', 'SW-fetched redirect to other-origin in-scope.'); @@ -366,7 +676,8 @@ redirect_test( url1, url2, - [[{url: url1}], [], []], + [[{url: url1, resultingClientIdTag: 'x'}], [], []], + 'x', 'Redirect to same-origin out-scope with opaque redirect response.'); url1 = SCOPE1 + 'sw=manual&url=' + encodeURIComponent(SCOPE1); @@ -374,7 +685,15 @@ redirect_test( url1, url2, - [[{url: url1}, {url: url2}], [], []], + [ + [ + {url: url1, resultingClientIdTag: 'x'}, + {url: url2, resultingClientIdTag: 'x'} + ], + [], + [] + ], + 'x', 'Redirect to same-origin same-scope with opaque redirect response.'); url1 = SCOPE1 + 'sw=manual&url=' + encodeURIComponent(SCOPE2); @@ -382,7 +701,12 @@ redirect_test( url1, url2, - [[{url: url1}], [{url: url2}], []], + [ + [{url: url1, resultingClientIdTag: 'x'}], + [{url: url2, resultingClientIdTag: 'x'}], + [] + ], + 'x', 'Redirect to same-origin other-scope with opaque redirect response.'); url1 = SCOPE1 + 'sw=manual&url=' + encodeURIComponent(OTHER_ORIGIN_OUT_SCOPE); @@ -390,7 +714,8 @@ redirect_test( url1, url2, - [[{url: url1}], [], []], + [[{url: url1, resultingClientIdTag: 'a'}], [], []], + null, 'Redirect to other-origin out-scope with opaque redirect response.'); url1 = SCOPE1 + 'sw=manual&url=' + encodeURIComponent(OTHER_ORIGIN_SCOPE); @@ -398,12 +723,18 @@ redirect_test( url1, url2, - [[{url: url1}], [], [{url: url2}]], + [ + [{url: url1, resultingClientIdTag: 'a'}], + [], + [{url: url2, resultingClientIdTag: 'x'}] + ], + 'x', 'Redirect to other-origin in-scope with opaque redirect response.'); url= SCOPE1 + 'sw=manual&noLocationRedirect'; redirect_test( - url, url, [[{url}], [], []], + url, url, [[{url, resultingClientIdTag: 'x'}], [], []], + 'x', 'No location redirect response.'); @@ -414,7 +745,8 @@ redirect_test( url1, url2, - [[{url: url1}], [], []], + [[{url: url1, resultingClientIdTag: 'x'}], [], []], + 'x', 'Redirect to same-origin out-scope with opaque redirect response which ' + 'is passed through Cache.'); @@ -424,10 +756,14 @@ url1, url2, [ - [{url: url1}, {url: url2}], + [ + {url: url1, resultingClientIdTag: 'x'}, + {url: url2, resultingClientIdTag: 'x'} + ], [], [] ], + 'x', 'Redirect to same-origin same-scope with opaque redirect response which ' + 'is passed through Cache.'); @@ -437,10 +773,11 @@ url1, url2, [ - [{url: url1}], - [{url: url2}], + [{url: url1, resultingClientIdTag: 'x'}], + [{url: url2, resultingClientIdTag: 'x'}], [] ], + 'x', 'Redirect to same-origin other-scope with opaque redirect response which ' + 'is passed through Cache.'); @@ -450,7 +787,8 @@ redirect_test( url1, url2, - [[{url: url1}], [], []], + [[{url: url1, resultingClientIdTag: 'a'}], [], []], + null, 'Redirect to other-origin out-scope with opaque redirect response which ' + 'is passed through Cache.'); @@ -461,10 +799,11 @@ url1, url2, [ - [{url: url1}], + [{url: url1, resultingClientIdTag: 'a'}], [], - [{url: url2}], + [{url: url2, resultingClientIdTag: 'x'}], ], + 'x', 'Redirect to other-origin in-scope with opaque redirect response which ' + 'is passed through Cache.'); @@ -472,7 +811,8 @@ redirect_test( url, url, - [[{url}], [], []], + [[{url, resultingClientIdTag: 'x'}], [], []], + 'x', 'No location redirect response via Cache.'); // Clean up the test environment. This promise_test() needs to be the last one. diff --git a/tests/wpt/web-platform-tests/service-workers/service-worker/resources/navigation-redirect-other-origin.html b/tests/wpt/web-platform-tests/service-workers/service-worker/resources/navigation-redirect-other-origin.html index 0d2825f31093..d82571d1a3c7 100644 --- a/tests/wpt/web-platform-tests/service-workers/service-worker/resources/navigation-redirect-other-origin.html +++ b/tests/wpt/web-platform-tests/service-workers/service-worker/resources/navigation-redirect-other-origin.html @@ -44,6 +44,20 @@ }); } +function get_clients(worker, actual_ids) { + return new Promise(function(resolve) { + var channel = new MessageChannel(); + channel.port1.onmessage = (msg) => { + resolve(msg.data.clients); + }; + worker.postMessage({ + command: 'getClients', + actual_ids, + port: channel.port2 + }, [channel.port2]); + }); +} + window.addEventListener('message', on_message, false); function on_message(e) { @@ -59,6 +73,11 @@ .then(function(data) { send_result(e.data.id, data); }); + } else if (command == 'get_clients') { + get_clients(worker, e.data.message.actual_ids) + .then(function(data) { + send_result(e.data.id, data); + }); } else if (command == 'unregister') { registration.unregister() .then(function() { diff --git a/tests/wpt/web-platform-tests/service-workers/service-worker/resources/redirect-worker.js b/tests/wpt/web-platform-tests/service-workers/service-worker/resources/redirect-worker.js index bf0a3a8d9e04..0c5bc3bd9aa5 100644 --- a/tests/wpt/web-platform-tests/service-workers/service-worker/resources/redirect-worker.js +++ b/tests/wpt/web-platform-tests/service-workers/service-worker/resources/redirect-worker.js @@ -5,6 +5,13 @@ var cacheName = 'urls-' + self.registration.scope; var waitUntilPromiseList = []; +// Sends the requests seen by this worker. The output is: +// { +// requestInfos: [ +// {url: url1, resultingClientId: id1}, +// {url: url2, resultingClientId: id2}, +// ] +// } async function getRequestInfos(event) { // Wait for fetch events to finish. await Promise.all(waitUntilPromiseList); @@ -15,8 +22,11 @@ async function getRequestInfos(event) { const requestList = await cache.keys(); const requestInfos = []; for (let i = 0; i < requestList.length; i++) { + const response = await cache.match(requestList[i]); + const body = await response.json(); requestInfos[i] = { url: requestList[i].url, + resultingClientId: body.resultingClientId }; } await caches.delete(cacheName); @@ -24,13 +34,50 @@ async function getRequestInfos(event) { event.data.port.postMessage({requestInfos}); } +// Sends the results of clients.get(id) from this worker. The +// input is: +// { +// actual_ids: {a: id1, b: id2, x: id3} +// } +// +// The output is: +// { +// clients: { +// a: {found: false}, +// b: {found: false}, +// x: { +// id: id3, +// url: url1, +// found: true +// } +// } +// } +async function getClients(event) { + // |actual_ids| is like: + // {a: id1, b: id2, x: id3} + const actual_ids = event.data.actual_ids; + const result = {} + for (let key of Object.keys(actual_ids)) { + const id = actual_ids[key]; + const client = await self.clients.get(id); + if (client === undefined) + result[key] = {found: false}; + else + result[key] = {found: true, url: client.url, id: client.id}; + } + event.data.port.postMessage({clients: result}); +} + self.addEventListener('message', async function(event) { if (event.data.command == 'getRequestInfos') { event.waitUntil(getRequestInfos(event)); return; } - // TODO(falken): Add a getClientInfos command to test Clients API. + if (event.data.command == 'getClients') { + event.waitUntil(getClients(event)); + return; + } }); function get_query_params(url) { @@ -49,7 +96,11 @@ function get_query_params(url) { self.addEventListener('fetch', function(event) { var waitUntilPromise = caches.open(cacheName).then(function(cache) { - return cache.put(event.request, new Response()); + const responseBody = {}; + responseBody['resultingClientId'] = event.resultingClientId; + const headers = new Headers({'Content-Type': 'application/json'}); + const response = new Response(JSON.stringify(responseBody), {headers}); + return cache.put(event.request, response); }); event.waitUntil(waitUntilPromise); diff --git a/tests/wpt/web-platform-tests/speech-api/SpeechSynthesis-speak-without-activation-fails.tentative.html b/tests/wpt/web-platform-tests/speech-api/SpeechSynthesis-speak-without-activation-fails.tentative.html index acf0d7d575b5..1b86552a1cbd 100644 --- a/tests/wpt/web-platform-tests/speech-api/SpeechSynthesis-speak-without-activation-fails.tentative.html +++ b/tests/wpt/web-platform-tests/speech-api/SpeechSynthesis-speak-without-activation-fails.tentative.html @@ -8,7 +8,7 @@ async_test(t => { const utter = new SpeechSynthesisUtterance('1'); utter.onerror = t.step_func_done((e) => { - assert_equals(e.name, "not-allowed"); + assert_equals(e.error, "not-allowed"); }); utter.onend = t.step_func_done(() => assert_unreached()); speechSynthesis.speak(utter); diff --git a/tests/wpt/web-platform-tests/speech-api/SpeechSynthesisErrorEvent-constructor.html b/tests/wpt/web-platform-tests/speech-api/SpeechSynthesisErrorEvent-constructor.html new file mode 100644 index 000000000000..61e179cca47b --- /dev/null +++ b/tests/wpt/web-platform-tests/speech-api/SpeechSynthesisErrorEvent-constructor.html @@ -0,0 +1,88 @@ + + + + + diff --git a/tests/wpt/web-platform-tests/speech-api/SpeechSynthesisEvent-constructor.html b/tests/wpt/web-platform-tests/speech-api/SpeechSynthesisEvent-constructor.html new file mode 100644 index 000000000000..47a37d25d972 --- /dev/null +++ b/tests/wpt/web-platform-tests/speech-api/SpeechSynthesisEvent-constructor.html @@ -0,0 +1,67 @@ + + + + + diff --git a/tests/wpt/web-platform-tests/tools/manifest/sourcefile.py b/tests/wpt/web-platform-tests/tools/manifest/sourcefile.py index 9be0d8966ece..1f08088eb466 100644 --- a/tests/wpt/web-platform-tests/tools/manifest/sourcefile.py +++ b/tests/wpt/web-platform-tests/tools/manifest/sourcefile.py @@ -267,6 +267,7 @@ def name_is_non_test(self): self.name_prefix("MANIFEST") or self.filename == "META.yml" or self.filename.startswith(".") or + self.filename.endswith(".headers") or self.type_flag == "support" or self.in_non_test_dir()) diff --git a/tests/wpt/web-platform-tests/tools/manifest/tests/test_sourcefile.py b/tests/wpt/web-platform-tests/tools/manifest/tests/test_sourcefile.py index 57a175cae913..ad59055de73f 100644 --- a/tests/wpt/web-platform-tests/tools/manifest/tests/test_sourcefile.py +++ b/tests/wpt/web-platform-tests/tools/manifest/tests/test_sourcefile.py @@ -36,6 +36,7 @@ def items(s): "foo/resources/test.html", "foo/support/test.html", "foo/test-support.html", + "foo/foo-manual.html.headers", "css/common/test.html", "css/CSS2/archive/test.html", ]) @@ -64,6 +65,7 @@ def test_not_name_is_non_test(rel_path): @pytest.mark.parametrize("rel_path", [ + "foo/foo-manual.html", "html/test-manual.html", "html/test-manual.xhtml", "html/test-manual.https.html", diff --git a/tests/wpt/web-platform-tests/tools/wptserve/tests/functional/base.py b/tests/wpt/web-platform-tests/tools/wptserve/tests/functional/base.py index 741ab0bcb745..e49c8287c598 100644 --- a/tests/wpt/web-platform-tests/tools/wptserve/tests/functional/base.py +++ b/tests/wpt/web-platform-tests/tools/wptserve/tests/functional/base.py @@ -75,7 +75,7 @@ def request(self, path, query=None, method="GET", headers=None, body=None, auth= req.add_data(body) if auth is not None: - req.add_header("Authorization", b"Basic %s" % base64.b64encode(("%s:%s" % auth).encode("utf-8"))) + req.add_header("Authorization", "Basic %s" % base64.b64encode('%s:%s' % auth)) return urlopen(req) diff --git a/tests/wpt/web-platform-tests/tools/wptserve/tests/functional/test_handlers.py b/tests/wpt/web-platform-tests/tools/wptserve/tests/functional/test_handlers.py index 759a096b7995..7ac410abfee2 100644 --- a/tests/wpt/web-platform-tests/tools/wptserve/tests/functional/test_handlers.py +++ b/tests/wpt/web-platform-tests/tools/wptserve/tests/functional/test_handlers.py @@ -88,16 +88,19 @@ def test_range_invalid(self): self.request("/document.txt", headers={"Range":"bytes=%i-%i" % (len(expected), len(expected) + 10)}) self.assertEqual(cm.exception.code, 416) + @pytest.mark.xfail(sys.version_info >= (3,), reason="wptserve only works on Py2") def test_sub_config(self): resp = self.request("/sub.sub.txt") expected = b"localhost localhost %i" % self.server.port assert resp.read().rstrip() == expected + @pytest.mark.xfail(sys.version_info >= (3,), reason="wptserve only works on Py2") def test_sub_headers(self): resp = self.request("/sub_headers.sub.txt", headers={"X-Test": "PASS"}) expected = b"PASS" assert resp.read().rstrip() == expected + @pytest.mark.xfail(sys.version_info >= (3,), reason="wptserve only works on Py2") def test_sub_params(self): resp = self.request("/sub_params.sub.txt", query="test=PASS") expected = b"PASS" diff --git a/tests/wpt/web-platform-tests/tools/wptserve/tests/functional/test_pipes.py b/tests/wpt/web-platform-tests/tools/wptserve/tests/functional/test_pipes.py index 7739af5e26e1..83b2c621641c 100644 --- a/tests/wpt/web-platform-tests/tools/wptserve/tests/functional/test_pipes.py +++ b/tests/wpt/web-platform-tests/tools/wptserve/tests/functional/test_pipes.py @@ -57,35 +57,40 @@ def test_no_lower(self): self.assertEqual(resp.read(), expected[:10]) class TestSub(TestUsingServer): + @pytest.mark.xfail(sys.version_info >= (3,), reason="wptserve only works on Py2") def test_sub_config(self): resp = self.request("/sub.txt", query="pipe=sub") - expected = b"localhost localhost %i" % self.server.port + expected = "localhost localhost %i" % self.server.port self.assertEqual(resp.read().rstrip(), expected) @pytest.mark.xfail(sys.platform == "win32", reason="https://github.com/web-platform-tests/wpt/issues/12949") + @pytest.mark.xfail(sys.version_info >= (3,), reason="wptserve only works on Py2") def test_sub_file_hash(self): resp = self.request("/sub_file_hash.sub.txt") - expected = b""" + expected = """ md5: JmI1W8fMHfSfCarYOSxJcw== sha1: nqpWqEw4IW8NjD6R375gtrQvtTo= sha224: RqQ6fMmta6n9TuA/vgTZK2EqmidqnrwBAmQLRQ== sha256: G6Ljg1uPejQxqFmvFOcV/loqnjPTW5GSOePOfM/u0jw= sha384: lkXHChh1BXHN5nT5BYhi1x67E1CyYbPKRKoF2LTm5GivuEFpVVYtvEBHtPr74N9E -sha512: r8eLGRTc7ZznZkFjeVLyo6/FyQdra9qmlYCwKKxm3kfQAswRS9+3HsYk3thLUhcFmmWhK4dXaICzJwGFonfXwg==""" +sha512: r8eLGRTc7ZznZkFjeVLyo6/FyQdra9qmlYCwKKxm3kfQAswRS9+3HsYk3thLUhcFmmWhK4dXaICz +JwGFonfXwg==""" self.assertEqual(resp.read().rstrip(), expected.strip()) def test_sub_file_hash_unrecognized(self): with self.assertRaises(urllib.error.HTTPError): self.request("/sub_file_hash_unrecognized.sub.txt") + @pytest.mark.xfail(sys.version_info >= (3,), reason="wptserve only works on Py2") def test_sub_headers(self): resp = self.request("/sub_headers.txt", query="pipe=sub", headers={"X-Test": "PASS"}) - expected = b"PASS" + expected = "PASS" self.assertEqual(resp.read().rstrip(), expected) @pytest.mark.xfail(sys.platform == "win32", reason="https://github.com/web-platform-tests/wpt/issues/12949") + @pytest.mark.xfail(sys.version_info >= (3,), reason="wptserve only works on Py2") def test_sub_location(self): resp = self.request("/sub_location.sub.txt?query_string") expected = """ @@ -96,27 +101,30 @@ def test_sub_location(self): port: {0} query: ?query_string scheme: http -server: http://localhost:{0}""".format(self.server.port).encode("ascii") +server: http://localhost:{0}""".format(self.server.port) self.assertEqual(resp.read().rstrip(), expected.strip()) + @pytest.mark.xfail(sys.version_info >= (3,), reason="wptserve only works on Py2") def test_sub_params(self): resp = self.request("/sub_params.txt", query="test=PASS&pipe=sub") - expected = b"PASS" + expected = "PASS" self.assertEqual(resp.read().rstrip(), expected) + @pytest.mark.xfail(sys.version_info >= (3,), reason="wptserve only works on Py2") def test_sub_url_base(self): resp = self.request("/sub_url_base.sub.txt") - self.assertEqual(resp.read().rstrip(), b"Before / After") + self.assertEqual(resp.read().rstrip(), "Before / After") + @pytest.mark.xfail(sys.version_info >= (3,), reason="wptserve only works on Py2") def test_sub_uuid(self): resp = self.request("/sub_uuid.sub.txt") - self.assertRegexpMatches(resp.read().rstrip(), b"Before [a-f0-9-]+ After") + self.assertRegexpMatches(resp.read().rstrip(), r"Before [a-f0-9-]+ After") + @pytest.mark.xfail(sys.version_info >= (3,), reason="wptserve only works on Py2") def test_sub_var(self): resp = self.request("/sub_var.sub.txt") port = self.server.port - print(port, type(port)) - expected = b"localhost %d A %d B localhost C" % (port, port) + expected = "localhost %s A %s B localhost C" % (port, port) self.assertEqual(resp.read().rstrip(), expected) class TestTrickle(TestUsingServer): @@ -136,10 +144,12 @@ def test_headers(self): self.assertEqual(resp.info()["Expires"], "0") class TestPipesWithVariousHandlers(TestUsingServer): + @pytest.mark.xfail(sys.version_info >= (3,), reason="wptserve only works on Py2") def test_with_python_file_handler(self): resp = self.request("/test_string.py", query="pipe=slice(null,2)") - self.assertEqual(resp.read(), b"PA") + self.assertEqual(resp.read(), "PA") + @pytest.mark.xfail(sys.version_info >= (3,), reason="wptserve only works on Py2") def test_with_python_func_handler(self): @wptserve.handlers.handler def handler(request, response): @@ -147,8 +157,9 @@ def handler(request, response): route = ("GET", "/test/test_pipes_1/", handler) self.server.router.register(*route) resp = self.request(route[1], query="pipe=slice(null,2)") - self.assertEqual(resp.read(), b"PA") + self.assertEqual(resp.read(), "PA") + @pytest.mark.xfail(sys.version_info >= (3,), reason="wptserve only works on Py2") def test_with_python_func_handler_using_response_writer(self): @wptserve.handlers.handler def handler(request, response): @@ -157,8 +168,9 @@ def handler(request, response): self.server.router.register(*route) resp = self.request(route[1], query="pipe=slice(null,2)") # slice has not been applied to the response, because response.writer was used. - self.assertEqual(resp.read(), b"PASS") + self.assertEqual(resp.read(), "PASS") + @pytest.mark.xfail(sys.version_info >= (3,), reason="wptserve only works on Py2") def test_header_pipe_with_python_func_using_response_writer(self): @wptserve.handlers.handler def handler(request, response): @@ -168,8 +180,9 @@ def handler(request, response): resp = self.request(route[1], query="pipe=header(X-TEST,FAIL)") # header pipe was ignored, because response.writer was used. self.assertFalse(resp.info().get("X-TEST")) - self.assertEqual(resp.read(), b"CONTENT") + self.assertEqual(resp.read(), "CONTENT") + @pytest.mark.xfail(sys.version_info >= (3,), reason="wptserve only works on Py2") def test_with_json_handler(self): @wptserve.handlers.json_handler def handler(request, response): @@ -177,29 +190,32 @@ def handler(request, response): route = ("GET", "/test/test_pipes_2/", handler) self.server.router.register(*route) resp = self.request(route[1], query="pipe=slice(null,2)") - self.assertEqual(resp.read(), b'"{') + self.assertEqual(resp.read(), '"{') + @pytest.mark.xfail(sys.version_info >= (3,), reason="wptserve only works on Py2") def test_slice_with_as_is_handler(self): resp = self.request("/test.asis", query="pipe=slice(null,2)") self.assertEqual(202, resp.getcode()) self.assertEqual("Giraffe", resp.msg) self.assertEqual("PASS", resp.info()["X-Test"]) # slice has not been applied to the response, because response.writer was used. - self.assertEqual(b"Content", resp.read()) + self.assertEqual("Content", resp.read()) + @pytest.mark.xfail(sys.version_info >= (3,), reason="wptserve only works on Py2") def test_headers_with_as_is_handler(self): resp = self.request("/test.asis", query="pipe=header(X-TEST,FAIL)") self.assertEqual(202, resp.getcode()) self.assertEqual("Giraffe", resp.msg) # header pipe was ignored. self.assertEqual("PASS", resp.info()["X-TEST"]) - self.assertEqual(b"Content", resp.read()) + self.assertEqual("Content", resp.read()) + @pytest.mark.xfail(sys.version_info >= (3,), reason="wptserve only works on Py2") def test_trickle_with_as_is_handler(self): t0 = time.time() resp = self.request("/test.asis", query="pipe=trickle(1:d2:5:d1:r2)") t1 = time.time() - self.assertTrue(b'Content' in resp.read()) + self.assertTrue('Content' in resp.read()) self.assertGreater(6, t1-t0) if __name__ == '__main__': diff --git a/tests/wpt/web-platform-tests/tools/wptserve/tests/functional/test_request.py b/tests/wpt/web-platform-tests/tools/wptserve/tests/functional/test_request.py index 983539260a52..096c0535b9ae 100644 --- a/tests/wpt/web-platform-tests/tools/wptserve/tests/functional/test_request.py +++ b/tests/wpt/web-platform-tests/tools/wptserve/tests/functional/test_request.py @@ -1,3 +1,5 @@ +import sys + import pytest wptserve = pytest.importorskip("wptserve") @@ -115,6 +117,7 @@ def handler(request, response): class TestAuth(TestUsingServer): + @pytest.mark.xfail(sys.version_info >= (3,), reason="wptserve only works on Py2") def test_auth(self): @wptserve.handlers.handler def handler(request, response): @@ -124,4 +127,4 @@ def handler(request, response): self.server.router.register(*route) resp = self.request(route[1], auth=("test", "PASS")) self.assertEqual(200, resp.getcode()) - self.assertEqual([b"test", b"PASS"], resp.read().split(b" ")) + self.assertEqual(["test", "PASS"], resp.read().split(" ")) diff --git a/tests/wpt/web-platform-tests/tools/wptserve/wptserve/pipes.py b/tests/wpt/web-platform-tests/tools/wptserve/wptserve/pipes.py index 33a43e1f06b9..ad96f591a3a8 100644 --- a/tests/wpt/web-platform-tests/tools/wptserve/wptserve/pipes.py +++ b/tests/wpt/web-platform-tests/tools/wptserve/wptserve/pipes.py @@ -1,6 +1,5 @@ from cgi import escape from collections import deque -import base64 import gzip as gzip_module import hashlib import os @@ -274,9 +273,8 @@ def slice(request, response, start, end=None): (spelled "null" in a query string) to indicate the end of the file. """ - content = resolve_content(response)[start:end] - response.content = content - response.headers.set("Content-Length", len(content)) + content = resolve_content(response) + response.content = content[start:end] return response @@ -394,7 +392,7 @@ def uuid(request): @staticmethod def file_hash(request, algorithm, path): - assert isinstance(algorithm, text_type) + algorithm = algorithm.decode("ascii") if algorithm not in SubFunctions.supported_algorithms: raise ValueError("Unsupported encryption algorithm: '%s'" % algorithm) @@ -402,7 +400,7 @@ def file_hash(request, algorithm, path): absolute_path = os.path.join(request.doc_root, path) try: - with open(absolute_path, "rb") as f: + with open(absolute_path) as f: hash_obj.update(f.read()) except IOError: # In this context, an unhandled IOError will be interpreted by the @@ -412,7 +410,7 @@ def file_hash(request, algorithm, path): # the path to the file to be hashed is invalid. raise Exception('Cannot open file for hash computation: "%s"' % absolute_path) - return base64.b64encode(hash_obj.digest()).strip() + return hash_obj.digest().encode('base64').strip() def template(request, content, escape_type="html"): #TODO: There basically isn't any error handling here @@ -427,6 +425,7 @@ def config_replacement(match): tokens = deque(tokens) token_type, field = tokens.popleft() + field = field.decode("ascii") if token_type == "var": variable = field @@ -471,14 +470,14 @@ def config_replacement(match): raise Exception("Undefined template variable %s" % field) while tokens: - ttype, tfield = tokens.popleft() + ttype, field = tokens.popleft() if ttype == "index": - value = value[tfield] + value = value[field] elif ttype == "arguments": - value = value(request, *tfield) + value = value(request, *field) else: raise Exception( - "unexpected token type %s (token '%r'), expected ident or arguments" % (ttype, tfield) + "unexpected token type %s (token '%r'), expected ident or arguments" % (ttype, field) ) assert isinstance(value, (int, (binary_type, text_type))), tokens @@ -486,19 +485,12 @@ def config_replacement(match): if variable is not None: variables[variable] = value - if field == "GET" and not isinstance(value, str): - value = value.decode("utf-8") - escape_func = {"html": lambda x:escape(x, quote=True), "none": lambda x:x}[escape_type] #Should possibly support escaping for other contexts e.g. script #TODO: read the encoding of the response - if isinstance(value, binary_type): - value = value.decode("utf-8") - elif isinstance(value, int): - value = text_type(value) - return escape_func(value).encode("utf-8") + return escape_func(text_type(value)).encode("utf-8") template_regexp = re.compile(br"{{([^}]*)}}") new_content = template_regexp.sub(config_replacement, content) diff --git a/tests/wpt/web-platform-tests/tools/wptserve/wptserve/request.py b/tests/wpt/web-platform-tests/tools/wptserve/wptserve/request.py index 233ff151c28e..cb575ccdba45 100644 --- a/tests/wpt/web-platform-tests/tools/wptserve/wptserve/request.py +++ b/tests/wpt/web-platform-tests/tools/wptserve/wptserve/request.py @@ -1,7 +1,7 @@ import base64 import cgi from six.moves.http_cookies import BaseCookie -from six import BytesIO, binary_type, text_type +from six import BytesIO import tempfile from six.moves.urllib.parse import parse_qsl, urlsplit @@ -318,8 +318,8 @@ def POST(self): def cookies(self): if self._cookies is None: parser = BaseCookie() - cookie_headers = self.headers.get("cookie", u"") - parser.load(cookie_headers.encode("utf-8")) + cookie_headers = self.headers.get("cookie", "") + parser.load(cookie_headers) cookies = Cookies() for key, value in parser.iteritems(): cookies[key] = CookieValue(value) @@ -355,16 +355,6 @@ def __init__(self, request_handler): super(H2Request, self).__init__(request_handler) -def maybedecode(s): - if isinstance(s, text_type): - return s - - if isinstance(s, binary_type): - return s.decode("ascii") - - raise TypeError("Unexpected value in RequestHeaders: %r" % s) - - class RequestHeaders(dict): """Dictionary-like API for accessing request headers.""" def __init__(self, items): @@ -379,17 +369,15 @@ def __init__(self, items): for value in values: # getallmatchingheaders returns raw header lines, so # split to get name, value - multiples.append(maybedecode(value).split(':', 1)[1].strip()) - headers = multiples + multiples.append(value.split(':', 1)[1].strip()) + dict.__setitem__(self, key, multiples) else: - headers = [maybedecode(items[header])] - dict.__setitem__(self, maybedecode(key), headers) + dict.__setitem__(self, key, [items[header]]) def __getitem__(self, key): """Get all headers of a certain (case-insensitive) name. If there is more than one, the values are returned comma separated""" - key = maybedecode(key) values = dict.__getitem__(self, key.lower()) if len(values) == 1: return values[0] @@ -415,7 +403,6 @@ def get(self, key, default=None): def get_list(self, key, default=missing): """Get all the header values for a particular field name as a list""" - key = maybedecode(key) try: return dict.__getitem__(self, key.lower()) except KeyError: @@ -425,7 +412,6 @@ def get_list(self, key, default=missing): raise def __contains__(self, key): - key = maybedecode(key) return dict.__contains__(self, key.lower()) def iteritems(self): @@ -613,7 +599,6 @@ def __init__(self, headers): if "authorization" in headers: header = headers.get("authorization") - assert isinstance(header, text_type) auth_type, data = header.split(" ", 1) if auth_type in auth_schemes: self.username, self.password = auth_schemes[auth_type](data) @@ -621,6 +606,5 @@ def __init__(self, headers): raise HTTPException(400, "Unsupported authentication scheme %s" % auth_type) def decode_basic(self, data): - assert isinstance(data, text_type) - decoded_data = base64.decodestring(data.encode("utf-8")) - return decoded_data.decode("utf-8").split(":", 1) + decoded_data = base64.decodestring(data) + return decoded_data.split(":", 1) diff --git a/tests/wpt/web-platform-tests/tools/wptserve/wptserve/response.py b/tests/wpt/web-platform-tests/tools/wptserve/wptserve/response.py index 483265bf0846..44299cc994ef 100644 --- a/tests/wpt/web-platform-tests/tools/wptserve/wptserve/response.py +++ b/tests/wpt/web-platform-tests/tools/wptserve/wptserve/response.py @@ -183,10 +183,8 @@ def iter_content(self, read_file=False): True, the entire content of the file will be returned as a string facilitating non-streaming operations like template substitution. """ - if isinstance(self.content, binary_type): + if isinstance(self.content, (binary_type, text_type)): yield self.content - elif isinstance(self.content, text_type): - yield self.content.encode("utf-8") elif hasattr(self.content, "read"): if read_file: yield self.content.read() diff --git a/tests/wpt/web-platform-tests/webdriver/tests/perform_actions/key.py b/tests/wpt/web-platform-tests/webdriver/tests/perform_actions/key.py index 2b3414c5ebfd..cbfb5bcef43d 100644 --- a/tests/wpt/web-platform-tests/webdriver/tests/perform_actions/key.py +++ b/tests/wpt/web-platform-tests/webdriver/tests/perform_actions/key.py @@ -16,6 +16,14 @@ def test_no_browsing_context(session, closed_window, key_chain): key_chain.key_up("a").perform() +def test_element_not_focused(session, test_actions_page, key_chain): + key_reporter = session.find.css("#keys", all=False) + + key_chain.key_down("a").key_up("a").perform() + + assert get_keys(key_reporter) == "" + + def test_backspace_erases_keys(session, key_reporter, key_chain): key_chain \ .send_keys("efcd") \ diff --git a/tests/wpt/web-platform-tests/webdriver/tests/perform_actions/key_modifiers.py b/tests/wpt/web-platform-tests/webdriver/tests/perform_actions/key_modifiers.py index 55dc9280c626..e8ea30dd3d7d 100644 --- a/tests/wpt/web-platform-tests/webdriver/tests/perform_actions/key_modifiers.py +++ b/tests/wpt/web-platform-tests/webdriver/tests/perform_actions/key_modifiers.py @@ -3,6 +3,19 @@ from tests.perform_actions.support.keys import Keys +@pytest.mark.parametrize("modifier", [Keys.SHIFT, Keys.R_SHIFT]) +def test_shift_modifier_and_non_printable_keys(session, key_reporter, key_chain, modifier): + key_chain \ + .send_keys("foo") \ + .key_down(modifier) \ + .key_down(Keys.BACKSPACE) \ + .key_up(modifier) \ + .key_up(Keys.BACKSPACE) \ + .perform() + + assert key_reporter.property("value") == "fo" + + @pytest.mark.parametrize("modifier", [Keys.SHIFT, Keys.R_SHIFT]) def test_shift_modifier_generates_capital_letters(session, key_reporter, key_chain, modifier): key_chain \ diff --git a/tests/wpt/web-platform-tests/webrtc/RTCIceTransport-extension-helper.js b/tests/wpt/web-platform-tests/webrtc/RTCIceTransport-extension-helper.js new file mode 100644 index 000000000000..659ec59b8df2 --- /dev/null +++ b/tests/wpt/web-platform-tests/webrtc/RTCIceTransport-extension-helper.js @@ -0,0 +1,42 @@ +'use strict'; + +// Construct an RTCIceTransport instance. The instance will automatically be +// cleaned up when the test finishes. +function makeIceTransport(t) { + const iceTransport = new RTCIceTransport(); + t.add_cleanup(() => iceTransport.stop()); + return iceTransport; +} + +// Construct two RTCIceTransport instances, configure them to exchange +// candidates, then gather() them. +// Returns a 2-list: [ RTCIceTransport, RTCIceTransport ] +function makeAndGatherTwoIceTransports(t) { + const localTransport = makeIceTransport(t); + const remoteTransport = makeIceTransport(t); + localTransport.onicecandidate = e => { + if (e.candidate) { + remoteTransport.addRemoteCandidate(e.candidate); + } + }; + remoteTransport.onicecandidate = e => { + if (e.candidate) { + localTransport.addRemoteCandidate(e.candidate); + } + }; + localTransport.gather({}); + remoteTransport.gather({}); + return [ localTransport, remoteTransport ]; +} + +// Construct two RTCIceTransport instances, configure them to exchange +// candidates and parameters, then gather() and start() them. +// Returns a 2-list: +// [ controlling RTCIceTransport, +// controlled RTCIceTransport ] +function makeGatherAndStartTwoIceTransports(t) { + const [ localTransport, remoteTransport ] = makeAndGatherTwoIceTransports(t); + localTransport.start(remoteTransport.getLocalParameters(), 'controlling'); + remoteTransport.start(localTransport.getLocalParameters(), 'controlled'); + return [ localTransport, remoteTransport ]; +} diff --git a/tests/wpt/web-platform-tests/webrtc/RTCIceTransport-extension.https.html b/tests/wpt/web-platform-tests/webrtc/RTCIceTransport-extension.https.html index 9c6cec7e1e49..5adee9fbe61e 100644 --- a/tests/wpt/web-platform-tests/webrtc/RTCIceTransport-extension.https.html +++ b/tests/wpt/web-platform-tests/webrtc/RTCIceTransport-extension.https.html @@ -3,12 +3,18 @@ RTCIceTransport-extensions.https.html + + + diff --git a/tests/wpt/webgl/meta/conformance/textures/misc/texture-upload-size.html.ini b/tests/wpt/webgl/meta/conformance/textures/misc/texture-upload-size.html.ini index b2ef943c0601..bdd647de65c4 100644 --- a/tests/wpt/webgl/meta/conformance/textures/misc/texture-upload-size.html.ini +++ b/tests/wpt/webgl/meta/conformance/textures/misc/texture-upload-size.html.ini @@ -14,3 +14,6 @@ [WebGL test #44: could not create image (SVG)] expected: FAIL + [WebGL test #588: could not create image (SVG)] + expected: FAIL +