From b24cb329fbd7a194f51dc415755f3a2a3236906c Mon Sep 17 00:00:00 2001 From: WPT Sync Bot Date: Wed, 24 Jun 2020 08:20:43 +0000 Subject: [PATCH] Update web-platform-tests to revision 388763aee0d14246a2f8ebb24176424cc1983820 --- .../url/url-in-tags-revoke.window.js.ini | 2 +- .../CSS2/floats/hit-test-floats-004.html.ini | 4 + .../CSS2/floats/hit-test-floats-005.html.ini | 4 + .../transform-scale-hittest.html.ini | 3 + ...QueryList-addListener-handleEvent.html.ini | 3 - .../cssom-view/elementFromPoint-001.html.ini | 4 + .../cssom-view/elementFromPosition.html.ini | 3 + .../offsetTopLeft-border-box.html.ini | 78 - .../fetch/content-type/response.window.js.ini | 27 +- .../fetch/content-type/script.window.js.ini | 3 + .../nosniff/parsing-nosniff.window.js.ini | 6 + .../traverse_the_history_1.html.ini | 4 - .../traverse_the_history_3.html.ini | 4 + ...ross-origin-objects-on-new-window.html.ini | 2 + .../embedded-opener-remove-frame.html.ini | 3 +- .../getter.html.ini | 3 + .../iframe_sandbox_popups_escaping-1.html.ini | 3 +- .../iframe_sandbox_popups_escaping-2.html.ini | 4 +- .../iframe_sandbox_popups_escaping-3.html.ini | 1 + .../form-double-submit-2.html.ini | 4 + ...le-event-handler-settings-objects.html.ini | 3 - .../promise-job-entry.html.ini | 5 +- .../entry-different-function-realm.html.ini | 5 + .../wasm/jsapi/functions/entry.html.ini | 7 + .../wasm/jsapi/functions/incumbent.html.ini | 5 + .../webmessaging/without-ports/017.html.ini | 5 - .../webmessaging/without-ports/018.html.ini | 5 - .../semantics/run-a-worker/003.html.ini | 1 - .../url/url-in-tags-revoke.window.js.ini | 2 +- tests/wpt/metadata/MANIFEST.json | 576 +- .../CSS2/floats/hit-test-floats-004.html.ini | 4 + .../CSS2/floats/hit-test-floats-005.html.ini | 4 + .../transform-scale-hittest.html.ini | 3 + ...QueryList-addListener-handleEvent.html.ini | 3 - .../cssom-view/elementFromPoint-001.html.ini | 4 + .../cssom-view/elementFromPosition.html.ini | 3 + .../offsetTopLeft-border-box.html.ini | 7 + .../fetch/content-type/response.window.js.ini | 27 +- .../fetch/content-type/script.window.js.ini | 3 + .../nosniff/parsing-nosniff.window.js.ini | 6 + .../traverse_the_history_1.html.ini | 4 - .../traverse_the_history_3.html.ini | 4 + ...ross-origin-objects-on-new-window.html.ini | 2 + .../embedded-opener-remove-frame.html.ini | 3 +- .../getter.html.ini | 3 + .../iframe_sandbox_popups_escaping-1.html.ini | 3 +- .../iframe_sandbox_popups_escaping-2.html.ini | 4 +- .../iframe_sandbox_popups_escaping-3.html.ini | 1 + .../form-double-submit-2.html.ini | 4 + ...le-event-handler-settings-objects.html.ini | 3 - .../promise-job-entry.html.ini | 5 +- .../entry-different-function-realm.html.ini | 5 + .../wasm/jsapi/functions/entry.html.ini | 7 + .../wasm/jsapi/functions/incumbent.html.ini | 5 + .../webmessaging/without-ports/017.html.ini | 5 - .../webmessaging/without-ports/018.html.ini | 5 - .../semantics/run-a-worker/003.html.ini | 1 - .../css-backgrounds/background-image-007.html | 64 +- .../intrinsic-size-005.tentative.html | 13 + .../intrinsic-size-006.tentative.html | 13 + .../intrinsic-size-007.tentative.html | 16 + .../intrinsic-size-008.tentative.html | 18 + ...t-decoration-thickness-nesting-manual.html | 79 + .../web-platform-tests/css/requirements.txt | 2 +- .../openee-accessed_openee-coop-ro.https.html | 38 +- .../openee-accessed_openee-coop.https.html | 38 +- .../openee-accessed_opener-coop-ro.https.html | 74 + .../openee-accessed_opener-coop.https.html | 74 + .../opener-accessed_openee-coop-ro.https.html | 30 +- .../opener-accessed_openee-coop.https.html | 42 +- .../opener-accessed_opener-coop-ro.https.html | 70 + .../opener-accessed_opener-coop.https.html | 68 + .../access-reporting/resources/dispatcher.js | 14 + .../getter-tests.js | 4 + .../module/nested-imports-a.js | 1 + .../module/nested-imports-b.js | 2 + .../module/nested-imports-c.js | 2 + .../module/nested-imports-d.js | 3 + .../module/nested-imports-e.js | 2 + .../module/nested-imports-f.js | 2 + .../module/nested-imports-g.js | 2 + .../module/nested-imports-h.js | 2 + .../module/nested-imports.html | 29 + .../image-removed-before-load.html | 41 + .../html5-tree/dynamic-childlist-001.html | 8 +- .../html5-tree/dynamic-childlist-002.html | 15 +- .../mathml/support/layout-comparison.js | 7 + .../opaque-origin.https.window.js | 46 +- .../resources/data/testfile.txt | 1 + .../resources/native-fs-test-helpers.js | 4 +- .../resources/opaque-origin-sandbox.html | 10 +- .../showDirectoryPicker-manual.https.html | 35 + .../showOpenFilePicker-manual.https.html | 42 + .../showPicker-errors.https.window.js | 82 + .../showSaveFilePicker-manual.https.html | 34 + ...-link-cached-stylesheet-different-doc.html | 20 + .../chromium/mock-screenenumeration.js | 5 +- .../resources/idlharness.js | 4 + .../screen_enumeration/README.md | 3 +- .../getScreens.values.https.html | 6 +- .../service-worker/fetch-event.https.html | 27 + .../streams/idlharness.any.js | 16 +- .../tools/ci/tc/tasks/test.yml | 9 +- .../tools/ci/tc/tests/test_valid.py | 12 + .../tools/third_party/html5lib/AUTHORS.rst | 2 +- .../tools/third_party/html5lib/CHANGES.rst | 26 +- .../tools/third_party/html5lib/README.rst | 14 +- .../html5lib/benchmarks/bench_html.py | 57 + .../html5lib/benchmarks/bench_wpt.py | 45 + .../html5lib/benchmarks/data/README.md | 8 + .../html5lib/benchmarks/data/html.html | 5000 +++++++++++++++++ .../html5lib/benchmarks/data/wpt/LICENSE.md | 11 + .../html5lib/benchmarks/data/wpt/README.md | 52 + .../benchmarks/data/wpt/random/001.html | 3 + .../wpt/random/background-origin-007-ref.html | 18 + ...background_shorthand_css_relative_url.html | 24 + .../beforeunload-on-history-back-1.html | 5 + .../data/wpt/random/euckr-encode-form.html | 52 + .../random/frame-ancestors-self-allow.html | 16 + .../data/wpt/random/grouping-dl.html | 30 + .../data/wpt/random/heavy-styling-005.html | 15 + .../data/wpt/random/htb-ltr-ltr.html | 74 + .../data/wpt/random/idbindex_get8.htm | 27 + .../data/wpt/random/idlharness.html | 34 + .../wpt/random/li-type-unsupported-ref.html | 13 + ...css21-float-page-break-inside-avoid-6.html | 19 + .../random/shape-outside-content-box-002.html | 66 + .../wpt/random/worker-constructor.https.html | 86 + .../2d.composite.image.destination-over.html | 33 + .../wpt/weighted/align-content-wrap-002.html | 108 + .../data/wpt/weighted/big5_chars_extra.html | 1 + .../data/wpt/weighted/fetch.http.html | 143 + .../filter-turbulence-invalid-001.html | 51 + .../wpt/weighted/grid-auto-fill-rows-001.html | 184 + ...ntation-from-image-content-images-ref.html | 86 + .../weighted/masonry-item-placement-006.html | 149 + ...css21-table-page-break-inside-avoid-2.html | 29 + .../position-sticky-table-th-bottom-ref.html | 62 + .../data/wpt/weighted/pre-float-001.html | 36 + .../data/wpt/weighted/resize-004.html | 20 + .../data/wpt/weighted/test-plan.src.html | 1616 ++++++ .../data/wpt/weighted/toBlob.png.html | 17 + .../weighted/will-change-abspos-cb-001.html | 30 + .../tools/third_party/html5lib/debug-info.py | 2 +- .../tools/third_party/html5lib/doc/conf.py | 183 +- .../third_party/html5lib/html5lib/__init__.py | 2 +- .../html5lib/html5lib/_ihatexml.py | 5 +- .../html5lib/html5lib/_inputstream.py | 55 +- .../html5lib/html5lib/_tokenizer.py | 16 +- .../html5lib/html5lib/_trie/__init__.py | 13 +- .../html5lib/html5lib/_trie/_base.py | 5 +- .../html5lib/html5lib/_trie/datrie.py | 44 - .../third_party/html5lib/html5lib/_utils.py | 49 +- .../html5lib/html5lib/constants.py | 9 +- .../html5lib/html5lib/filters/sanitizer.py | 20 + .../html5lib/html5lib/html5parser.py | 734 +-- .../html5lib/html5lib/serializer.py | 2 +- .../html5lib/html5lib/tests/sanitizer.py | 17 +- .../tests/serializer-testdata/core.test | 4 +- .../html5lib/html5lib/tests/support.py | 3 +- .../html5lib/html5lib/tests/test_encoding.py | 21 +- .../html5lib/html5lib/tests/test_meta.py | 4 +- .../html5lib/html5lib/tests/test_parser2.py | 40 +- .../html5lib/html5lib/tests/test_sanitizer.py | 62 +- .../html5lib/tests/test_serializer.py | 51 +- .../html5lib/html5lib/tests/test_stream.py | 8 +- .../html5lib/tests/test_tokenizer2.py | 66 + .../html5lib/tests/test_treewalkers.py | 107 +- .../html5lib/html5lib/tests/tokenizer.py | 5 +- .../html5lib/tests/tokenizertotree.py | 1 + .../html5lib/tests/tree_construction.py | 13 +- .../html5lib/html5lib/treebuilders/base.py | 8 +- .../html5lib/html5lib/treebuilders/dom.py | 5 +- .../html5lib/html5lib/treebuilders/etree.py | 27 +- .../html5lib/treebuilders/etree_lxml.py | 64 +- .../html5lib/html5lib/treewalkers/__init__.py | 6 +- .../html5lib/html5lib/treewalkers/etree.py | 1 + .../html5lib/treewalkers/etree_lxml.py | 4 +- .../tools/third_party/html5lib/parse.py | 136 +- .../html5lib/requirements-optional.txt | 4 - .../html5lib/requirements-test.txt | 16 +- .../tools/third_party/html5lib/setup.cfg | 5 +- .../tools/third_party/html5lib/setup.py | 12 +- .../tools/third_party/html5lib/tox.ini | 5 +- .../third_party/html5lib/utils/entities.py | 9 +- .../tools/wptrunner/requirements.txt | 2 +- .../entry-different-function-realm.html | 45 + .../wasm/jsapi/functions/entry.html | 43 + .../wasm/jsapi/functions/helper.js | 12 + .../wasm/jsapi/functions/incumbent.html | 54 + .../wasm/jsapi/functions/resources/README.md | 5 + .../functions/resources/current/current.html | 4 + .../current/resources/window-to-open.html | 3 + .../functions/resources/entry-incumbent.html | 15 + .../resources/function/function.html | 3 + .../function/resources/window-to-open.html | 3 + .../resources/incumbent-incumbent.html | 24 + .../resources/relevant/relevant.html | 14 + .../relevant/resources/window-to-open.html | 3 + .../resources/resources/window-to-open.html | 3 + .../functions/resources/window-to-open.html | 3 + .../wasm/jsapi/wasm-module-builder.js | 28 +- 202 files changed, 11044 insertions(+), 1361 deletions(-) create mode 100644 tests/wpt/metadata-layout-2020/css/CSS2/floats/hit-test-floats-004.html.ini create mode 100644 tests/wpt/metadata-layout-2020/css/CSS2/floats/hit-test-floats-005.html.ini create mode 100644 tests/wpt/metadata-layout-2020/css/cssom-view/elementFromPoint-001.html.ini delete mode 100644 tests/wpt/metadata-layout-2020/html/browsers/history/the-history-interface/traverse_the_history_1.html.ini create mode 100644 tests/wpt/metadata-layout-2020/html/browsers/history/the-history-interface/traverse_the_history_3.html.ini create mode 100644 tests/wpt/metadata-layout-2020/html/browsers/origin/cross-origin-objects/cross-origin-objects-on-new-window.html.ini create mode 100644 tests/wpt/metadata-layout-2020/html/semantics/forms/form-submission-0/form-double-submit-2.html.ini create mode 100644 tests/wpt/metadata-layout-2020/wasm/jsapi/functions/entry-different-function-realm.html.ini create mode 100644 tests/wpt/metadata-layout-2020/wasm/jsapi/functions/entry.html.ini create mode 100644 tests/wpt/metadata-layout-2020/wasm/jsapi/functions/incumbent.html.ini delete mode 100644 tests/wpt/metadata-layout-2020/webmessaging/without-ports/017.html.ini delete mode 100644 tests/wpt/metadata-layout-2020/webmessaging/without-ports/018.html.ini create mode 100644 tests/wpt/metadata/css/CSS2/floats/hit-test-floats-004.html.ini create mode 100644 tests/wpt/metadata/css/CSS2/floats/hit-test-floats-005.html.ini create mode 100644 tests/wpt/metadata/css/cssom-view/elementFromPoint-001.html.ini create mode 100644 tests/wpt/metadata/css/cssom-view/offsetTopLeft-border-box.html.ini delete mode 100644 tests/wpt/metadata/html/browsers/history/the-history-interface/traverse_the_history_1.html.ini create mode 100644 tests/wpt/metadata/html/browsers/history/the-history-interface/traverse_the_history_3.html.ini create mode 100644 tests/wpt/metadata/html/browsers/origin/cross-origin-objects/cross-origin-objects-on-new-window.html.ini create mode 100644 tests/wpt/metadata/html/semantics/forms/form-submission-0/form-double-submit-2.html.ini create mode 100644 tests/wpt/metadata/wasm/jsapi/functions/entry-different-function-realm.html.ini create mode 100644 tests/wpt/metadata/wasm/jsapi/functions/entry.html.ini create mode 100644 tests/wpt/metadata/wasm/jsapi/functions/incumbent.html.ini delete mode 100644 tests/wpt/metadata/webmessaging/without-ports/017.html.ini delete mode 100644 tests/wpt/metadata/webmessaging/without-ports/018.html.ini create mode 100644 tests/wpt/web-platform-tests/css/css-sizing/aspect-ratio/intrinsic-size-005.tentative.html create mode 100644 tests/wpt/web-platform-tests/css/css-sizing/aspect-ratio/intrinsic-size-006.tentative.html create mode 100644 tests/wpt/web-platform-tests/css/css-sizing/aspect-ratio/intrinsic-size-007.tentative.html create mode 100644 tests/wpt/web-platform-tests/css/css-sizing/aspect-ratio/intrinsic-size-008.tentative.html create mode 100644 tests/wpt/web-platform-tests/css/css-text-decor/text-decoration-thickness-nesting-manual.html create mode 100644 tests/wpt/web-platform-tests/html/cross-origin-opener-policy/access-reporting/openee-accessed_opener-coop-ro.https.html create mode 100644 tests/wpt/web-platform-tests/html/cross-origin-opener-policy/access-reporting/openee-accessed_opener-coop.https.html create mode 100644 tests/wpt/web-platform-tests/html/cross-origin-opener-policy/access-reporting/opener-accessed_opener-coop-ro.https.html create mode 100644 tests/wpt/web-platform-tests/html/cross-origin-opener-policy/access-reporting/opener-accessed_opener-coop.https.html create mode 100644 tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/module/nested-imports-a.js create mode 100644 tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/module/nested-imports-b.js create mode 100644 tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/module/nested-imports-c.js create mode 100644 tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/module/nested-imports-d.js create mode 100644 tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/module/nested-imports-e.js create mode 100644 tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/module/nested-imports-f.js create mode 100644 tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/module/nested-imports-g.js create mode 100644 tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/module/nested-imports-h.js create mode 100644 tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/module/nested-imports.html create mode 100644 tests/wpt/web-platform-tests/largest-contentful-paint/image-removed-before-load.html create mode 100644 tests/wpt/web-platform-tests/native-file-system/resources/data/testfile.txt create mode 100644 tests/wpt/web-platform-tests/native-file-system/showDirectoryPicker-manual.https.html create mode 100644 tests/wpt/web-platform-tests/native-file-system/showOpenFilePicker-manual.https.html create mode 100644 tests/wpt/web-platform-tests/native-file-system/showPicker-errors.https.window.js create mode 100644 tests/wpt/web-platform-tests/native-file-system/showSaveFilePicker-manual.https.html create mode 100644 tests/wpt/web-platform-tests/preload/preload-link-cached-stylesheet-different-doc.html create mode 100644 tests/wpt/web-platform-tests/tools/third_party/html5lib/benchmarks/bench_html.py create mode 100644 tests/wpt/web-platform-tests/tools/third_party/html5lib/benchmarks/bench_wpt.py create mode 100644 tests/wpt/web-platform-tests/tools/third_party/html5lib/benchmarks/data/README.md create mode 100644 tests/wpt/web-platform-tests/tools/third_party/html5lib/benchmarks/data/html.html create mode 100644 tests/wpt/web-platform-tests/tools/third_party/html5lib/benchmarks/data/wpt/LICENSE.md create mode 100644 tests/wpt/web-platform-tests/tools/third_party/html5lib/benchmarks/data/wpt/README.md create mode 100644 tests/wpt/web-platform-tests/tools/third_party/html5lib/benchmarks/data/wpt/random/001.html create mode 100644 tests/wpt/web-platform-tests/tools/third_party/html5lib/benchmarks/data/wpt/random/background-origin-007-ref.html create mode 100644 tests/wpt/web-platform-tests/tools/third_party/html5lib/benchmarks/data/wpt/random/background_shorthand_css_relative_url.html create mode 100644 tests/wpt/web-platform-tests/tools/third_party/html5lib/benchmarks/data/wpt/random/beforeunload-on-history-back-1.html create mode 100644 tests/wpt/web-platform-tests/tools/third_party/html5lib/benchmarks/data/wpt/random/euckr-encode-form.html create mode 100644 tests/wpt/web-platform-tests/tools/third_party/html5lib/benchmarks/data/wpt/random/frame-ancestors-self-allow.html create mode 100644 tests/wpt/web-platform-tests/tools/third_party/html5lib/benchmarks/data/wpt/random/grouping-dl.html create mode 100644 tests/wpt/web-platform-tests/tools/third_party/html5lib/benchmarks/data/wpt/random/heavy-styling-005.html create mode 100644 tests/wpt/web-platform-tests/tools/third_party/html5lib/benchmarks/data/wpt/random/htb-ltr-ltr.html create mode 100644 tests/wpt/web-platform-tests/tools/third_party/html5lib/benchmarks/data/wpt/random/idbindex_get8.htm create mode 100644 tests/wpt/web-platform-tests/tools/third_party/html5lib/benchmarks/data/wpt/random/idlharness.html create mode 100644 tests/wpt/web-platform-tests/tools/third_party/html5lib/benchmarks/data/wpt/random/li-type-unsupported-ref.html create mode 100644 tests/wpt/web-platform-tests/tools/third_party/html5lib/benchmarks/data/wpt/random/moz-css21-float-page-break-inside-avoid-6.html create mode 100644 tests/wpt/web-platform-tests/tools/third_party/html5lib/benchmarks/data/wpt/random/shape-outside-content-box-002.html create mode 100644 tests/wpt/web-platform-tests/tools/third_party/html5lib/benchmarks/data/wpt/random/worker-constructor.https.html create mode 100644 tests/wpt/web-platform-tests/tools/third_party/html5lib/benchmarks/data/wpt/weighted/2d.composite.image.destination-over.html create mode 100644 tests/wpt/web-platform-tests/tools/third_party/html5lib/benchmarks/data/wpt/weighted/align-content-wrap-002.html create mode 100644 tests/wpt/web-platform-tests/tools/third_party/html5lib/benchmarks/data/wpt/weighted/big5_chars_extra.html create mode 100644 tests/wpt/web-platform-tests/tools/third_party/html5lib/benchmarks/data/wpt/weighted/fetch.http.html create mode 100644 tests/wpt/web-platform-tests/tools/third_party/html5lib/benchmarks/data/wpt/weighted/filter-turbulence-invalid-001.html create mode 100644 tests/wpt/web-platform-tests/tools/third_party/html5lib/benchmarks/data/wpt/weighted/grid-auto-fill-rows-001.html create mode 100644 tests/wpt/web-platform-tests/tools/third_party/html5lib/benchmarks/data/wpt/weighted/image-orientation-from-image-content-images-ref.html create mode 100644 tests/wpt/web-platform-tests/tools/third_party/html5lib/benchmarks/data/wpt/weighted/masonry-item-placement-006.html create mode 100644 tests/wpt/web-platform-tests/tools/third_party/html5lib/benchmarks/data/wpt/weighted/moz-css21-table-page-break-inside-avoid-2.html create mode 100644 tests/wpt/web-platform-tests/tools/third_party/html5lib/benchmarks/data/wpt/weighted/position-sticky-table-th-bottom-ref.html create mode 100644 tests/wpt/web-platform-tests/tools/third_party/html5lib/benchmarks/data/wpt/weighted/pre-float-001.html create mode 100644 tests/wpt/web-platform-tests/tools/third_party/html5lib/benchmarks/data/wpt/weighted/resize-004.html create mode 100644 tests/wpt/web-platform-tests/tools/third_party/html5lib/benchmarks/data/wpt/weighted/test-plan.src.html create mode 100644 tests/wpt/web-platform-tests/tools/third_party/html5lib/benchmarks/data/wpt/weighted/toBlob.png.html create mode 100644 tests/wpt/web-platform-tests/tools/third_party/html5lib/benchmarks/data/wpt/weighted/will-change-abspos-cb-001.html delete mode 100644 tests/wpt/web-platform-tests/tools/third_party/html5lib/html5lib/_trie/datrie.py create mode 100644 tests/wpt/web-platform-tests/tools/third_party/html5lib/html5lib/tests/test_tokenizer2.py create mode 100644 tests/wpt/web-platform-tests/wasm/jsapi/functions/entry-different-function-realm.html create mode 100644 tests/wpt/web-platform-tests/wasm/jsapi/functions/entry.html create mode 100644 tests/wpt/web-platform-tests/wasm/jsapi/functions/helper.js create mode 100644 tests/wpt/web-platform-tests/wasm/jsapi/functions/incumbent.html create mode 100644 tests/wpt/web-platform-tests/wasm/jsapi/functions/resources/README.md create mode 100644 tests/wpt/web-platform-tests/wasm/jsapi/functions/resources/current/current.html create mode 100644 tests/wpt/web-platform-tests/wasm/jsapi/functions/resources/current/resources/window-to-open.html create mode 100644 tests/wpt/web-platform-tests/wasm/jsapi/functions/resources/entry-incumbent.html create mode 100644 tests/wpt/web-platform-tests/wasm/jsapi/functions/resources/function/function.html create mode 100644 tests/wpt/web-platform-tests/wasm/jsapi/functions/resources/function/resources/window-to-open.html create mode 100644 tests/wpt/web-platform-tests/wasm/jsapi/functions/resources/incumbent-incumbent.html create mode 100644 tests/wpt/web-platform-tests/wasm/jsapi/functions/resources/relevant/relevant.html create mode 100644 tests/wpt/web-platform-tests/wasm/jsapi/functions/resources/relevant/resources/window-to-open.html create mode 100644 tests/wpt/web-platform-tests/wasm/jsapi/functions/resources/resources/window-to-open.html create mode 100644 tests/wpt/web-platform-tests/wasm/jsapi/functions/resources/window-to-open.html diff --git a/tests/wpt/metadata-layout-2020/FileAPI/url/url-in-tags-revoke.window.js.ini b/tests/wpt/metadata-layout-2020/FileAPI/url/url-in-tags-revoke.window.js.ini index 3605e8f3fc9..76b44d9e9cf 100644 --- a/tests/wpt/metadata-layout-2020/FileAPI/url/url-in-tags-revoke.window.js.ini +++ b/tests/wpt/metadata-layout-2020/FileAPI/url/url-in-tags-revoke.window.js.ini @@ -4,7 +4,7 @@ expected: TIMEOUT [Opening a blob URL in a new window immediately before revoking it works.] - expected: TIMEOUT + expected: FAIL [Fetching a blob URL immediately before revoking it works in an iframe.] expected: FAIL diff --git a/tests/wpt/metadata-layout-2020/css/CSS2/floats/hit-test-floats-004.html.ini b/tests/wpt/metadata-layout-2020/css/CSS2/floats/hit-test-floats-004.html.ini new file mode 100644 index 00000000000..4bfb0c2053a --- /dev/null +++ b/tests/wpt/metadata-layout-2020/css/CSS2/floats/hit-test-floats-004.html.ini @@ -0,0 +1,4 @@ +[hit-test-floats-004.html] + [Miss float below something else] + expected: FAIL + diff --git a/tests/wpt/metadata-layout-2020/css/CSS2/floats/hit-test-floats-005.html.ini b/tests/wpt/metadata-layout-2020/css/CSS2/floats/hit-test-floats-005.html.ini new file mode 100644 index 00000000000..baa9f1a7541 --- /dev/null +++ b/tests/wpt/metadata-layout-2020/css/CSS2/floats/hit-test-floats-005.html.ini @@ -0,0 +1,4 @@ +[hit-test-floats-005.html] + [Miss clipped float] + expected: FAIL + diff --git a/tests/wpt/metadata-layout-2020/css/css-transforms/transform-scale-hittest.html.ini b/tests/wpt/metadata-layout-2020/css/css-transforms/transform-scale-hittest.html.ini index 4a1e8110f6f..f8e7e539aae 100644 --- a/tests/wpt/metadata-layout-2020/css/css-transforms/transform-scale-hittest.html.ini +++ b/tests/wpt/metadata-layout-2020/css/css-transforms/transform-scale-hittest.html.ini @@ -2,3 +2,6 @@ [Hit test intersecting scaled box] expected: FAIL + [Hit test within unscaled box] + expected: FAIL + diff --git a/tests/wpt/metadata-layout-2020/css/cssom-view/MediaQueryList-addListener-handleEvent.html.ini b/tests/wpt/metadata-layout-2020/css/cssom-view/MediaQueryList-addListener-handleEvent.html.ini index d080f72a962..a6c39d50087 100644 --- a/tests/wpt/metadata-layout-2020/css/cssom-view/MediaQueryList-addListener-handleEvent.html.ini +++ b/tests/wpt/metadata-layout-2020/css/cssom-view/MediaQueryList-addListener-handleEvent.html.ini @@ -8,6 +8,3 @@ [throws if handleEvent is thruthy and not callable] expected: FAIL - [doesn't look up handleEvent method on callable event listeners] - expected: FAIL - diff --git a/tests/wpt/metadata-layout-2020/css/cssom-view/elementFromPoint-001.html.ini b/tests/wpt/metadata-layout-2020/css/cssom-view/elementFromPoint-001.html.ini new file mode 100644 index 00000000000..e38782d8c85 --- /dev/null +++ b/tests/wpt/metadata-layout-2020/css/cssom-view/elementFromPoint-001.html.ini @@ -0,0 +1,4 @@ +[elementFromPoint-001.html] + [CSSOM View - 5 - extensions to the Document interface] + expected: FAIL + diff --git a/tests/wpt/metadata-layout-2020/css/cssom-view/elementFromPosition.html.ini b/tests/wpt/metadata-layout-2020/css/cssom-view/elementFromPosition.html.ini index c131078eace..23c61ede1a1 100644 --- a/tests/wpt/metadata-layout-2020/css/cssom-view/elementFromPosition.html.ini +++ b/tests/wpt/metadata-layout-2020/css/cssom-view/elementFromPosition.html.ini @@ -17,3 +17,6 @@ [test the top of layer] expected: FAIL + [test some point of the element: top left corner] + expected: FAIL + diff --git a/tests/wpt/metadata-layout-2020/css/cssom-view/offsetTopLeft-border-box.html.ini b/tests/wpt/metadata-layout-2020/css/cssom-view/offsetTopLeft-border-box.html.ini index 3bd0a5266dd..239c35135e4 100644 --- a/tests/wpt/metadata-layout-2020/css/cssom-view/offsetTopLeft-border-box.html.ini +++ b/tests/wpt/metadata-layout-2020/css/cssom-view/offsetTopLeft-border-box.html.ini @@ -1,85 +1,7 @@ [offsetTopLeft-border-box.html] - [container: 11] - expected: FAIL - - [container: 10] - expected: FAIL - - [container: 13] - expected: FAIL - - [container: 12] - expected: FAIL - - [container: 15] - expected: FAIL - - [container: 14] - expected: FAIL - - [container: 17] - expected: FAIL - - [container: 16] - expected: FAIL - - [container: 19] - expected: FAIL - - [container: 18] - expected: FAIL - - [container: 9] - expected: FAIL - - [container: 8] - expected: FAIL - [container: 1] expected: FAIL [container: 0] expected: FAIL - [container: 3] - expected: FAIL - - [container: 2] - expected: FAIL - - [container: 5] - expected: FAIL - - [container: 4] - expected: FAIL - - [container: 7] - expected: FAIL - - [container: 6] - expected: FAIL - - [container: 20] - expected: FAIL - - [container: 21] - expected: FAIL - - [container: 22] - expected: FAIL - - [container: 23] - expected: FAIL - - [container: 24] - expected: FAIL - - [container: 25] - expected: FAIL - - [container: 26] - expected: FAIL - - [container: 27] - expected: FAIL - diff --git a/tests/wpt/metadata-layout-2020/fetch/content-type/response.window.js.ini b/tests/wpt/metadata-layout-2020/fetch/content-type/response.window.js.ini index 987cea68562..ae2bd6e1de2 100644 --- a/tests/wpt/metadata-layout-2020/fetch/content-type/response.window.js.ini +++ b/tests/wpt/metadata-layout-2020/fetch/content-type/response.window.js.ini @@ -312,24 +312,21 @@ [Response: combined response Content-Type: text/html;" \\" text/plain ";charset=GBK] expected: NOTRUN - [ + + + diff --git a/tests/wpt/web-platform-tests/wasm/jsapi/functions/entry.html b/tests/wpt/web-platform-tests/wasm/jsapi/functions/entry.html new file mode 100644 index 00000000000..15018074491 --- /dev/null +++ b/tests/wpt/web-platform-tests/wasm/jsapi/functions/entry.html @@ -0,0 +1,43 @@ + + +Entry settings object for host functions + + + + + + + + + + diff --git a/tests/wpt/web-platform-tests/wasm/jsapi/functions/helper.js b/tests/wpt/web-platform-tests/wasm/jsapi/functions/helper.js new file mode 100644 index 00000000000..487791c69ad --- /dev/null +++ b/tests/wpt/web-platform-tests/wasm/jsapi/functions/helper.js @@ -0,0 +1,12 @@ +function call_later(f) { + const builder = new WasmModuleBuilder(); + const functionIndex = builder.addImport("module", "imported", kSig_v_v); + builder.addStart(functionIndex); + const buffer = builder.toBuffer(); + + WebAssembly.instantiate(buffer, { + "module": { + "imported": f, + } + }); +} diff --git a/tests/wpt/web-platform-tests/wasm/jsapi/functions/incumbent.html b/tests/wpt/web-platform-tests/wasm/jsapi/functions/incumbent.html new file mode 100644 index 00000000000..cb276329770 --- /dev/null +++ b/tests/wpt/web-platform-tests/wasm/jsapi/functions/incumbent.html @@ -0,0 +1,54 @@ + + +Incumbent settings object for host functions + + + + + + + + diff --git a/tests/wpt/web-platform-tests/wasm/jsapi/functions/resources/README.md b/tests/wpt/web-platform-tests/wasm/jsapi/functions/resources/README.md new file mode 100644 index 00000000000..a89258a4e01 --- /dev/null +++ b/tests/wpt/web-platform-tests/wasm/jsapi/functions/resources/README.md @@ -0,0 +1,5 @@ +A couple notes about the files scattered in this `resources/` directory: + +* The nested directory structure is necessary here so that relative URL resolution can be tested; we need different sub-paths for each document. + +* The semi-duplicate `window-to-open.html`s scattered throughout are present because Firefox, at least, does not fire `Window` `load` events for 404s, so we want to ensure that no matter which global is used, `window`'s `load` event is hit and our tests can proceed. diff --git a/tests/wpt/web-platform-tests/wasm/jsapi/functions/resources/current/current.html b/tests/wpt/web-platform-tests/wasm/jsapi/functions/resources/current/current.html new file mode 100644 index 00000000000..63d9c437fc5 --- /dev/null +++ b/tests/wpt/web-platform-tests/wasm/jsapi/functions/resources/current/current.html @@ -0,0 +1,4 @@ + + +Current page used as a test helper + diff --git a/tests/wpt/web-platform-tests/wasm/jsapi/functions/resources/current/resources/window-to-open.html b/tests/wpt/web-platform-tests/wasm/jsapi/functions/resources/current/resources/window-to-open.html new file mode 100644 index 00000000000..1bc4cca9a39 --- /dev/null +++ b/tests/wpt/web-platform-tests/wasm/jsapi/functions/resources/current/resources/window-to-open.html @@ -0,0 +1,3 @@ + + +If the current settings object is used this page will be opened diff --git a/tests/wpt/web-platform-tests/wasm/jsapi/functions/resources/entry-incumbent.html b/tests/wpt/web-platform-tests/wasm/jsapi/functions/resources/entry-incumbent.html new file mode 100644 index 00000000000..6b210563e99 --- /dev/null +++ b/tests/wpt/web-platform-tests/wasm/jsapi/functions/resources/entry-incumbent.html @@ -0,0 +1,15 @@ + + +Incumbent page used as a test helper + + + + + diff --git a/tests/wpt/web-platform-tests/wasm/jsapi/functions/resources/function/function.html b/tests/wpt/web-platform-tests/wasm/jsapi/functions/resources/function/function.html new file mode 100644 index 00000000000..979b902eaa0 --- /dev/null +++ b/tests/wpt/web-platform-tests/wasm/jsapi/functions/resources/function/function.html @@ -0,0 +1,3 @@ + + +Realm for a host function used as a test helper diff --git a/tests/wpt/web-platform-tests/wasm/jsapi/functions/resources/function/resources/window-to-open.html b/tests/wpt/web-platform-tests/wasm/jsapi/functions/resources/function/resources/window-to-open.html new file mode 100644 index 00000000000..3928c1f8aa9 --- /dev/null +++ b/tests/wpt/web-platform-tests/wasm/jsapi/functions/resources/function/resources/window-to-open.html @@ -0,0 +1,3 @@ + + +If the function's settings object is used this page will be opened diff --git a/tests/wpt/web-platform-tests/wasm/jsapi/functions/resources/incumbent-incumbent.html b/tests/wpt/web-platform-tests/wasm/jsapi/functions/resources/incumbent-incumbent.html new file mode 100644 index 00000000000..5e84f65a084 --- /dev/null +++ b/tests/wpt/web-platform-tests/wasm/jsapi/functions/resources/incumbent-incumbent.html @@ -0,0 +1,24 @@ + + +Incumbent page used as a test helper + + + + + + + + diff --git a/tests/wpt/web-platform-tests/wasm/jsapi/functions/resources/relevant/relevant.html b/tests/wpt/web-platform-tests/wasm/jsapi/functions/resources/relevant/relevant.html new file mode 100644 index 00000000000..06df91c2374 --- /dev/null +++ b/tests/wpt/web-platform-tests/wasm/jsapi/functions/resources/relevant/relevant.html @@ -0,0 +1,14 @@ + + +Relevant page used as a test helper + + diff --git a/tests/wpt/web-platform-tests/wasm/jsapi/functions/resources/relevant/resources/window-to-open.html b/tests/wpt/web-platform-tests/wasm/jsapi/functions/resources/relevant/resources/window-to-open.html new file mode 100644 index 00000000000..4138b5a0844 --- /dev/null +++ b/tests/wpt/web-platform-tests/wasm/jsapi/functions/resources/relevant/resources/window-to-open.html @@ -0,0 +1,3 @@ + + +If the relevant settings object is used this page will be opened diff --git a/tests/wpt/web-platform-tests/wasm/jsapi/functions/resources/resources/window-to-open.html b/tests/wpt/web-platform-tests/wasm/jsapi/functions/resources/resources/window-to-open.html new file mode 100644 index 00000000000..7743b9b5782 --- /dev/null +++ b/tests/wpt/web-platform-tests/wasm/jsapi/functions/resources/resources/window-to-open.html @@ -0,0 +1,3 @@ + + +If the incumbent settings object is used this page will be opened diff --git a/tests/wpt/web-platform-tests/wasm/jsapi/functions/resources/window-to-open.html b/tests/wpt/web-platform-tests/wasm/jsapi/functions/resources/window-to-open.html new file mode 100644 index 00000000000..ce357937f5e --- /dev/null +++ b/tests/wpt/web-platform-tests/wasm/jsapi/functions/resources/window-to-open.html @@ -0,0 +1,3 @@ + + +If the entry settings object is used this page will be opened diff --git a/tests/wpt/web-platform-tests/wasm/jsapi/wasm-module-builder.js b/tests/wpt/web-platform-tests/wasm/jsapi/wasm-module-builder.js index 82c6e04135f..25fb1c836b0 100644 --- a/tests/wpt/web-platform-tests/wasm/jsapi/wasm-module-builder.js +++ b/tests/wpt/web-platform-tests/wasm/jsapi/wasm-module-builder.js @@ -3,10 +3,8 @@ // found in the LICENSE file. // Used for encoding f32 and double constants to bits. -let f32_view = new Float32Array(1); -let f32_bytes_view = new Uint8Array(f32_view.buffer); -let f64_view = new Float64Array(1); -let f64_bytes_view = new Uint8Array(f64_view.buffer); +let byte_view = new Uint8Array(8); +let data_view = new DataView(byte_view.buffer); // The bytes function receives one of // - several arguments, each of which is either a number or a string of length @@ -1017,14 +1015,10 @@ class WasmModuleBuilder { section.emit_u64v(global.init); break; case kWasmF32: - section.emit_u8(kExprF32Const); - f32_view[0] = global.init; - section.emit_bytes(f32_bytes_view); + section.emit_bytes(wasmF32Const(global.init)); break; case kWasmF64: - section.emit_u8(kExprF64Const); - f64_view[0] = global.init; - section.emit_bytes(f64_bytes_view); + section.emit_bytes(wasmF64Const(global.init)); break; case kWasmAnyFunc: case kWasmAnyRef: @@ -1322,18 +1316,18 @@ function wasmI32Const(val) { } function wasmF32Const(f) { - f32_view[0] = f; + // Write in little-endian order at offset 0. + data_view.setFloat32(0, f, true); return [ - kExprF32Const, f32_bytes_view[0], f32_bytes_view[1], f32_bytes_view[2], - f32_bytes_view[3] + kExprF32Const, byte_view[0], byte_view[1], byte_view[2], byte_view[3] ]; } function wasmF64Const(f) { - f64_view[0] = f; + // Write in little-endian order at offset 0. + data_view.setFloat64(0, f, true); return [ - kExprF64Const, f64_bytes_view[0], f64_bytes_view[1], f64_bytes_view[2], - f64_bytes_view[3], f64_bytes_view[4], f64_bytes_view[5], f64_bytes_view[6], - f64_bytes_view[7] + kExprF64Const, byte_view[0], byte_view[1], byte_view[2], + byte_view[3], byte_view[4], byte_view[5], byte_view[6], byte_view[7] ]; }