From e90dd8bc6b8d9cc53bd255bcc203920be8663fd7 Mon Sep 17 00:00:00 2001 From: WPT Sync Bot Date: Tue, 13 Mar 2018 21:24:22 -0400 Subject: [PATCH] Update web-platform-tests to revision b202bbb5aa0d235b22bac11fe902eab1094ef9d2 --- .../createImageBitmap-drawImage.html.ini | 27 ++- tests/wpt/metadata/MANIFEST.json | 187 +++++++++++++++--- .../clear-on-child-with-margins.html.ini | 2 + .../vh_not_refreshing_on_chrome.html.ini | 2 - .../css/cssom/inline-style-001.html.ini | 1 + .../cssom/medialist-interfaces-001.html.ini | 3 + .../cssom/style-sheet-interfaces-001.html.ini | 3 - .../wpt/metadata/encoding/idlharness.html.ini | 3 + .../meta/css/iframe/hide_after_load.html.ini | 2 + .../canvas/rapid-resizing.html.ini | 5 + .../shader-with-non-reserved-words.html.ini | 4 - tests/wpt/web-platform-tests/.gitignore | 34 ++-- .../client-hints/accept_ch.https.html | 30 +++ .../client-hints/accept_ch.https.html.headers | 1 + .../echo_device_memory_header_received.py | 8 + .../clear-on-child-with-margins.html | 14 ++ .../clear-on-parent-and-child.html | 17 ++ ...r-on-parent-with-margins-no-clearance.html | 12 ++ .../clear-on-parent-with-margins.html | 12 ++ .../CSS2/floats-clear/clear-on-parent.html | 12 ++ .../cssUnitValue.tentative.html | 4 +- .../properties/scroll-padding.html | 34 ++++ .../css/cssom/inline-style-001.html | 7 +- .../css/cssom/medialist-interfaces-001.html | 10 +- .../css/cssom/medialist-interfaces-002.html | 2 +- .../css/cssom/medialist-interfaces-004.html | 2 +- .../css/cssom/style-sheet-interfaces-001.html | 22 +-- .../encoding/idlharness.html | 61 +----- .../fetch/api/redirect/redirect-location.js | 2 +- .../interfaces/encoding.idl | 24 +++ .../interfaces/magnetometer.idl | 4 +- .../interfaces/orientation-sensor.idl | 4 +- ...ent-request-abort-method-manual.https.html | 95 +++++++++ .../payment-request-abort-method.https.html | 65 ------ ...t-canmakepayment-method-manual.https.html} | 117 +++++++---- .../testharness_runner.html | 6 + .../wpt/web-platform-tests/tools/.coveragerc | 26 +++ tests/wpt/web-platform-tests/tools/.gitignore | 3 +- .../wpt/web-platform-tests/tools/lint/lint.py | 34 +--- .../tools/third_party/funcsigs/.coveragerc | 6 + .../tools/third_party/pytest/.coveragerc | 4 + .../tools/wptserve/.coveragerc | 11 ++ ...ting-the-current-time-of-an-animation.html | 33 ++++ 43 files changed, 669 insertions(+), 286 deletions(-) create mode 100644 tests/wpt/metadata/css/CSS2/floats-clear/clear-on-child-with-margins.html.ini delete mode 100644 tests/wpt/metadata/css/css-values/vh_not_refreshing_on_chrome.html.ini create mode 100644 tests/wpt/mozilla/meta/css/iframe/hide_after_load.html.ini create mode 100644 tests/wpt/mozilla/meta/webgl/conformance-1.0.3/conformance/canvas/rapid-resizing.html.ini create mode 100644 tests/wpt/web-platform-tests/client-hints/accept_ch.https.html create mode 100644 tests/wpt/web-platform-tests/client-hints/accept_ch.https.html.headers create mode 100644 tests/wpt/web-platform-tests/client-hints/echo_device_memory_header_received.py create mode 100644 tests/wpt/web-platform-tests/css/CSS2/floats-clear/clear-on-child-with-margins.html create mode 100644 tests/wpt/web-platform-tests/css/CSS2/floats-clear/clear-on-parent-and-child.html create mode 100644 tests/wpt/web-platform-tests/css/CSS2/floats-clear/clear-on-parent-with-margins-no-clearance.html create mode 100644 tests/wpt/web-platform-tests/css/CSS2/floats-clear/clear-on-parent-with-margins.html create mode 100644 tests/wpt/web-platform-tests/css/CSS2/floats-clear/clear-on-parent.html create mode 100644 tests/wpt/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/scroll-padding.html create mode 100644 tests/wpt/web-platform-tests/interfaces/encoding.idl create mode 100644 tests/wpt/web-platform-tests/payment-request/payment-request-abort-method-manual.https.html delete mode 100644 tests/wpt/web-platform-tests/payment-request/payment-request-abort-method.https.html rename tests/wpt/web-platform-tests/payment-request/{payment-request-canmakepayment-method.https.html => payment-request-canmakepayment-method-manual.https.html} (58%) create mode 100644 tests/wpt/web-platform-tests/testharness_runner.html create mode 100644 tests/wpt/web-platform-tests/tools/.coveragerc create mode 100644 tests/wpt/web-platform-tests/tools/third_party/funcsigs/.coveragerc create mode 100644 tests/wpt/web-platform-tests/tools/third_party/pytest/.coveragerc create mode 100644 tests/wpt/web-platform-tests/tools/wptserve/.coveragerc diff --git a/tests/wpt/metadata/2dcontext/imagebitmap/createImageBitmap-drawImage.html.ini b/tests/wpt/metadata/2dcontext/imagebitmap/createImageBitmap-drawImage.html.ini index 57022685d3e6..8db1ab505b6b 100644 --- a/tests/wpt/metadata/2dcontext/imagebitmap/createImageBitmap-drawImage.html.ini +++ b/tests/wpt/metadata/2dcontext/imagebitmap/createImageBitmap-drawImage.html.ini @@ -1,17 +1,16 @@ [createImageBitmap-drawImage.html] type: testharness - expected: TIMEOUT [createImageBitmap from a HTMLImageElement, and drawImage on the created ImageBitmap] expected: FAIL [createImageBitmap from a Blob, and drawImage on the created ImageBitmap] - expected: NOTRUN + expected: FAIL [createImageBitmap from a HTMLCanvasElement, and drawImage on the created ImageBitmap] expected: FAIL [createImageBitmap from an ImageBitmap, and drawImage on the created ImageBitmap] - expected: NOTRUN + expected: FAIL [createImageBitmap from an ImageData, and drawImage on the created ImageBitmap] expected: FAIL @@ -44,13 +43,13 @@ expected: FAIL [createImageBitmap from an ImageData with negative sw/sh, and drawImage on the created ImageBitmap] - expected: NOTRUN + expected: FAIL [createImageBitmap from an ImageBitmap with negative sw/sh, and drawImage on the created ImageBitmap] - expected: NOTRUN + expected: FAIL [createImageBitmap from a Blob with negative sw/sh, and drawImage on the created ImageBitmap] - expected: NOTRUN + expected: FAIL [createImageBitmap from a bitmap HTMLImageElement, and drawImage on the created ImageBitmap] expected: FAIL @@ -158,26 +157,26 @@ expected: FAIL [createImageBitmap from an ImageData scaled up, and drawImage on the created ImageBitmap] - expected: TIMEOUT + expected: FAIL [createImageBitmap from an ImageData resized, and drawImage on the created ImageBitmap] - expected: NOTRUN + expected: FAIL [createImageBitmap from an ImageBitmap scaled down, and drawImage on the created ImageBitmap] - expected: NOTRUN + expected: FAIL [createImageBitmap from an ImageBitmap scaled up, and drawImage on the created ImageBitmap] - expected: NOTRUN + expected: FAIL [createImageBitmap from an ImageBitmap resized, and drawImage on the created ImageBitmap] - expected: NOTRUN + expected: FAIL [createImageBitmap from a Blob scaled down, and drawImage on the created ImageBitmap] - expected: NOTRUN + expected: FAIL [createImageBitmap from a Blob scaled up, and drawImage on the created ImageBitmap] - expected: NOTRUN + expected: FAIL [createImageBitmap from a Blob resized, and drawImage on the created ImageBitmap] - expected: NOTRUN + expected: FAIL diff --git a/tests/wpt/metadata/MANIFEST.json b/tests/wpt/metadata/MANIFEST.json index 1b02901142b8..f35dc00fca73 100644 --- a/tests/wpt/metadata/MANIFEST.json +++ b/tests/wpt/metadata/MANIFEST.json @@ -14869,6 +14869,18 @@ {} ] ], + "payment-request/payment-request-abort-method-manual.https.html": [ + [ + "/payment-request/payment-request-abort-method-manual.https.html", + {} + ] + ], + "payment-request/payment-request-canmakepayment-method-manual.https.html": [ + [ + "/payment-request/payment-request-canmakepayment-method-manual.https.html", + {} + ] + ], "payment-request/payment-response/complete-method-manual.https.html": [ [ "/payment-request/payment-response/complete-method-manual.https.html", @@ -47231,6 +47243,66 @@ {} ] ], + "css/CSS2/floats-clear/clear-on-child-with-margins.html": [ + [ + "/css/CSS2/floats-clear/clear-on-child-with-margins.html", + [ + [ + "/css/reference/ref-filled-green-100px-square-only.html", + "==" + ] + ], + {} + ] + ], + "css/CSS2/floats-clear/clear-on-parent-and-child.html": [ + [ + "/css/CSS2/floats-clear/clear-on-parent-and-child.html", + [ + [ + "/css/reference/ref-filled-green-200px-square.html", + "==" + ] + ], + {} + ] + ], + "css/CSS2/floats-clear/clear-on-parent-with-margins-no-clearance.html": [ + [ + "/css/CSS2/floats-clear/clear-on-parent-with-margins-no-clearance.html", + [ + [ + "/css/reference/ref-filled-green-100px-square-only.html", + "==" + ] + ], + {} + ] + ], + "css/CSS2/floats-clear/clear-on-parent-with-margins.html": [ + [ + "/css/CSS2/floats-clear/clear-on-parent-with-margins.html", + [ + [ + "/css/reference/ref-filled-green-200px-square.html", + "==" + ] + ], + {} + ] + ], + "css/CSS2/floats-clear/clear-on-parent.html": [ + [ + "/css/CSS2/floats-clear/clear-on-parent.html", + [ + [ + "/css/reference/ref-filled-green-200px-square.html", + "==" + ] + ], + {} + ] + ], "css/CSS2/floats-clear/clearance-006.xht": [ [ "/css/CSS2/floats-clear/clearance-006.xht", @@ -190268,6 +190340,16 @@ {} ] ], + "client-hints/accept_ch.https.html.headers": [ + [ + {} + ] + ], + "client-hints/echo_device_memory_header_received.py": [ + [ + {} + ] + ], "clipboard-apis/OWNERS": [ [ {} @@ -285098,6 +285180,11 @@ {} ] ], + "interfaces/encoding.idl": [ + [ + {} + ] + ], "interfaces/encrypted-media.idl": [ [ {} @@ -307977,6 +308064,12 @@ {} ] ], + "client-hints/accept_ch.https.html": [ + [ + "/client-hints/accept_ch.https.html", + {} + ] + ], "clipboard-apis/async-interfaces.https.html": [ [ "/clipboard-apis/async-interfaces.https.html", @@ -317007,6 +317100,12 @@ {} ] ], + "css/css-typed-om/the-stylepropertymap/properties/scroll-padding.html": [ + [ + "/css/css-typed-om/the-stylepropertymap/properties/scroll-padding.html", + {} + ] + ], "css/css-typed-om/the-stylepropertymap/properties/shape-outside.html": [ [ "/css/css-typed-om/the-stylepropertymap/properties/shape-outside.html", @@ -349753,18 +349852,6 @@ {} ] ], - "payment-request/payment-request-abort-method.https.html": [ - [ - "/payment-request/payment-request-abort-method.https.html", - {} - ] - ], - "payment-request/payment-request-canmakepayment-method.https.html": [ - [ - "/payment-request/payment-request-canmakepayment-method.https.html", - {} - ] - ], "payment-request/payment-request-constructor-crash.https.html": [ [ "/payment-request/payment-request-constructor-crash.https.html", @@ -390541,7 +390628,7 @@ "support" ], "./.gitignore": [ - "c914a6a4aa7fc0ae0e948219c7949481d616d1c3", + "4c0250a2fdf8f32f9df4db278c03f0a8722a90d7", "support" ], "./.gitmodules": [ @@ -401316,6 +401403,18 @@ "10f5f9d409ef513edb129e0e8522aa5f74d51ce8", "support" ], + "client-hints/accept_ch.https.html": [ + "b54ae9b17399e0fe4472fedbf1badd67d28e68f3", + "testharness" + ], + "client-hints/accept_ch.https.html.headers": [ + "bf59baf9a030d117964df414efc11ddb07e7a7fa", + "support" + ], + "client-hints/echo_device_memory_header_received.py": [ + "defa16c455bebc2589c058d0d888326d667e317a", + "support" + ], "clipboard-apis/OWNERS": [ "bae753666bda85e9805a5e2fad80ba71459b8aba", "support" @@ -440156,6 +440255,26 @@ "3f902ea05caf3cb71e978749bd47b120d10366e2", "reftest" ], + "css/CSS2/floats-clear/clear-on-child-with-margins.html": [ + "69b04e20fa82677e4d2736bd6ec9c370147e4061", + "reftest" + ], + "css/CSS2/floats-clear/clear-on-parent-and-child.html": [ + "bbf7831640ee2aa3e29aa6695682d1e14971948b", + "reftest" + ], + "css/CSS2/floats-clear/clear-on-parent-with-margins-no-clearance.html": [ + "d4b2bf3b4b6761c9531859e6cedb9d08a928880f", + "reftest" + ], + "css/CSS2/floats-clear/clear-on-parent-with-margins.html": [ + "dbaee65a956a9b0dfc8b1bbb3ae70bd29bb02c6c", + "reftest" + ], + "css/CSS2/floats-clear/clear-on-parent.html": [ + "63c9122c39983b4c3a7d10f92399e746411022c3", + "reftest" + ], "css/CSS2/floats-clear/clearance-006-ref.xht": [ "2305823fd342085286fe1f5e0cdb27d7cd6fe436", "support" @@ -521545,7 +521664,7 @@ "testharness" ], "css/css-typed-om/stylevalue-subclasses/numeric-objects/cssUnitValue.tentative.html": [ - "9d855c711332b344078fc89bac6ed67091fa1ddd", + "e2d56515f3580649fc9cc8188b39056beb030036", "testharness" ], "css/css-typed-om/stylevalue-subclasses/numeric-objects/cssnumericvalue-multiply-two-types.tentative.html": [ @@ -521884,6 +522003,10 @@ "68a2611eaf9eecb7393c2b0db0f4378ebe285f22", "testharness" ], + "css/css-typed-om/the-stylepropertymap/properties/scroll-padding.html": [ + "d37d336e4695e5055706a7822572b81b943fdbd4", + "testharness" + ], "css/css-typed-om/the-stylepropertymap/properties/shape-outside.html": [ "3189c7b3903d30f31836ea845aebecf599198c79", "testharness" @@ -532025,7 +532148,7 @@ "testharness" ], "css/cssom/inline-style-001.html": [ - "da50f9738f161a0bb9af5a5636634346bb683fa9", + "4c58b6153eabe796749dcaf181e03d7dce2c9c07", "testharness" ], "css/cssom/insertRule-charset-no-index.html": [ @@ -532061,11 +532184,11 @@ "reftest" ], "css/cssom/medialist-interfaces-001.html": [ - "32d486ecdd41418e734be028c150b0183b8d3316", + "bae698d83d94e35d31750e0690e13c1ab5334379", "testharness" ], "css/cssom/medialist-interfaces-002.html": [ - "20d4d9e76e0331816aed5f70182dee6966e568e7", + "e04c0d3c8533660f524310350c7e71defa4888b2", "testharness" ], "css/cssom/medialist-interfaces-003.html": [ @@ -532073,7 +532196,7 @@ "testharness" ], "css/cssom/medialist-interfaces-004.html": [ - "9558544a6785ac732150b8a50bedbaf3615fa890", + "a8a6a1b9966526de2d846baf6176880353f84e1a", "testharness" ], "css/cssom/overflow-serialization.html": [ @@ -532121,7 +532244,7 @@ "testharness" ], "css/cssom/style-sheet-interfaces-001.html": [ - "6dbb52cd85cb3bbc711a3569e0f253d7086a43a0", + "3fbe87bc1e363bf59a84c5fbdd8b2450909c6ca1", "testharness" ], "css/cssom/style-sheet-interfaces-002.html": [ @@ -546717,7 +546840,7 @@ "testharness" ], "encoding/idlharness.html": [ - "7f1eee3e9d3554fe49e04014501ed12bc57b89e8", + "fa520e077bce06a56406cb61bb8c150264699624", "testharness" ], "encoding/iso-2022-jp-decoder.html": [ @@ -549641,7 +549764,7 @@ "testharness" ], "fetch/api/redirect/redirect-location.js": [ - "3b48bf04659cc82462c3f33db47fd2f44f63c0c3", + "c8795b2a372e365e1b6e052d8a3309f3bfb2c143", "support" ], "fetch/api/redirect/redirect-method-worker.html": [ @@ -571064,6 +571187,10 @@ "2d65a8029a80cfc97398d18f911f1ae65067e765", "support" ], + "interfaces/encoding.idl": [ + "0dd77d1c6d854b0bdd003107c2385a224e1953f8", + "support" + ], "interfaces/encrypted-media.idl": [ "ef1f1432c42fc6d01f3bfbd576fa5c7de349de96", "support" @@ -571101,7 +571228,7 @@ "support" ], "interfaces/magnetometer.idl": [ - "78fdc6ec345a5f05e86cb104cb025689638bbe17", + "ffac480912edba82886fef6d5368092d237a0c7f", "support" ], "interfaces/mediacapture-main.idl": [ @@ -571109,7 +571236,7 @@ "support" ], "interfaces/orientation-sensor.idl": [ - "d75a765c9456c21ed2733fa89a20f3e2d0eb2131", + "1f0698a8611726b1ba724a5d7a0961e836c7b07e", "support" ], "interfaces/payment-handler.idl": [ @@ -580860,13 +580987,13 @@ "d269e8378f2a84ba96c981536667817e0db9e2d1", "testharness" ], - "payment-request/payment-request-abort-method.https.html": [ - "30c62af4a05a4d83cbbd1e82d0df62bae9a85e96", - "testharness" + "payment-request/payment-request-abort-method-manual.https.html": [ + "6ed75457d922671e7b2ffbf1c0d22f69bbb681e4", + "manual" ], - "payment-request/payment-request-canmakepayment-method.https.html": [ - "0d863558b996df81a36207201bbf8c649688845d", - "testharness" + "payment-request/payment-request-canmakepayment-method-manual.https.html": [ + "40e5bf0445eedb6bb78bd61fa4a468652462a14d", + "manual" ], "payment-request/payment-request-constructor-crash.https.html": [ "383d1c3f9505ee63d504bee87e13efa90ba49f3d", @@ -599973,7 +600100,7 @@ "testharness" ], "web-animations/timing-model/animations/setting-the-current-time-of-an-animation.html": [ - "a7da92b9624750eccb9dce1d32e522fdbb65176f", + "aa5f258132490ade2dbd9485c85f749cbab293a5", "testharness" ], "web-animations/timing-model/animations/setting-the-playback-rate-of-an-animation.html": [ diff --git a/tests/wpt/metadata/css/CSS2/floats-clear/clear-on-child-with-margins.html.ini b/tests/wpt/metadata/css/CSS2/floats-clear/clear-on-child-with-margins.html.ini new file mode 100644 index 000000000000..a7392b972076 --- /dev/null +++ b/tests/wpt/metadata/css/CSS2/floats-clear/clear-on-child-with-margins.html.ini @@ -0,0 +1,2 @@ +[clear-on-child-with-margins.html] + expected: FAIL diff --git a/tests/wpt/metadata/css/css-values/vh_not_refreshing_on_chrome.html.ini b/tests/wpt/metadata/css/css-values/vh_not_refreshing_on_chrome.html.ini deleted file mode 100644 index 26435e28b090..000000000000 --- a/tests/wpt/metadata/css/css-values/vh_not_refreshing_on_chrome.html.ini +++ /dev/null @@ -1,2 +0,0 @@ -[vh_not_refreshing_on_chrome.html] - expected: FAIL diff --git a/tests/wpt/metadata/css/cssom/inline-style-001.html.ini b/tests/wpt/metadata/css/cssom/inline-style-001.html.ini index 22b7ca432d6b..96205b5e8171 100644 --- a/tests/wpt/metadata/css/cssom/inline-style-001.html.ini +++ b/tests/wpt/metadata/css/cssom/inline-style-001.html.ini @@ -1,5 +1,6 @@ [inline-style-001.html] type: testharness + expected: TIMEOUT [CSSStyleDeclaration_accessible] expected: FAIL diff --git a/tests/wpt/metadata/css/cssom/medialist-interfaces-001.html.ini b/tests/wpt/metadata/css/cssom/medialist-interfaces-001.html.ini index 52c9d59f35a4..cf6011a8f9d6 100644 --- a/tests/wpt/metadata/css/cssom/medialist-interfaces-001.html.ini +++ b/tests/wpt/metadata/css/cssom/medialist-interfaces-001.html.ini @@ -12,3 +12,6 @@ [mediatest_medialist_serialize_lexicographical] expected: FAIL + [mediatest_medialist_serialize_order] + expected: FAIL + diff --git a/tests/wpt/metadata/css/cssom/style-sheet-interfaces-001.html.ini b/tests/wpt/metadata/css/cssom/style-sheet-interfaces-001.html.ini index cba5df52390f..ee3116157611 100644 --- a/tests/wpt/metadata/css/cssom/style-sheet-interfaces-001.html.ini +++ b/tests/wpt/metadata/css/cssom/style-sheet-interfaces-001.html.ini @@ -1,8 +1,5 @@ [style-sheet-interfaces-001.html] type: testharness - [sheet_property] - expected: FAIL - [CSSStyleSheet_properties] expected: FAIL diff --git a/tests/wpt/metadata/encoding/idlharness.html.ini b/tests/wpt/metadata/encoding/idlharness.html.ini index ed1d61cc78d4..b2e98887ef99 100644 --- a/tests/wpt/metadata/encoding/idlharness.html.ini +++ b/tests/wpt/metadata/encoding/idlharness.html.ini @@ -11,3 +11,6 @@ [TextDecoder interface: new TextDecoder() must inherit property "ignoreBOM" with the proper type] expected: FAIL + [idlharness test: Encoding Living Standard API] + expected: FAIL + diff --git a/tests/wpt/mozilla/meta/css/iframe/hide_after_load.html.ini b/tests/wpt/mozilla/meta/css/iframe/hide_after_load.html.ini new file mode 100644 index 000000000000..65c78fd3a4a2 --- /dev/null +++ b/tests/wpt/mozilla/meta/css/iframe/hide_after_load.html.ini @@ -0,0 +1,2 @@ +[hide_after_load.html] + expected: TIMEOUT diff --git a/tests/wpt/mozilla/meta/webgl/conformance-1.0.3/conformance/canvas/rapid-resizing.html.ini b/tests/wpt/mozilla/meta/webgl/conformance-1.0.3/conformance/canvas/rapid-resizing.html.ini new file mode 100644 index 000000000000..1e2567027d8a --- /dev/null +++ b/tests/wpt/mozilla/meta/webgl/conformance-1.0.3/conformance/canvas/rapid-resizing.html.ini @@ -0,0 +1,5 @@ +[rapid-resizing.html] + expected: TIMEOUT + [Overall test] + expected: NOTRUN + diff --git a/tests/wpt/mozilla/meta/webgl/conformance-1.0.3/conformance/glsl/misc/shader-with-non-reserved-words.html.ini b/tests/wpt/mozilla/meta/webgl/conformance-1.0.3/conformance/glsl/misc/shader-with-non-reserved-words.html.ini index ad64e1afe0ba..c508ae3ae719 100644 --- a/tests/wpt/mozilla/meta/webgl/conformance-1.0.3/conformance/glsl/misc/shader-with-non-reserved-words.html.ini +++ b/tests/wpt/mozilla/meta/webgl/conformance-1.0.3/conformance/glsl/misc/shader-with-non-reserved-words.html.ini @@ -1,6 +1,5 @@ [shader-with-non-reserved-words.html] type: testharness - expected: TIMEOUT [WebGL test #1696: shader with: 'dmat2' failed to compile] expected: FAIL @@ -145,6 +144,3 @@ [WebGL test #1862: shader with: 'dmat4x4' failed to compile] expected: FAIL - [Overall test] - expected: NOTRUN - diff --git a/tests/wpt/web-platform-tests/.gitignore b/tests/wpt/web-platform-tests/.gitignore index 409cd2c1009f..358ea4b3ff4f 100644 --- a/tests/wpt/web-platform-tests/.gitignore +++ b/tests/wpt/web-platform-tests/.gitignore @@ -1,20 +1,30 @@ -*# +# Python *.py[co] +.virtualenv/ +_venv/ +.cache/ +.pytest_cache/ + +# Node +node_modules/ + +# WPT repo stuff +/MANIFEST.json + +testharness_runner.html +!/testharness_runner.html +!/tools/wptrunner/wptrunner/testharness_runner.html + +_certs +config.json + +# Various OS/editor specific files +*# *.sw[po] *~ -MANIFEST.json -!content-security-policy/support/manifest.json -!payment-handler/manifest.json \#* -_certs -.virtualenv -config.json -node_modules scratch -testharness_runner.html -webdriver/.idea +.idea/ .vscode/ .DS_Store *.rej -_venv -webdriver/.cache diff --git a/tests/wpt/web-platform-tests/client-hints/accept_ch.https.html b/tests/wpt/web-platform-tests/client-hints/accept_ch.https.html new file mode 100644 index 000000000000..c0f0581dedbe --- /dev/null +++ b/tests/wpt/web-platform-tests/client-hints/accept_ch.https.html @@ -0,0 +1,30 @@ + + + + + + + + + diff --git a/tests/wpt/web-platform-tests/client-hints/accept_ch.https.html.headers b/tests/wpt/web-platform-tests/client-hints/accept_ch.https.html.headers new file mode 100644 index 000000000000..401e1af283c0 --- /dev/null +++ b/tests/wpt/web-platform-tests/client-hints/accept_ch.https.html.headers @@ -0,0 +1 @@ +Accept-CH: device-memory \ No newline at end of file diff --git a/tests/wpt/web-platform-tests/client-hints/echo_device_memory_header_received.py b/tests/wpt/web-platform-tests/client-hints/echo_device_memory_header_received.py new file mode 100644 index 000000000000..0ab4368cf0b4 --- /dev/null +++ b/tests/wpt/web-platform-tests/client-hints/echo_device_memory_header_received.py @@ -0,0 +1,8 @@ +def main(request, response): + """ + Simple handler that sets a response header based on if device-memory + request header was received or not. + """ + + if "device-memory" in request.headers: + response.headers.set("device-memory-received", "true") \ No newline at end of file diff --git a/tests/wpt/web-platform-tests/css/CSS2/floats-clear/clear-on-child-with-margins.html b/tests/wpt/web-platform-tests/css/CSS2/floats-clear/clear-on-child-with-margins.html new file mode 100644 index 000000000000..f65f314a2f8a --- /dev/null +++ b/tests/wpt/web-platform-tests/css/CSS2/floats-clear/clear-on-child-with-margins.html @@ -0,0 +1,14 @@ + +Child of block with clear + + + +

Test passes if there is a filled green square.

+
+
+
+
+
+
+
+
diff --git a/tests/wpt/web-platform-tests/css/CSS2/floats-clear/clear-on-parent-and-child.html b/tests/wpt/web-platform-tests/css/CSS2/floats-clear/clear-on-parent-and-child.html new file mode 100644 index 000000000000..d7dc26f30a8c --- /dev/null +++ b/tests/wpt/web-platform-tests/css/CSS2/floats-clear/clear-on-parent-and-child.html @@ -0,0 +1,17 @@ + +Child of block with clear + + + +

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

+
+
+
+
+
+
+
+
+ diff --git a/tests/wpt/web-platform-tests/css/CSS2/floats-clear/clear-on-parent-with-margins-no-clearance.html b/tests/wpt/web-platform-tests/css/CSS2/floats-clear/clear-on-parent-with-margins-no-clearance.html new file mode 100644 index 000000000000..29ecc78f4550 --- /dev/null +++ b/tests/wpt/web-platform-tests/css/CSS2/floats-clear/clear-on-parent-with-margins-no-clearance.html @@ -0,0 +1,12 @@ + +Child of block with clear + + + +

Test passes if there is a filled green square.

+
+
+
+
+
+
diff --git a/tests/wpt/web-platform-tests/css/CSS2/floats-clear/clear-on-parent-with-margins.html b/tests/wpt/web-platform-tests/css/CSS2/floats-clear/clear-on-parent-with-margins.html new file mode 100644 index 000000000000..9b331d5e4ca6 --- /dev/null +++ b/tests/wpt/web-platform-tests/css/CSS2/floats-clear/clear-on-parent-with-margins.html @@ -0,0 +1,12 @@ + +Child of block with clear + + + +

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

+
+
+
+
+
+
diff --git a/tests/wpt/web-platform-tests/css/CSS2/floats-clear/clear-on-parent.html b/tests/wpt/web-platform-tests/css/CSS2/floats-clear/clear-on-parent.html new file mode 100644 index 000000000000..755cd7880950 --- /dev/null +++ b/tests/wpt/web-platform-tests/css/CSS2/floats-clear/clear-on-parent.html @@ -0,0 +1,12 @@ + +Child of block with clear + + + +

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

+
+
+
+
+
+
diff --git a/tests/wpt/web-platform-tests/css/css-typed-om/stylevalue-subclasses/numeric-objects/cssUnitValue.tentative.html b/tests/wpt/web-platform-tests/css/css-typed-om/stylevalue-subclasses/numeric-objects/cssUnitValue.tentative.html index 24769b3774ee..e1278b20b6ba 100644 --- a/tests/wpt/web-platform-tests/css/css-typed-om/stylevalue-subclasses/numeric-objects/cssUnitValue.tentative.html +++ b/tests/wpt/web-platform-tests/css/css-typed-om/stylevalue-subclasses/numeric-objects/cssUnitValue.tentative.html @@ -9,8 +9,8 @@ 'use strict'; const gInvalidTestUnits = [ - { value: '', desc: 'an empty string' }, - { value: 'lemon', desc: 'an invalid unit' }, + { unit: '', desc: 'an empty string' }, + { unit: 'lemon', desc: 'an invalid unit' }, ]; for (const {unit, desc} of gInvalidTestUnits) { diff --git a/tests/wpt/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/scroll-padding.html b/tests/wpt/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/scroll-padding.html new file mode 100644 index 000000000000..228cf1fdc2d7 --- /dev/null +++ b/tests/wpt/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/scroll-padding.html @@ -0,0 +1,34 @@ + + +scroll-padding related properties + + + + + + + + +
+ diff --git a/tests/wpt/web-platform-tests/css/cssom/inline-style-001.html b/tests/wpt/web-platform-tests/css/cssom/inline-style-001.html index b8b1aaaf7076..51f36f250e5c 100644 --- a/tests/wpt/web-platform-tests/css/cssom/inline-style-001.html +++ b/tests/wpt/web-platform-tests/css/cssom/inline-style-001.html @@ -16,15 +16,14 @@ diff --git a/tests/wpt/web-platform-tests/css/cssom/medialist-interfaces-002.html b/tests/wpt/web-platform-tests/css/cssom/medialist-interfaces-002.html index bba25a1ebb59..2b6bba2a661e 100644 --- a/tests/wpt/web-platform-tests/css/cssom/medialist-interfaces-002.html +++ b/tests/wpt/web-platform-tests/css/cssom/medialist-interfaces-002.html @@ -58,7 +58,7 @@ media_list.appendMedium("all"); - media_list.deleteMedium("screen"); + assert_throws("NotFoundError", () => media_list.deleteMedium("screen")); assert_equals(media_list.length, 1); assert_equals(media_list.item(0), "all"); diff --git a/tests/wpt/web-platform-tests/css/cssom/medialist-interfaces-004.html b/tests/wpt/web-platform-tests/css/cssom/medialist-interfaces-004.html index 416addae7b55..cf9befb8ffb6 100644 --- a/tests/wpt/web-platform-tests/css/cssom/medialist-interfaces-004.html +++ b/tests/wpt/web-platform-tests/css/cssom/medialist-interfaces-004.html @@ -55,7 +55,7 @@ assert_equals(media_list.length, 2); assert_equals(media_list.item(0), "screen"); assert_equals(media_list.item(1), "all"); - assert_equals(media_list.mediaText, "all, screen"); + assert_equals(media_list.mediaText, "screen, all"); }, "appendMedium_correctly_appends_medium_to_nonempty_MediaList", { assert: "MediaList.appendMedium correctly adds medium to a MediaList that already has a medium." }); diff --git a/tests/wpt/web-platform-tests/css/cssom/style-sheet-interfaces-001.html b/tests/wpt/web-platform-tests/css/cssom/style-sheet-interfaces-001.html index 79c485038dda..8a757e5ca2a3 100644 --- a/tests/wpt/web-platform-tests/css/cssom/style-sheet-interfaces-001.html +++ b/tests/wpt/web-platform-tests/css/cssom/style-sheet-interfaces-001.html @@ -24,11 +24,11 @@ var styleSheet; var linkSheet; test(function() { - assert_own_property(styleElement, "sheet"); + assert_idl_attribute(styleElement, "sheet"); assert_readonly(styleElement, "sheet"); styleSheet = styleElement.sheet; assert_true(styleSheet instanceof CSSStyleSheet); - assert_own_property(linkElement, "sheet"); + assert_idl_attribute(linkElement, "sheet"); linkSheet = linkElement.sheet; assert_true(linkSheet instanceof CSSStyleSheet); }, "sheet_property", @@ -48,8 +48,8 @@ assert: "The sheet property on LinkStyle should always return the current associated style sheet." }); test(function() { - assert_own_property(styleSheet, "ownerRule"); - assert_own_property(styleSheet, "cssRules"); + assert_idl_attribute(styleSheet, "ownerRule"); + assert_idl_attribute(styleSheet, "cssRules"); assert_inherits(styleSheet, "insertRule"); assert_inherits(styleSheet, "deleteRule"); @@ -71,13 +71,13 @@ assert: "CSSStyleSheet initial property values are correct" }); test(function() { - assert_own_property(styleSheet, "type"); - assert_own_property(styleSheet, "disabled"); - assert_own_property(styleSheet, "ownerNode"); - assert_own_property(styleSheet, "parentStyleSheet"); - assert_own_property(styleSheet, "href"); - assert_own_property(styleSheet, "title"); - assert_own_property(styleSheet, "media"); + assert_idl_attribute(styleSheet, "type"); + assert_idl_attribute(styleSheet, "disabled"); + assert_idl_attribute(styleSheet, "ownerNode"); + assert_idl_attribute(styleSheet, "parentStyleSheet"); + assert_idl_attribute(styleSheet, "href"); + assert_idl_attribute(styleSheet, "title"); + assert_idl_attribute(styleSheet, "media"); assert_readonly(styleSheet, "type"); assert_readonly(styleSheet, "ownerNode"); diff --git a/tests/wpt/web-platform-tests/encoding/idlharness.html b/tests/wpt/web-platform-tests/encoding/idlharness.html index 3359744c8b67..03cec924131b 100644 --- a/tests/wpt/web-platform-tests/encoding/idlharness.html +++ b/tests/wpt/web-platform-tests/encoding/idlharness.html @@ -11,56 +11,15 @@

idlharness test

This test validates the WebIDL included in the Encoding Living Standard.

- - - - diff --git a/tests/wpt/web-platform-tests/fetch/api/redirect/redirect-location.js b/tests/wpt/web-platform-tests/fetch/api/redirect/redirect-location.js index cb038a6812ce..5b9a4fe454ab 100644 --- a/tests/wpt/web-platform-tests/fetch/api/redirect/redirect-location.js +++ b/tests/wpt/web-platform-tests/fetch/api/redirect/redirect-location.js @@ -32,7 +32,7 @@ function redirectLocation(desc, redirectUrl, redirectLocation, redirectStatus, r var redirUrl = RESOURCES_DIR + "redirect.py"; var locationUrl = "top.txt"; -var invalidLocationUrl = "#invalidurl:"; +var invalidLocationUrl = "invalidurl:"; var dataLocationUrl = "data:,data%20url"; // FIXME: We may want to mix redirect-mode and cors-mode. // FIXME: Add tests for "error" redirect-mode. diff --git a/tests/wpt/web-platform-tests/interfaces/encoding.idl b/tests/wpt/web-platform-tests/interfaces/encoding.idl new file mode 100644 index 000000000000..8f4189be796d --- /dev/null +++ b/tests/wpt/web-platform-tests/interfaces/encoding.idl @@ -0,0 +1,24 @@ +dictionary TextDecoderOptions { + boolean fatal = false; + boolean ignoreBOM = false; +}; + +dictionary TextDecodeOptions { + boolean stream = false; +}; + +[Constructor(optional DOMString label = "utf-8", optional TextDecoderOptions options), + Exposed=(Window,Worker)] +interface TextDecoder { + readonly attribute DOMString encoding; + readonly attribute boolean fatal; + readonly attribute boolean ignoreBOM; + USVString decode(optional BufferSource input, optional TextDecodeOptions options); +}; + +[Constructor, + Exposed=(Window,Worker)] +interface TextEncoder { + readonly attribute DOMString encoding; + [NewObject] Uint8Array encode(optional USVString input = ""); +}; diff --git a/tests/wpt/web-platform-tests/interfaces/magnetometer.idl b/tests/wpt/web-platform-tests/interfaces/magnetometer.idl index 5ede1ecdb7c7..a9ef069276af 100644 --- a/tests/wpt/web-platform-tests/interfaces/magnetometer.idl +++ b/tests/wpt/web-platform-tests/interfaces/magnetometer.idl @@ -6,10 +6,10 @@ interface Magnetometer : Sensor { readonly attribute double? z; }; -enum LocalCoordinateSystem { "device", "screen" }; +enum MagnetometerLocalCoordinateSystem { "device", "screen" }; dictionary MagnetometerSensorOptions : SensorOptions { - LocalCoordinateSystem referenceFrame = "device"; + MagnetometerLocalCoordinateSystem referenceFrame = "device"; }; [Constructor(optional MagnetometerSensorOptions sensorOptions), SecureContext, diff --git a/tests/wpt/web-platform-tests/interfaces/orientation-sensor.idl b/tests/wpt/web-platform-tests/interfaces/orientation-sensor.idl index 2fee35d937e1..df2ea38e4084 100644 --- a/tests/wpt/web-platform-tests/interfaces/orientation-sensor.idl +++ b/tests/wpt/web-platform-tests/interfaces/orientation-sensor.idl @@ -6,10 +6,10 @@ interface OrientationSensor : Sensor { void populateMatrix(RotationMatrixType targetMatrix); }; -enum LocalCoordinateSystem { "device", "screen" }; +enum OrientationSensorLocalCoordinateSystem { "device", "screen" }; dictionary OrientationSensorOptions : SensorOptions { - LocalCoordinateSystem referenceFrame = "device"; + OrientationSensorLocalCoordinateSystem referenceFrame = "device"; }; [Constructor(optional OrientationSensorOptions sensorOptions), SecureContext, Exposed=Window] diff --git a/tests/wpt/web-platform-tests/payment-request/payment-request-abort-method-manual.https.html b/tests/wpt/web-platform-tests/payment-request/payment-request-abort-method-manual.https.html new file mode 100644 index 000000000000..9552c3ce3fde --- /dev/null +++ b/tests/wpt/web-platform-tests/payment-request/payment-request-abort-method-manual.https.html @@ -0,0 +1,95 @@ + + +Test for PaymentRequest.abort() method + + + + + +

Test for PaymentRequest.abort() method

+

+ Click on each button in sequence from top to bottom without refreshing the page. + No payment sheet will be shown, but the tests will run in the background. +

+
    +
  1. + +
  2. +
  3. + +
  4. +
+ + If you find a buggy test, please file a bug + and tag one of the owners. + diff --git a/tests/wpt/web-platform-tests/payment-request/payment-request-abort-method.https.html b/tests/wpt/web-platform-tests/payment-request/payment-request-abort-method.https.html deleted file mode 100644 index cfcdb75a66b8..000000000000 --- a/tests/wpt/web-platform-tests/payment-request/payment-request-abort-method.https.html +++ /dev/null @@ -1,65 +0,0 @@ - - - -Test for PaymentRequest.abort() method - - - - diff --git a/tests/wpt/web-platform-tests/payment-request/payment-request-canmakepayment-method.https.html b/tests/wpt/web-platform-tests/payment-request/payment-request-canmakepayment-method-manual.https.html similarity index 58% rename from tests/wpt/web-platform-tests/payment-request/payment-request-canmakepayment-method.https.html rename to tests/wpt/web-platform-tests/payment-request/payment-request-canmakepayment-method-manual.https.html index 9fe0c4a0811d..caf43d1cb0cc 100644 --- a/tests/wpt/web-platform-tests/payment-request/payment-request-canmakepayment-method.https.html +++ b/tests/wpt/web-platform-tests/payment-request/payment-request-canmakepayment-method-manual.https.html @@ -1,11 +1,15 @@ - Tests for PaymentRequest.canMakePayment() method + +

Tests for PaymentRequest.canMakePayment() method

+

+ Click on each button in sequence from top to bottom without refreshing the page. + No payment sheet will be shown, but the tests will run in the background. +

+
    +
  1. + +
  2. +
  3. + +
  4. +
+ + If you find a buggy test, please file a bug + and tag one of the owners. + diff --git a/tests/wpt/web-platform-tests/testharness_runner.html b/tests/wpt/web-platform-tests/testharness_runner.html new file mode 100644 index 000000000000..1cc80a270e2c --- /dev/null +++ b/tests/wpt/web-platform-tests/testharness_runner.html @@ -0,0 +1,6 @@ + + + diff --git a/tests/wpt/web-platform-tests/tools/.coveragerc b/tests/wpt/web-platform-tests/tools/.coveragerc new file mode 100644 index 000000000000..6c49e5135e88 --- /dev/null +++ b/tests/wpt/web-platform-tests/tools/.coveragerc @@ -0,0 +1,26 @@ +[run] +branch = True +parallel = True +omit = + html5lib/* + py/* + pytest/* + pywebsocket/* + six/* + webdriver/* + wptserve/* + */site-packages/* + */lib_pypy/* + +[paths] +html5lib = + html5lib/html5lib + .tox/**/site-packages/html5lib + +pytest = + pytest/_pytest + .tox/**/site-packages/_pytest + +py = + py/py + .tox/**/site-packages/py diff --git a/tests/wpt/web-platform-tests/tools/.gitignore b/tests/wpt/web-platform-tests/tools/.gitignore index cd45bceafee5..034e3ccb7604 100644 --- a/tests/wpt/web-platform-tests/tools/.gitignore +++ b/tests/wpt/web-platform-tests/tools/.gitignore @@ -1,5 +1,6 @@ *# -.coverage* +.coverage +.coverage.* htmlcov/ coverage.xml .tox/ diff --git a/tests/wpt/web-platform-tests/tools/lint/lint.py b/tests/wpt/web-platform-tests/tools/lint/lint.py index e3610452a2b4..b47637a227ff 100644 --- a/tests/wpt/web-platform-tests/tools/lint/lint.py +++ b/tests/wpt/web-platform-tests/tools/lint/lint.py @@ -9,7 +9,6 @@ import re import subprocess import sys -import tempfile from collections import defaultdict @@ -135,28 +134,6 @@ def check_ahem_copy(repo_root, path): return [] -def check_git_ignore(repo_root, paths): - errors = [] - with tempfile.TemporaryFile('w+') as f: - f.write('\n'.join(paths)) - f.seek(0) - try: - matches = subprocess.check_output( - ["git", "check-ignore", "--verbose", "--no-index", "--stdin"], stdin=f) - for match in matches.strip().split('\n'): - match_filter, path = match.split() - _, _, filter_string = match_filter.split(':') - # If the matching filter reported by check-ignore is a special-case exception, - # that's fine. Otherwise, it requires a new special-case exception. - if filter_string != '!' + path: - errors += [("IGNORED PATH", "%s matches an ignore filter in .gitignore - " - "please add a .gitignore exception" % path, path, None)] - except subprocess.CalledProcessError as e: - # Nonzero return code means that no match exists. - pass - return errors - - drafts_csswg_re = re.compile(r"https?\:\/\/drafts\.csswg\.org\/([^/?#]+)") w3c_tr_re = re.compile(r"https?\:\/\/www\.w3c?\.org\/TR\/([^/?#]+)") w3c_dev_re = re.compile(r"https?\:\/\/dev\.w3c?\.org\/[^/?#]+\/([^/?#]+)") @@ -301,9 +278,7 @@ def filter_whitelist_errors(data, errors): for i, (error_type, msg, path, line) in enumerate(errors): normpath = os.path.normcase(path) - # Allow whitelisting all lint errors except the IGNORED PATH lint, - # which explains how to fix it correctly and shouldn't be ignored. - if error_type in data and error_type != "IGNORED PATH": + if error_type in data: wl_files = data[error_type] for file_match, allowed_lines in iteritems(wl_files): if None in allowed_lines or line in allowed_lines: @@ -865,13 +840,6 @@ def process_errors(errors): all_paths_lints = [check_css_globally_unique] file_lints = [check_regexp_line, check_parsed, check_python_ast, check_script_metadata] -# Don't break users of the lint that don't have git installed. -try: - subprocess.check_output(["git", "--version"]) - all_paths_lints += [check_git_ignore] -except subprocess.CalledProcessError: - print('No git present; skipping .gitignore lint.') - if __name__ == "__main__": args = create_parser().parse_args() error_count = main(**vars(args)) diff --git a/tests/wpt/web-platform-tests/tools/third_party/funcsigs/.coveragerc b/tests/wpt/web-platform-tests/tools/third_party/funcsigs/.coveragerc new file mode 100644 index 000000000000..d83bfc220b12 --- /dev/null +++ b/tests/wpt/web-platform-tests/tools/third_party/funcsigs/.coveragerc @@ -0,0 +1,6 @@ +[run] +source=funcsigs +omit=funcsigs/odict* + +[report] +include=funcsigs* diff --git a/tests/wpt/web-platform-tests/tools/third_party/pytest/.coveragerc b/tests/wpt/web-platform-tests/tools/third_party/pytest/.coveragerc new file mode 100644 index 000000000000..61ff66749dc8 --- /dev/null +++ b/tests/wpt/web-platform-tests/tools/third_party/pytest/.coveragerc @@ -0,0 +1,4 @@ +[run] +omit = + # standlonetemplate is read dynamically and tested by test_genscript + *standalonetemplate.py diff --git a/tests/wpt/web-platform-tests/tools/wptserve/.coveragerc b/tests/wpt/web-platform-tests/tools/wptserve/.coveragerc new file mode 100644 index 000000000000..0e00c079f64c --- /dev/null +++ b/tests/wpt/web-platform-tests/tools/wptserve/.coveragerc @@ -0,0 +1,11 @@ +[run] +branch = True +parallel = True +omit = + */site-packages/* + */lib_pypy/* + +[paths] +wptserve = + wptserve + .tox/**/site-packages/wptserve diff --git a/tests/wpt/web-platform-tests/web-animations/timing-model/animations/setting-the-current-time-of-an-animation.html b/tests/wpt/web-platform-tests/web-animations/timing-model/animations/setting-the-current-time-of-an-animation.html index 04589ffa001e..b1fc43e79522 100644 --- a/tests/wpt/web-platform-tests/web-animations/timing-model/animations/setting-the-current-time-of-an-animation.html +++ b/tests/wpt/web-platform-tests/web-animations/timing-model/animations/setting-the-current-time-of-an-animation.html @@ -11,6 +11,39 @@