From 43a97878ce14b72f0981164f87f2e35e14151312 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 11:22:09 +0200 Subject: Adding upstream version 110.0.1. Signed-off-by: Daniel Baumann --- testing/web-platform/tests/infrastructure/META.yml | 2 + .../web-platform/tests/infrastructure/README.md | 9 + .../tests/infrastructure/assumptions/README.md | 1 + .../infrastructure/assumptions/ahem-notref.html | 316 ++++++++++++++++++++ .../tests/infrastructure/assumptions/ahem-ref.html | 320 +++++++++++++++++++++ .../tests/infrastructure/assumptions/ahem.html | 316 ++++++++++++++++++++ .../assumptions/allowed-to-play.html | 23 ++ .../tests/infrastructure/assumptions/blank.html | 2 + .../assumptions/canvas-background-ref.html | 8 + .../assumptions/canvas-background.html | 4 + .../tests/infrastructure/assumptions/cookie.html | 18 ++ .../assumptions/document-fonts-ready.html | 32 +++ .../infrastructure/assumptions/html-elements.html | 133 +++++++++ .../assumptions/initial-color-ref.html | 12 + .../infrastructure/assumptions/initial-color.html | 9 + .../assumptions/medium-font-size-ref.html | 8 + .../assumptions/medium-font-size.html | 9 + .../assumptions/min-font-size-ref.html | 8 + .../infrastructure/assumptions/min-font-size.html | 9 + .../assumptions/non-local-ports.sub.window.js | 111 +++++++ .../assumptions/non-secure-context.any.js | 9 + .../resources/fetch-and-post-result.html | 12 + .../assumptions/tools/ahem-generate-table.py | 129 +++++++++ .../infrastructure/browsers/firefox/prefs.html | 9 + .../infrastructure/channels/child_message.html | 13 + .../infrastructure/channels/child_script.html | 10 + .../infrastructure/channels/serialize-data.js | 37 +++ .../infrastructure/channels/serialize_child.html | 173 +++++++++++ .../tests/infrastructure/channels/test_call.html | 22 ++ .../infrastructure/channels/test_postMessage.html | 23 ++ .../infrastructure/channels/test_serialize.html | 38 +++ .../tests/infrastructure/crashtests/example.html | 1 + .../infrastructure/expected-fail/failing-test.html | 10 + .../infrastructure/expected-fail/timeout.html | 8 + .../uncaught-exception-following-subtest.html | 9 + .../uncaught-exception-single-test.html | 9 + .../expected-fail/uncaught-exception.html | 8 + .../unhandled-rejection-following-subtest.html | 9 + .../unhandled-rejection-single-test.html | 9 + .../expected-fail/unhandled-rejection.html | 8 + .../infrastructure/assumptions/ahem.html.ini | 3 + .../assumptions/allowed-to-play.html.ini | 9 + .../assumptions/document-fonts-ready.html.ini | 4 + .../assumptions/non-local-ports.sub.window.js.ini | 4 + .../infrastructure/browsers/firefox/__dir__.ini | 2 + .../infrastructure/browsers/firefox/prefs.html.ini | 2 + .../expected-fail/failing-test.html.ini | 4 + .../infrastructure/expected-fail/timeout.html.ini | 4 + .../uncaught-exception-following-subtest.html.ini | 6 + .../uncaught-exception-single-test.html.ini | 4 + .../expected-fail/uncaught-exception.html.ini | 2 + .../unhandled-rejection-following-subtest.html.ini | 6 + .../unhandled-rejection-single-test.html.ini | 4 + .../expected-fail/unhandled-rejection.html.ini | 2 + .../expected-fail/window-onload-test.html.ini | 16 ++ .../reftest/legacy/fuzzy-ref-2.html.ini | 4 + .../reftest/legacy/reftest_and_fail_0-ref.html.ini | 2 + .../legacy/reftest_cycle_fail_0-ref.html.ini | 2 + .../legacy/reftest_fuzzy_chain_ini.html.ini | 4 + .../reftest/reftest_fuzzy_1.html.ini | 3 + .../reftest/reftest_fuzzy_ini_full.html.ini | 6 + .../reftest/reftest_fuzzy_ini_ref_only.html.ini | 8 + .../reftest/reftest_fuzzy_ini_short.html.ini | 4 + .../reftest/reftest_match_and_mismatch-0.html.ini | 2 + .../reftest/reftest_match_and_mismatch-1.html.ini | 2 + .../reftest/reftest_match_and_mismatch-4.html.ini | 2 + .../reftest/reftest_match_and_mismatch-5.html.ini | 2 + .../reftest/reftest_match_and_mismatch-6.html.ini | 2 + .../reftest/reftest_match_and_mismatch-7.html.ini | 2 + .../reftest/reftest_match_fail-print.html.ini | 2 + .../reftest/reftest_match_fail.html.ini | 3 + .../reftest/reftest_mismatch_fail-print.html.ini | 2 + .../reftest/reftest_mismatch_fail.html.ini | 3 + .../reftest/reftest_multiple_mismatch-0.html.ini | 2 + .../reftest/reftest_multiple_mismatch-1.html.ini | 2 + .../reftest/reftest_ref_timeout.html.ini | 3 + .../reftest/reftest_timeout.html.ini | 3 + .../infrastructure/server/context.any.js.ini | 16 ++ .../server/http2-context.sub.h2.any.js.ini | 1 + .../server/http2-websocket.sub.h2.any.js.ini | 16 ++ .../server/secure-context.https.any.js.ini | 6 + .../infrastructure/server/test-pac.html.ini | 4 + .../server/webtransport-h3.https.sub.any.js.ini | 29 ++ .../server/wpt-server-http.sub.html.ini | 20 ++ .../server/wpt-server-websocket.sub.html.ini | 41 +++ .../testdriver/actions/crossOrigin.sub.html.ini | 4 + .../testdriver/actions/eventOrder.html.ini | 3 + .../testdriver/actions/mouseClickCount.html.ini | 4 + .../testdriver/actions/multiTouchPoints.html.ini | 7 + .../multiTouchPointsReleaseFirstPoint.html.ini | 4 + .../multiTouchPointsReleaseSecondPoint.html.ini | 5 + .../multiTouchPointsSimultaneousMove.html.ini | 5 + .../multiTouchPointsTwoTouchStarts.html.ini | 4 + .../actions/multiTouchPointsWithPause.html.ini | 4 + .../testdriver/actions/pause.html.ini | 3 + .../actions/penPointerEventProperties.html.ini | 6 + .../testdriver/actions/penPointerEvents.html.ini | 6 + .../actions/touchPointerEventProperties.html.ini | 4 + .../testdriver/actions/wheelScroll.html.ini | 3 + .../click_iframe_crossorigin.sub.html.ini | 4 + .../testdriver/file_upload.sub.html.ini | 4 + .../testdriver/generate_test_report.html.ini | 4 + .../testdriver/set_permission.https.html.ini | 8 + .../testdriver/virtual_authenticator.html.ini | 31 ++ .../testharness/lone-surrogates.html.ini | 7 + .../infrastructure/metadata/update_properties.json | 1 + .../tests/infrastructure/reftest-wait-ref.html | 13 + .../tests/infrastructure/reftest-wait.html | 21 ++ .../tests/infrastructure/reftest/fuzzy-ref-1.html | 9 + .../tests/infrastructure/reftest/green-ref.html | 4 + .../tests/infrastructure/reftest/green.html | 3 + .../tests/infrastructure/reftest/legacy/README.md | 5 + .../infrastructure/reftest/legacy/fuzzy-ref-2.html | 11 + .../reftest/legacy/fuzzy-ref-2a.html | 9 + .../reftest/legacy/reftest_and_fail.html | 5 + .../reftest/legacy/reftest_and_fail_0-ref.html | 5 + .../reftest/legacy/reftest_and_mismatch.html | 5 + .../reftest/legacy/reftest_and_mismatch_0.html | 5 + .../reftest/legacy/reftest_and_mismatch_1.html | 4 + .../reftest/legacy/reftest_cycle.html | 5 + .../reftest/legacy/reftest_cycle_0-ref.html | 5 + .../reftest/legacy/reftest_cycle_1-ref.html | 5 + .../reftest/legacy/reftest_cycle_fail.html | 5 + .../reftest/legacy/reftest_cycle_fail_0-ref.html | 5 + .../reftest/legacy/reftest_fuzzy_chain_ini.html | 11 + .../tests/infrastructure/reftest/red.html | 3 + .../infrastructure/reftest/reftest.https.html | 9 + .../infrastructure/reftest/reftest.www.sub.html | 10 + .../infrastructure/reftest/reftest_fuzzy_1.html | 12 + .../reftest/reftest_fuzzy_ini_full.html | 13 + .../reftest/reftest_fuzzy_ini_ref_only.html | 13 + .../reftest/reftest_fuzzy_ini_short.html | 13 + .../reftest/reftest_fuzzy_no_differences.html | 13 + .../reftest/reftest_fuzzy_no_differences_1.html | 13 + .../reftest/reftest_match-print-ref.html | 13 + .../reftest/reftest_match-print.html | 12 + .../infrastructure/reftest/reftest_match.html | 5 + .../reftest/reftest_match_and_mismatch-0.html | 6 + .../reftest/reftest_match_and_mismatch-1.html | 6 + .../reftest/reftest_match_and_mismatch-2.html | 7 + .../reftest/reftest_match_and_mismatch-3.html | 7 + .../reftest/reftest_match_and_mismatch-4.html | 7 + .../reftest/reftest_match_and_mismatch-5.html | 7 + .../reftest/reftest_match_and_mismatch-6.html | 8 + .../reftest/reftest_match_and_mismatch-7.html | 8 + .../reftest/reftest_match_fail-print.html | 12 + .../infrastructure/reftest/reftest_match_fail.html | 5 + .../reftest/reftest_mismatch-num-pages-print.html | 3 + .../reftest/reftest_mismatch-print.html | 13 + .../infrastructure/reftest/reftest_mismatch.html | 5 + .../reftest/reftest_mismatch_fail-print.html | 13 + .../reftest/reftest_mismatch_fail.html | 5 + .../reftest_mismatch_page_margins-print.html | 13 + .../reftest/reftest_multiple_match-0.html | 6 + .../reftest/reftest_multiple_match-1.html | 6 + .../reftest/reftest_multiple_mismatch-0.html | 6 + .../reftest/reftest_multiple_mismatch-1.html | 6 + .../reftest/reftest_ref_timeout-ref.html | 5 + .../reftest/reftest_ref_timeout.html | 6 + .../infrastructure/reftest/reftest_timeout.html | 6 + .../infrastructure/reftest/reftest_wait_0.html | 13 + .../reftest/reftest_wait_TestRendered.html | 14 + .../tests/infrastructure/reftest/size-ref.html | 2 + .../tests/infrastructure/reftest/size.html | 6 + .../tests/infrastructure/resources/ok.txt | 1 + .../tests/infrastructure/resources/ok.txt.headers | 1 + .../tests/infrastructure/server/context.any.js | 13 + .../server/http2-context.sub.h2.any.js | 12 + .../server/http2-websocket.sub.h2.any.js | 20 ++ .../infrastructure/server/order-of-metas.any.js | 10 + .../infrastructure/server/order-of-metas.window.js | 8 + .../server/resources/expect-global.js | 5 + .../server/resources/expect-seen-testharness.js | 5 + .../server/resources/expect-title-meta.js | 11 + .../infrastructure/server/resources/proxy.sub.pac | 7 + .../server/secure-context.https.any.js | 10 + .../server/subdomain-flag.www.sub.window.js | 5 + .../tests/infrastructure/server/test-pac.html | 12 + .../tests/infrastructure/server/title.any.js | 13 + .../server/webtransport-h3.https.sub.any.js | 26 ++ .../infrastructure/server/wpt-server-http.sub.html | 262 +++++++++++++++++ .../server/wpt-server-websocket.sub.html | 122 ++++++++ .../server/wpt-server-wpt-flags.sub.html | 32 +++ .../testdriver/actions/actionsWithKeyPressed.html | 66 +++++ .../testdriver/actions/crossOrigin.sub.html | 20 ++ .../testdriver/actions/crossOriginChild.html | 32 +++ .../testdriver/actions/elementPosition.html | 43 +++ .../testdriver/actions/elementTiming.html | 69 +++++ .../testdriver/actions/eventOrder.html | 61 ++++ .../infrastructure/testdriver/actions/iframe.html | 35 +++ .../testdriver/actions/iframeChild.html | 2 + .../testdriver/actions/mouseClickCount.html | 54 ++++ .../testdriver/actions/multiDevice.html | 36 +++ .../testdriver/actions/multiTouchPoints.html | 68 +++++ .../actions/multiTouchPointsReleaseFirstPoint.html | 56 ++++ .../multiTouchPointsReleaseSecondPoint.html | 69 +++++ .../actions/multiTouchPointsSimultaneousMove.html | 58 ++++ .../actions/multiTouchPointsTwoTouchStarts.html | 58 ++++ .../actions/multiTouchPointsWithPause.html | 67 +++++ .../infrastructure/testdriver/actions/pause.html | 19 ++ .../actions/penPointerEventProperties.html | 71 +++++ .../testdriver/actions/penPointerEvents.html | 159 ++++++++++ .../testdriver/actions/textEditCommands.html | 61 ++++ .../testdriver/actions/touchEvents.js | 11 + .../actions/touchPointerEventProperties.html | 71 +++++ .../testdriver/actions/wheelScroll.html | 44 +++ .../tests/infrastructure/testdriver/bless.html | 114 ++++++++ .../infrastructure/testdriver/click-multiple.html | 38 +++ .../tests/infrastructure/testdriver/click.html | 19 ++ .../infrastructure/testdriver/click_child.html | 7 + .../testdriver/click_child_crossorigin.html | 18 ++ .../testdriver/click_child_testdriver.html | 18 ++ .../infrastructure/testdriver/click_iframe.html | 24 ++ .../testdriver/click_iframe_crossorigin.sub.html | 23 ++ .../infrastructure/testdriver/click_nested.html | 31 ++ .../testdriver/click_nested_crossorigin.sub.html | 25 ++ .../testdriver/click_outer_child.html | 4 + .../testdriver/click_outer_child.sub.html | 4 + .../infrastructure/testdriver/click_window.html | 24 ++ .../testdriver/delete_all_cookies.html | 30 ++ .../tests/infrastructure/testdriver/file_upload.py | 2 + .../infrastructure/testdriver/file_upload.sub.html | 26 ++ .../infrastructure/testdriver/file_upload_data.txt | 1 + .../testdriver/generate_test_report.html | 16 ++ .../testdriver/get_all_cookies.sub.html | 95 ++++++ .../testdriver/get_all_cookies.sub.html.headers | 1 + .../testdriver/get_all_cookies.sub.https.html | 112 ++++++++ .../get_all_cookies.sub.https.html.headers | 1 + .../testdriver/get_named_cookie.sub.html | 105 +++++++ .../testdriver/get_named_cookie.sub.html.headers | 1 + .../testdriver/get_named_cookie.sub.https.html | 114 ++++++++ .../get_named_cookie.sub.https.html.headers | 1 + .../tests/infrastructure/testdriver/send_keys.html | 23 ++ .../testdriver/set_permission.https.html | 23 ++ .../testdriver/virtual_authenticator.html | 88 ++++++ .../testharness/lone-surrogates.html | 10 + .../infrastructure/webdriver/tests/conftest.py | 7 + .../webdriver/tests/test_load_file.py | 2 + 238 files changed, 5564 insertions(+) create mode 100644 testing/web-platform/tests/infrastructure/META.yml create mode 100644 testing/web-platform/tests/infrastructure/README.md create mode 100644 testing/web-platform/tests/infrastructure/assumptions/README.md create mode 100644 testing/web-platform/tests/infrastructure/assumptions/ahem-notref.html create mode 100644 testing/web-platform/tests/infrastructure/assumptions/ahem-ref.html create mode 100644 testing/web-platform/tests/infrastructure/assumptions/ahem.html create mode 100644 testing/web-platform/tests/infrastructure/assumptions/allowed-to-play.html create mode 100644 testing/web-platform/tests/infrastructure/assumptions/blank.html create mode 100644 testing/web-platform/tests/infrastructure/assumptions/canvas-background-ref.html create mode 100644 testing/web-platform/tests/infrastructure/assumptions/canvas-background.html create mode 100644 testing/web-platform/tests/infrastructure/assumptions/cookie.html create mode 100644 testing/web-platform/tests/infrastructure/assumptions/document-fonts-ready.html create mode 100644 testing/web-platform/tests/infrastructure/assumptions/html-elements.html create mode 100644 testing/web-platform/tests/infrastructure/assumptions/initial-color-ref.html create mode 100644 testing/web-platform/tests/infrastructure/assumptions/initial-color.html create mode 100644 testing/web-platform/tests/infrastructure/assumptions/medium-font-size-ref.html create mode 100644 testing/web-platform/tests/infrastructure/assumptions/medium-font-size.html create mode 100644 testing/web-platform/tests/infrastructure/assumptions/min-font-size-ref.html create mode 100644 testing/web-platform/tests/infrastructure/assumptions/min-font-size.html create mode 100644 testing/web-platform/tests/infrastructure/assumptions/non-local-ports.sub.window.js create mode 100644 testing/web-platform/tests/infrastructure/assumptions/non-secure-context.any.js create mode 100644 testing/web-platform/tests/infrastructure/assumptions/resources/fetch-and-post-result.html create mode 100644 testing/web-platform/tests/infrastructure/assumptions/tools/ahem-generate-table.py create mode 100644 testing/web-platform/tests/infrastructure/browsers/firefox/prefs.html create mode 100644 testing/web-platform/tests/infrastructure/channels/child_message.html create mode 100644 testing/web-platform/tests/infrastructure/channels/child_script.html create mode 100644 testing/web-platform/tests/infrastructure/channels/serialize-data.js create mode 100644 testing/web-platform/tests/infrastructure/channels/serialize_child.html create mode 100644 testing/web-platform/tests/infrastructure/channels/test_call.html create mode 100644 testing/web-platform/tests/infrastructure/channels/test_postMessage.html create mode 100644 testing/web-platform/tests/infrastructure/channels/test_serialize.html create mode 100644 testing/web-platform/tests/infrastructure/crashtests/example.html create mode 100644 testing/web-platform/tests/infrastructure/expected-fail/failing-test.html create mode 100644 testing/web-platform/tests/infrastructure/expected-fail/timeout.html create mode 100644 testing/web-platform/tests/infrastructure/expected-fail/uncaught-exception-following-subtest.html create mode 100644 testing/web-platform/tests/infrastructure/expected-fail/uncaught-exception-single-test.html create mode 100644 testing/web-platform/tests/infrastructure/expected-fail/uncaught-exception.html create mode 100644 testing/web-platform/tests/infrastructure/expected-fail/unhandled-rejection-following-subtest.html create mode 100644 testing/web-platform/tests/infrastructure/expected-fail/unhandled-rejection-single-test.html create mode 100644 testing/web-platform/tests/infrastructure/expected-fail/unhandled-rejection.html create mode 100644 testing/web-platform/tests/infrastructure/metadata/infrastructure/assumptions/ahem.html.ini create mode 100644 testing/web-platform/tests/infrastructure/metadata/infrastructure/assumptions/allowed-to-play.html.ini create mode 100644 testing/web-platform/tests/infrastructure/metadata/infrastructure/assumptions/document-fonts-ready.html.ini create mode 100644 testing/web-platform/tests/infrastructure/metadata/infrastructure/assumptions/non-local-ports.sub.window.js.ini create mode 100644 testing/web-platform/tests/infrastructure/metadata/infrastructure/browsers/firefox/__dir__.ini create mode 100644 testing/web-platform/tests/infrastructure/metadata/infrastructure/browsers/firefox/prefs.html.ini create mode 100644 testing/web-platform/tests/infrastructure/metadata/infrastructure/expected-fail/failing-test.html.ini create mode 100644 testing/web-platform/tests/infrastructure/metadata/infrastructure/expected-fail/timeout.html.ini create mode 100644 testing/web-platform/tests/infrastructure/metadata/infrastructure/expected-fail/uncaught-exception-following-subtest.html.ini create mode 100644 testing/web-platform/tests/infrastructure/metadata/infrastructure/expected-fail/uncaught-exception-single-test.html.ini create mode 100644 testing/web-platform/tests/infrastructure/metadata/infrastructure/expected-fail/uncaught-exception.html.ini create mode 100644 testing/web-platform/tests/infrastructure/metadata/infrastructure/expected-fail/unhandled-rejection-following-subtest.html.ini create mode 100644 testing/web-platform/tests/infrastructure/metadata/infrastructure/expected-fail/unhandled-rejection-single-test.html.ini create mode 100644 testing/web-platform/tests/infrastructure/metadata/infrastructure/expected-fail/unhandled-rejection.html.ini create mode 100644 testing/web-platform/tests/infrastructure/metadata/infrastructure/expected-fail/window-onload-test.html.ini create mode 100644 testing/web-platform/tests/infrastructure/metadata/infrastructure/reftest/legacy/fuzzy-ref-2.html.ini create mode 100644 testing/web-platform/tests/infrastructure/metadata/infrastructure/reftest/legacy/reftest_and_fail_0-ref.html.ini create mode 100644 testing/web-platform/tests/infrastructure/metadata/infrastructure/reftest/legacy/reftest_cycle_fail_0-ref.html.ini create mode 100644 testing/web-platform/tests/infrastructure/metadata/infrastructure/reftest/legacy/reftest_fuzzy_chain_ini.html.ini create mode 100644 testing/web-platform/tests/infrastructure/metadata/infrastructure/reftest/reftest_fuzzy_1.html.ini create mode 100644 testing/web-platform/tests/infrastructure/metadata/infrastructure/reftest/reftest_fuzzy_ini_full.html.ini create mode 100644 testing/web-platform/tests/infrastructure/metadata/infrastructure/reftest/reftest_fuzzy_ini_ref_only.html.ini create mode 100644 testing/web-platform/tests/infrastructure/metadata/infrastructure/reftest/reftest_fuzzy_ini_short.html.ini create mode 100644 testing/web-platform/tests/infrastructure/metadata/infrastructure/reftest/reftest_match_and_mismatch-0.html.ini create mode 100644 testing/web-platform/tests/infrastructure/metadata/infrastructure/reftest/reftest_match_and_mismatch-1.html.ini create mode 100644 testing/web-platform/tests/infrastructure/metadata/infrastructure/reftest/reftest_match_and_mismatch-4.html.ini create mode 100644 testing/web-platform/tests/infrastructure/metadata/infrastructure/reftest/reftest_match_and_mismatch-5.html.ini create mode 100644 testing/web-platform/tests/infrastructure/metadata/infrastructure/reftest/reftest_match_and_mismatch-6.html.ini create mode 100644 testing/web-platform/tests/infrastructure/metadata/infrastructure/reftest/reftest_match_and_mismatch-7.html.ini create mode 100644 testing/web-platform/tests/infrastructure/metadata/infrastructure/reftest/reftest_match_fail-print.html.ini create mode 100644 testing/web-platform/tests/infrastructure/metadata/infrastructure/reftest/reftest_match_fail.html.ini create mode 100644 testing/web-platform/tests/infrastructure/metadata/infrastructure/reftest/reftest_mismatch_fail-print.html.ini create mode 100644 testing/web-platform/tests/infrastructure/metadata/infrastructure/reftest/reftest_mismatch_fail.html.ini create mode 100644 testing/web-platform/tests/infrastructure/metadata/infrastructure/reftest/reftest_multiple_mismatch-0.html.ini create mode 100644 testing/web-platform/tests/infrastructure/metadata/infrastructure/reftest/reftest_multiple_mismatch-1.html.ini create mode 100644 testing/web-platform/tests/infrastructure/metadata/infrastructure/reftest/reftest_ref_timeout.html.ini create mode 100644 testing/web-platform/tests/infrastructure/metadata/infrastructure/reftest/reftest_timeout.html.ini create mode 100644 testing/web-platform/tests/infrastructure/metadata/infrastructure/server/context.any.js.ini create mode 100644 testing/web-platform/tests/infrastructure/metadata/infrastructure/server/http2-context.sub.h2.any.js.ini create mode 100644 testing/web-platform/tests/infrastructure/metadata/infrastructure/server/http2-websocket.sub.h2.any.js.ini create mode 100644 testing/web-platform/tests/infrastructure/metadata/infrastructure/server/secure-context.https.any.js.ini create mode 100644 testing/web-platform/tests/infrastructure/metadata/infrastructure/server/test-pac.html.ini create mode 100644 testing/web-platform/tests/infrastructure/metadata/infrastructure/server/webtransport-h3.https.sub.any.js.ini create mode 100644 testing/web-platform/tests/infrastructure/metadata/infrastructure/server/wpt-server-http.sub.html.ini create mode 100644 testing/web-platform/tests/infrastructure/metadata/infrastructure/server/wpt-server-websocket.sub.html.ini create mode 100644 testing/web-platform/tests/infrastructure/metadata/infrastructure/testdriver/actions/crossOrigin.sub.html.ini create mode 100644 testing/web-platform/tests/infrastructure/metadata/infrastructure/testdriver/actions/eventOrder.html.ini create mode 100644 testing/web-platform/tests/infrastructure/metadata/infrastructure/testdriver/actions/mouseClickCount.html.ini create mode 100644 testing/web-platform/tests/infrastructure/metadata/infrastructure/testdriver/actions/multiTouchPoints.html.ini create mode 100644 testing/web-platform/tests/infrastructure/metadata/infrastructure/testdriver/actions/multiTouchPointsReleaseFirstPoint.html.ini create mode 100644 testing/web-platform/tests/infrastructure/metadata/infrastructure/testdriver/actions/multiTouchPointsReleaseSecondPoint.html.ini create mode 100644 testing/web-platform/tests/infrastructure/metadata/infrastructure/testdriver/actions/multiTouchPointsSimultaneousMove.html.ini create mode 100644 testing/web-platform/tests/infrastructure/metadata/infrastructure/testdriver/actions/multiTouchPointsTwoTouchStarts.html.ini create mode 100644 testing/web-platform/tests/infrastructure/metadata/infrastructure/testdriver/actions/multiTouchPointsWithPause.html.ini create mode 100644 testing/web-platform/tests/infrastructure/metadata/infrastructure/testdriver/actions/pause.html.ini create mode 100644 testing/web-platform/tests/infrastructure/metadata/infrastructure/testdriver/actions/penPointerEventProperties.html.ini create mode 100644 testing/web-platform/tests/infrastructure/metadata/infrastructure/testdriver/actions/penPointerEvents.html.ini create mode 100644 testing/web-platform/tests/infrastructure/metadata/infrastructure/testdriver/actions/touchPointerEventProperties.html.ini create mode 100644 testing/web-platform/tests/infrastructure/metadata/infrastructure/testdriver/actions/wheelScroll.html.ini create mode 100644 testing/web-platform/tests/infrastructure/metadata/infrastructure/testdriver/click_iframe_crossorigin.sub.html.ini create mode 100644 testing/web-platform/tests/infrastructure/metadata/infrastructure/testdriver/file_upload.sub.html.ini create mode 100644 testing/web-platform/tests/infrastructure/metadata/infrastructure/testdriver/generate_test_report.html.ini create mode 100644 testing/web-platform/tests/infrastructure/metadata/infrastructure/testdriver/set_permission.https.html.ini create mode 100644 testing/web-platform/tests/infrastructure/metadata/infrastructure/testdriver/virtual_authenticator.html.ini create mode 100644 testing/web-platform/tests/infrastructure/metadata/infrastructure/testharness/lone-surrogates.html.ini create mode 100644 testing/web-platform/tests/infrastructure/metadata/update_properties.json create mode 100644 testing/web-platform/tests/infrastructure/reftest-wait-ref.html create mode 100644 testing/web-platform/tests/infrastructure/reftest-wait.html create mode 100644 testing/web-platform/tests/infrastructure/reftest/fuzzy-ref-1.html create mode 100644 testing/web-platform/tests/infrastructure/reftest/green-ref.html create mode 100644 testing/web-platform/tests/infrastructure/reftest/green.html create mode 100644 testing/web-platform/tests/infrastructure/reftest/legacy/README.md create mode 100644 testing/web-platform/tests/infrastructure/reftest/legacy/fuzzy-ref-2.html create mode 100644 testing/web-platform/tests/infrastructure/reftest/legacy/fuzzy-ref-2a.html create mode 100644 testing/web-platform/tests/infrastructure/reftest/legacy/reftest_and_fail.html create mode 100644 testing/web-platform/tests/infrastructure/reftest/legacy/reftest_and_fail_0-ref.html create mode 100644 testing/web-platform/tests/infrastructure/reftest/legacy/reftest_and_mismatch.html create mode 100644 testing/web-platform/tests/infrastructure/reftest/legacy/reftest_and_mismatch_0.html create mode 100644 testing/web-platform/tests/infrastructure/reftest/legacy/reftest_and_mismatch_1.html create mode 100644 testing/web-platform/tests/infrastructure/reftest/legacy/reftest_cycle.html create mode 100644 testing/web-platform/tests/infrastructure/reftest/legacy/reftest_cycle_0-ref.html create mode 100644 testing/web-platform/tests/infrastructure/reftest/legacy/reftest_cycle_1-ref.html create mode 100644 testing/web-platform/tests/infrastructure/reftest/legacy/reftest_cycle_fail.html create mode 100644 testing/web-platform/tests/infrastructure/reftest/legacy/reftest_cycle_fail_0-ref.html create mode 100644 testing/web-platform/tests/infrastructure/reftest/legacy/reftest_fuzzy_chain_ini.html create mode 100644 testing/web-platform/tests/infrastructure/reftest/red.html create mode 100644 testing/web-platform/tests/infrastructure/reftest/reftest.https.html create mode 100644 testing/web-platform/tests/infrastructure/reftest/reftest.www.sub.html create mode 100644 testing/web-platform/tests/infrastructure/reftest/reftest_fuzzy_1.html create mode 100644 testing/web-platform/tests/infrastructure/reftest/reftest_fuzzy_ini_full.html create mode 100644 testing/web-platform/tests/infrastructure/reftest/reftest_fuzzy_ini_ref_only.html create mode 100644 testing/web-platform/tests/infrastructure/reftest/reftest_fuzzy_ini_short.html create mode 100644 testing/web-platform/tests/infrastructure/reftest/reftest_fuzzy_no_differences.html create mode 100644 testing/web-platform/tests/infrastructure/reftest/reftest_fuzzy_no_differences_1.html create mode 100644 testing/web-platform/tests/infrastructure/reftest/reftest_match-print-ref.html create mode 100644 testing/web-platform/tests/infrastructure/reftest/reftest_match-print.html create mode 100644 testing/web-platform/tests/infrastructure/reftest/reftest_match.html create mode 100644 testing/web-platform/tests/infrastructure/reftest/reftest_match_and_mismatch-0.html create mode 100644 testing/web-platform/tests/infrastructure/reftest/reftest_match_and_mismatch-1.html create mode 100644 testing/web-platform/tests/infrastructure/reftest/reftest_match_and_mismatch-2.html create mode 100644 testing/web-platform/tests/infrastructure/reftest/reftest_match_and_mismatch-3.html create mode 100644 testing/web-platform/tests/infrastructure/reftest/reftest_match_and_mismatch-4.html create mode 100644 testing/web-platform/tests/infrastructure/reftest/reftest_match_and_mismatch-5.html create mode 100644 testing/web-platform/tests/infrastructure/reftest/reftest_match_and_mismatch-6.html create mode 100644 testing/web-platform/tests/infrastructure/reftest/reftest_match_and_mismatch-7.html create mode 100644 testing/web-platform/tests/infrastructure/reftest/reftest_match_fail-print.html create mode 100644 testing/web-platform/tests/infrastructure/reftest/reftest_match_fail.html create mode 100644 testing/web-platform/tests/infrastructure/reftest/reftest_mismatch-num-pages-print.html create mode 100644 testing/web-platform/tests/infrastructure/reftest/reftest_mismatch-print.html create mode 100644 testing/web-platform/tests/infrastructure/reftest/reftest_mismatch.html create mode 100644 testing/web-platform/tests/infrastructure/reftest/reftest_mismatch_fail-print.html create mode 100644 testing/web-platform/tests/infrastructure/reftest/reftest_mismatch_fail.html create mode 100644 testing/web-platform/tests/infrastructure/reftest/reftest_mismatch_page_margins-print.html create mode 100644 testing/web-platform/tests/infrastructure/reftest/reftest_multiple_match-0.html create mode 100644 testing/web-platform/tests/infrastructure/reftest/reftest_multiple_match-1.html create mode 100644 testing/web-platform/tests/infrastructure/reftest/reftest_multiple_mismatch-0.html create mode 100644 testing/web-platform/tests/infrastructure/reftest/reftest_multiple_mismatch-1.html create mode 100644 testing/web-platform/tests/infrastructure/reftest/reftest_ref_timeout-ref.html create mode 100644 testing/web-platform/tests/infrastructure/reftest/reftest_ref_timeout.html create mode 100644 testing/web-platform/tests/infrastructure/reftest/reftest_timeout.html create mode 100644 testing/web-platform/tests/infrastructure/reftest/reftest_wait_0.html create mode 100644 testing/web-platform/tests/infrastructure/reftest/reftest_wait_TestRendered.html create mode 100644 testing/web-platform/tests/infrastructure/reftest/size-ref.html create mode 100644 testing/web-platform/tests/infrastructure/reftest/size.html create mode 100644 testing/web-platform/tests/infrastructure/resources/ok.txt create mode 100644 testing/web-platform/tests/infrastructure/resources/ok.txt.headers create mode 100644 testing/web-platform/tests/infrastructure/server/context.any.js create mode 100644 testing/web-platform/tests/infrastructure/server/http2-context.sub.h2.any.js create mode 100644 testing/web-platform/tests/infrastructure/server/http2-websocket.sub.h2.any.js create mode 100644 testing/web-platform/tests/infrastructure/server/order-of-metas.any.js create mode 100644 testing/web-platform/tests/infrastructure/server/order-of-metas.window.js create mode 100644 testing/web-platform/tests/infrastructure/server/resources/expect-global.js create mode 100644 testing/web-platform/tests/infrastructure/server/resources/expect-seen-testharness.js create mode 100644 testing/web-platform/tests/infrastructure/server/resources/expect-title-meta.js create mode 100644 testing/web-platform/tests/infrastructure/server/resources/proxy.sub.pac create mode 100644 testing/web-platform/tests/infrastructure/server/secure-context.https.any.js create mode 100644 testing/web-platform/tests/infrastructure/server/subdomain-flag.www.sub.window.js create mode 100644 testing/web-platform/tests/infrastructure/server/test-pac.html create mode 100644 testing/web-platform/tests/infrastructure/server/title.any.js create mode 100644 testing/web-platform/tests/infrastructure/server/webtransport-h3.https.sub.any.js create mode 100644 testing/web-platform/tests/infrastructure/server/wpt-server-http.sub.html create mode 100644 testing/web-platform/tests/infrastructure/server/wpt-server-websocket.sub.html create mode 100644 testing/web-platform/tests/infrastructure/server/wpt-server-wpt-flags.sub.html create mode 100644 testing/web-platform/tests/infrastructure/testdriver/actions/actionsWithKeyPressed.html create mode 100644 testing/web-platform/tests/infrastructure/testdriver/actions/crossOrigin.sub.html create mode 100644 testing/web-platform/tests/infrastructure/testdriver/actions/crossOriginChild.html create mode 100644 testing/web-platform/tests/infrastructure/testdriver/actions/elementPosition.html create mode 100644 testing/web-platform/tests/infrastructure/testdriver/actions/elementTiming.html create mode 100644 testing/web-platform/tests/infrastructure/testdriver/actions/eventOrder.html create mode 100644 testing/web-platform/tests/infrastructure/testdriver/actions/iframe.html create mode 100644 testing/web-platform/tests/infrastructure/testdriver/actions/iframeChild.html create mode 100644 testing/web-platform/tests/infrastructure/testdriver/actions/mouseClickCount.html create mode 100644 testing/web-platform/tests/infrastructure/testdriver/actions/multiDevice.html create mode 100644 testing/web-platform/tests/infrastructure/testdriver/actions/multiTouchPoints.html create mode 100644 testing/web-platform/tests/infrastructure/testdriver/actions/multiTouchPointsReleaseFirstPoint.html create mode 100644 testing/web-platform/tests/infrastructure/testdriver/actions/multiTouchPointsReleaseSecondPoint.html create mode 100644 testing/web-platform/tests/infrastructure/testdriver/actions/multiTouchPointsSimultaneousMove.html create mode 100644 testing/web-platform/tests/infrastructure/testdriver/actions/multiTouchPointsTwoTouchStarts.html create mode 100644 testing/web-platform/tests/infrastructure/testdriver/actions/multiTouchPointsWithPause.html create mode 100644 testing/web-platform/tests/infrastructure/testdriver/actions/pause.html create mode 100644 testing/web-platform/tests/infrastructure/testdriver/actions/penPointerEventProperties.html create mode 100644 testing/web-platform/tests/infrastructure/testdriver/actions/penPointerEvents.html create mode 100644 testing/web-platform/tests/infrastructure/testdriver/actions/textEditCommands.html create mode 100644 testing/web-platform/tests/infrastructure/testdriver/actions/touchEvents.js create mode 100644 testing/web-platform/tests/infrastructure/testdriver/actions/touchPointerEventProperties.html create mode 100644 testing/web-platform/tests/infrastructure/testdriver/actions/wheelScroll.html create mode 100644 testing/web-platform/tests/infrastructure/testdriver/bless.html create mode 100644 testing/web-platform/tests/infrastructure/testdriver/click-multiple.html create mode 100644 testing/web-platform/tests/infrastructure/testdriver/click.html create mode 100644 testing/web-platform/tests/infrastructure/testdriver/click_child.html create mode 100644 testing/web-platform/tests/infrastructure/testdriver/click_child_crossorigin.html create mode 100644 testing/web-platform/tests/infrastructure/testdriver/click_child_testdriver.html create mode 100644 testing/web-platform/tests/infrastructure/testdriver/click_iframe.html create mode 100644 testing/web-platform/tests/infrastructure/testdriver/click_iframe_crossorigin.sub.html create mode 100644 testing/web-platform/tests/infrastructure/testdriver/click_nested.html create mode 100644 testing/web-platform/tests/infrastructure/testdriver/click_nested_crossorigin.sub.html create mode 100644 testing/web-platform/tests/infrastructure/testdriver/click_outer_child.html create mode 100644 testing/web-platform/tests/infrastructure/testdriver/click_outer_child.sub.html create mode 100644 testing/web-platform/tests/infrastructure/testdriver/click_window.html create mode 100644 testing/web-platform/tests/infrastructure/testdriver/delete_all_cookies.html create mode 100644 testing/web-platform/tests/infrastructure/testdriver/file_upload.py create mode 100644 testing/web-platform/tests/infrastructure/testdriver/file_upload.sub.html create mode 100644 testing/web-platform/tests/infrastructure/testdriver/file_upload_data.txt create mode 100644 testing/web-platform/tests/infrastructure/testdriver/generate_test_report.html create mode 100644 testing/web-platform/tests/infrastructure/testdriver/get_all_cookies.sub.html create mode 100644 testing/web-platform/tests/infrastructure/testdriver/get_all_cookies.sub.html.headers create mode 100644 testing/web-platform/tests/infrastructure/testdriver/get_all_cookies.sub.https.html create mode 100644 testing/web-platform/tests/infrastructure/testdriver/get_all_cookies.sub.https.html.headers create mode 100644 testing/web-platform/tests/infrastructure/testdriver/get_named_cookie.sub.html create mode 100644 testing/web-platform/tests/infrastructure/testdriver/get_named_cookie.sub.html.headers create mode 100644 testing/web-platform/tests/infrastructure/testdriver/get_named_cookie.sub.https.html create mode 100644 testing/web-platform/tests/infrastructure/testdriver/get_named_cookie.sub.https.html.headers create mode 100644 testing/web-platform/tests/infrastructure/testdriver/send_keys.html create mode 100644 testing/web-platform/tests/infrastructure/testdriver/set_permission.https.html create mode 100644 testing/web-platform/tests/infrastructure/testdriver/virtual_authenticator.html create mode 100644 testing/web-platform/tests/infrastructure/testharness/lone-surrogates.html create mode 100644 testing/web-platform/tests/infrastructure/webdriver/tests/conftest.py create mode 100644 testing/web-platform/tests/infrastructure/webdriver/tests/test_load_file.py (limited to 'testing/web-platform/tests/infrastructure') diff --git a/testing/web-platform/tests/infrastructure/META.yml b/testing/web-platform/tests/infrastructure/META.yml new file mode 100644 index 0000000000..64a240ccbe --- /dev/null +++ b/testing/web-platform/tests/infrastructure/META.yml @@ -0,0 +1,2 @@ +suggested_reviewers: + - jgraham diff --git a/testing/web-platform/tests/infrastructure/README.md b/testing/web-platform/tests/infrastructure/README.md new file mode 100644 index 0000000000..82138a300b --- /dev/null +++ b/testing/web-platform/tests/infrastructure/README.md @@ -0,0 +1,9 @@ +This directory contains a number of tests to ensure test running +infrastructure is operating correctly: + + * The tests in assumptions/ are designed to test UA assumptions + documented in [assumptions.md](/docs/_writing-tests/assumptions.md). + + * The tests in server/ are designed to test the WPT server configuration + + * The tests in expected-fail/ should all fail. diff --git a/testing/web-platform/tests/infrastructure/assumptions/README.md b/testing/web-platform/tests/infrastructure/assumptions/README.md new file mode 100644 index 0000000000..51902b8899 --- /dev/null +++ b/testing/web-platform/tests/infrastructure/assumptions/README.md @@ -0,0 +1 @@ +To update the generated tests, run `wpt update-built --include infrastructure`. diff --git a/testing/web-platform/tests/infrastructure/assumptions/ahem-notref.html b/testing/web-platform/tests/infrastructure/assumptions/ahem-notref.html new file mode 100644 index 0000000000..51767c26ea --- /dev/null +++ b/testing/web-platform/tests/infrastructure/assumptions/ahem-notref.html @@ -0,0 +1,316 @@ + +Ahem checker + + + + + + + + + + + + + + + + + + + +
x + !x + "x + #x + $x + %x + &x + (x + )x + *x + +x + ,x + -x + .x + /x + 0x + 1x +
2x + 3x + 4x + 5x + 6x + 7x + 8x + 9x + :x + ;x + <x + =x + >x + ?x + @x + Ax + Bx +
Cx + Dx + Ex + Fx + Gx + Hx + Ix + Jx + Kx + Lx + Mx + Nx + Ox + Px + Qx + Rx + Sx +
Tx + Ux + Vx + Wx + Xx + Yx + Zx + [x + \x + ]x + ^x + _x + `x + ax + bx + cx + dx +
ex + fx + gx + hx + ix + jx + kx + lx + mx + nx + ox + px + qx + rx + sx + tx + ux +
vx + wx + xx + yx + zx + {x + |x + }x + ~x +  x + ¡x + ¢x + £x + ¤x + ¥x + ¦x + §x +
¨x + ©x + ªx + «x + ¬x + ­x + ®x + ¯x + °x + ±x + ²x + ³x + ´x + µx + ¶x + ·x + ¸x +
¹x + ºx + »x + ¼x + ½x + ¾x + ¿x + Àx + Áx + Âx + Ãx + Äx + Åx + Æx + Çx + Èx + Éx +
Êx + Ëx + Ìx + Íx + Îx + Ïx + Ðx + Ñx + Òx + Óx + Ôx + Õx + Öx + ×x + Øx + Ùx + Úx +
Ûx + Üx + Ýx + Þx + ßx + àx + áx + âx + ãx + äx + åx + æx + çx + èx + éx + êx + ëx +
ìx + íx + îx + ïx + ðx + ñx + òx + óx + ôx + õx + öx + ÷x + øx + ùx + úx + ûx + üx +
ýx + þx + ÿx + ıx + Œx + œx + Ÿx + ƒx + ˆx + ˇx + ˉx + ˘x + ˙x + ˚x + ˛x + ˜x + ˝x +
Δx + Υx + Χx + Ωx + μx + πx +  x +  x +  x +  x +  x +  x +  x + ​x + ‌x + ‍x + ‐x +
–x + —x + ‘x + ’x + ‚x + “x + ”x + „x + †x + ‡x + •x + …x + ‰x + ‹x + ›x + ⁄x + ™x +
Ωx + ∂x + ∆x + ∏x + ∑x + −x + ∙x + √x + ∞x + ∫x + ≈x + ≠x + ≤x + ≥x + ⋲x + ◊x +  x +
〇x + 一x + 七x + 三x + 九x + 二x + 五x + 八x + 六x + 十x + 囗x + 四x + 土x + 木x + 横x + 水x + 火x +
纵x + 金x + x + x + x + x +
diff --git a/testing/web-platform/tests/infrastructure/assumptions/ahem-ref.html b/testing/web-platform/tests/infrastructure/assumptions/ahem-ref.html new file mode 100644 index 0000000000..9116232620 --- /dev/null +++ b/testing/web-platform/tests/infrastructure/assumptions/ahem-ref.html @@ -0,0 +1,320 @@ + +Ahem checker + + + + + + + + + + + + + + + + + + + + +
x + !x + "x + #x + $x + %x + &x + (x + )x + *x + +x + ,x + -x + .x + /x + 0x + 1x +
2x + 3x + 4x + 5x + 6x + 7x + 8x + 9x + :x + ;x + <x + =x + >x + ?x + @x + Ax + Bx +
Cx + Dx + Ex + Fx + Gx + Hx + Ix + Jx + Kx + Lx + Mx + Nx + Ox + Px + Qx + Rx + Sx +
Tx + Ux + Vx + Wx + Xx + Yx + Zx + [x + \x + ]x + ^x + _x + `x + ax + bx + cx + dx +
ex + fx + gx + hx + ix + jx + kx + lx + mx + nx + ox + px + qx + rx + sx + tx + ux +
vx + wx + xx + yx + zx + {x + |x + }x + ~x +  x + ¡x + ¢x + £x + ¤x + ¥x + ¦x + §x +
¨x + ©x + ªx + «x + ¬x + ­x + ®x + ¯x + °x + ±x + ²x + ³x + ´x + µx + ¶x + ·x + ¸x +
¹x + ºx + »x + ¼x + ½x + ¾x + ¿x + Àx + Áx + Âx + Ãx + Äx + Åx + Æx + Çx + Èx + Éx +
Êx + Ëx + Ìx + Íx + Îx + Ïx + Ðx + Ñx + Òx + Óx + Ôx + Õx + Öx + ×x + Øx + Ùx + Úx +
Ûx + Üx + Ýx + Þx + ßx + àx + áx + âx + ãx + äx + åx + æx + çx + èx + éx + êx + ëx +
ìx + íx + îx + ïx + ðx + ñx + òx + óx + ôx + õx + öx + ÷x + øx + ùx + úx + ûx + üx +
ýx + þx + ÿx + ıx + Œx + œx + Ÿx + ƒx + ˆx + ˇx + ˉx + ˘x + ˙x + ˚x + ˛x + ˜x + ˝x +
Δx + Υx + Χx + Ωx + μx + πx +  x +  x +  x +  x +  x +  x +  x + ​x + ‌x + ‍x + ‐x +
–x + —x + ‘x + ’x + ‚x + “x + ”x + „x + †x + ‡x + •x + …x + ‰x + ‹x + ›x + ⁄x + ™x +
Ωx + ∂x + ∆x + ∏x + ∑x + −x + ∙x + √x + ∞x + ∫x + ≈x + ≠x + ≤x + ≥x + ⋲x + ◊x +  x +
〇x + 一x + 七x + 三x + 九x + 二x + 五x + 八x + 六x + 十x + 囗x + 四x + 土x + 木x + 横x + 水x + 火x +
纵x + 金x + x + x + x + x +
diff --git a/testing/web-platform/tests/infrastructure/assumptions/ahem.html b/testing/web-platform/tests/infrastructure/assumptions/ahem.html new file mode 100644 index 0000000000..068c1d4dee --- /dev/null +++ b/testing/web-platform/tests/infrastructure/assumptions/ahem.html @@ -0,0 +1,316 @@ + +Ahem checker + + + + + + + + + + + + + + + + + + + + +
x + !x + "x + #x + $x + %x + &x + (x + )x + *x + +x + ,x + -x + .x + /x + 0x + 1x +
2x + 3x + 4x + 5x + 6x + 7x + 8x + 9x + :x + ;x + <x + =x + >x + ?x + @x + Ax + Bx +
Cx + Dx + Ex + Fx + Gx + Hx + Ix + Jx + Kx + Lx + Mx + Nx + Ox + Px + Qx + Rx + Sx +
Tx + Ux + Vx + Wx + Xx + Yx + Zx + [x + \x + ]x + ^x + _x + `x + ax + bx + cx + dx +
ex + fx + gx + hx + ix + jx + kx + lx + mx + nx + ox + px + qx + rx + sx + tx + ux +
vx + wx + xx + yx + zx + {x + |x + }x + ~x +  x + ¡x + ¢x + £x + ¤x + ¥x + ¦x + §x +
¨x + ©x + ªx + «x + ¬x + ­x + ®x + ¯x + °x + ±x + ²x + ³x + ´x + µx + ¶x + ·x + ¸x +
¹x + ºx + »x + ¼x + ½x + ¾x + ¿x + Àx + Áx + Âx + Ãx + Äx + Åx + Æx + Çx + Èx + Éx +
Êx + Ëx + Ìx + Íx + Îx + Ïx + Ðx + Ñx + Òx + Óx + Ôx + Õx + Öx + ×x + Øx + Ùx + Úx +
Ûx + Üx + Ýx + Þx + ßx + àx + áx + âx + ãx + äx + åx + æx + çx + èx + éx + êx + ëx +
ìx + íx + îx + ïx + ðx + ñx + òx + óx + ôx + õx + öx + ÷x + øx + ùx + úx + ûx + üx +
ýx + þx + ÿx + ıx + Œx + œx + Ÿx + ƒx + ˆx + ˇx + ˉx + ˘x + ˙x + ˚x + ˛x + ˜x + ˝x +
Δx + Υx + Χx + Ωx + μx + πx +  x +  x +  x +  x +  x +  x +  x + ​x + ‌x + ‍x + ‐x +
–x + —x + ‘x + ’x + ‚x + “x + ”x + „x + †x + ‡x + •x + …x + ‰x + ‹x + ›x + ⁄x + ™x +
Ωx + ∂x + ∆x + ∏x + ∑x + −x + ∙x + √x + ∞x + ∫x + ≈x + ≠x + ≤x + ≥x + ⋲x + ◊x +  x +
〇x + 一x + 七x + 三x + 九x + 二x + 五x + 八x + 六x + 十x + 囗x + 四x + 土x + 木x + 横x + 水x + 火x +
纵x + 金x + x + x + x + x +
diff --git a/testing/web-platform/tests/infrastructure/assumptions/allowed-to-play.html b/testing/web-platform/tests/infrastructure/assumptions/allowed-to-play.html new file mode 100644 index 0000000000..bfa5729371 --- /dev/null +++ b/testing/web-platform/tests/infrastructure/assumptions/allowed-to-play.html @@ -0,0 +1,23 @@ + +<audio and <video> autoplay + + + + + + diff --git a/testing/web-platform/tests/infrastructure/assumptions/blank.html b/testing/web-platform/tests/infrastructure/assumptions/blank.html new file mode 100644 index 0000000000..6d8da5e89c --- /dev/null +++ b/testing/web-platform/tests/infrastructure/assumptions/blank.html @@ -0,0 +1,2 @@ +Blank Document + diff --git a/testing/web-platform/tests/infrastructure/assumptions/canvas-background-ref.html b/testing/web-platform/tests/infrastructure/assumptions/canvas-background-ref.html new file mode 100644 index 0000000000..b117f6b300 --- /dev/null +++ b/testing/web-platform/tests/infrastructure/assumptions/canvas-background-ref.html @@ -0,0 +1,8 @@ + +canvas background reference + +

The background should be white diff --git a/testing/web-platform/tests/infrastructure/assumptions/canvas-background.html b/testing/web-platform/tests/infrastructure/assumptions/canvas-background.html new file mode 100644 index 0000000000..962edf5e8b --- /dev/null +++ b/testing/web-platform/tests/infrastructure/assumptions/canvas-background.html @@ -0,0 +1,4 @@ + +Check canvas background is white + +

The background should be white diff --git a/testing/web-platform/tests/infrastructure/assumptions/cookie.html b/testing/web-platform/tests/infrastructure/assumptions/cookie.html new file mode 100644 index 0000000000..5d5b0dc0e1 --- /dev/null +++ b/testing/web-platform/tests/infrastructure/assumptions/cookie.html @@ -0,0 +1,18 @@ + +cookies work in default browse settings + + + + + + diff --git a/testing/web-platform/tests/infrastructure/assumptions/document-fonts-ready.html b/testing/web-platform/tests/infrastructure/assumptions/document-fonts-ready.html new file mode 100644 index 0000000000..9fb0137025 --- /dev/null +++ b/testing/web-platform/tests/infrastructure/assumptions/document-fonts-ready.html @@ -0,0 +1,32 @@ + +document.fonts.ready resolves after layout depending on loaded fonts + + + + + +

+X + diff --git a/testing/web-platform/tests/infrastructure/assumptions/html-elements.html b/testing/web-platform/tests/infrastructure/assumptions/html-elements.html new file mode 100644 index 0000000000..3fe3d201ff --- /dev/null +++ b/testing/web-platform/tests/infrastructure/assumptions/html-elements.html @@ -0,0 +1,133 @@ + +HTML styles + + + +
+
+
+
+ + +

+
    +
  • +
+
    +
  1. +
+ + + +
+
+
+ diff --git a/testing/web-platform/tests/infrastructure/assumptions/initial-color-ref.html b/testing/web-platform/tests/infrastructure/assumptions/initial-color-ref.html new file mode 100644 index 0000000000..46dd110bd3 --- /dev/null +++ b/testing/web-platform/tests/infrastructure/assumptions/initial-color-ref.html @@ -0,0 +1,12 @@ + +Initial color is black reference + +

The text should be black diff --git a/testing/web-platform/tests/infrastructure/assumptions/initial-color.html b/testing/web-platform/tests/infrastructure/assumptions/initial-color.html new file mode 100644 index 0000000000..f1033c7d7e --- /dev/null +++ b/testing/web-platform/tests/infrastructure/assumptions/initial-color.html @@ -0,0 +1,9 @@ + +Initial color is black + + +

The text should be black diff --git a/testing/web-platform/tests/infrastructure/assumptions/medium-font-size-ref.html b/testing/web-platform/tests/infrastructure/assumptions/medium-font-size-ref.html new file mode 100644 index 0000000000..c1600ec419 --- /dev/null +++ b/testing/web-platform/tests/infrastructure/assumptions/medium-font-size-ref.html @@ -0,0 +1,8 @@ + +medium font-size reference + +

This text should be 16px diff --git a/testing/web-platform/tests/infrastructure/assumptions/medium-font-size.html b/testing/web-platform/tests/infrastructure/assumptions/medium-font-size.html new file mode 100644 index 0000000000..f4c303d0ba --- /dev/null +++ b/testing/web-platform/tests/infrastructure/assumptions/medium-font-size.html @@ -0,0 +1,9 @@ + +Check medium font-size is 16px + + +

This text should be 16px diff --git a/testing/web-platform/tests/infrastructure/assumptions/min-font-size-ref.html b/testing/web-platform/tests/infrastructure/assumptions/min-font-size-ref.html new file mode 100644 index 0000000000..013970bedf --- /dev/null +++ b/testing/web-platform/tests/infrastructure/assumptions/min-font-size-ref.html @@ -0,0 +1,8 @@ + +Tiny text reference + +

Tiny text diff --git a/testing/web-platform/tests/infrastructure/assumptions/min-font-size.html b/testing/web-platform/tests/infrastructure/assumptions/min-font-size.html new file mode 100644 index 0000000000..a4b9a1cd36 --- /dev/null +++ b/testing/web-platform/tests/infrastructure/assumptions/min-font-size.html @@ -0,0 +1,9 @@ + +Check 1px and 2px font-sizes are different + + +

Tiny text diff --git a/testing/web-platform/tests/infrastructure/assumptions/non-local-ports.sub.window.js b/testing/web-platform/tests/infrastructure/assumptions/non-local-ports.sub.window.js new file mode 100644 index 0000000000..8c9eb33c4f --- /dev/null +++ b/testing/web-platform/tests/infrastructure/assumptions/non-local-ports.sub.window.js @@ -0,0 +1,111 @@ +// Verifies that non-local HTTP(S) ports are open and serve correctly. +// +// See the corresponding WPT RFC: +// https://github.com/web-platform-tests/rfcs/blob/master/rfcs/address_space_overrides.md +// +// These ports are used to test the Private Network Access specification: +// https://wicg.github.io/private-network-access/ +// +// More tests can be found in `fetch/private-network-access/`. + +const alternatePorts = { + httpPrivate: "{{ports[http-private][0]}}", + httpsPrivate: "{{ports[https-private][0]}}", + httpPublic: "{{ports[http-public][0]}}", + httpsPublic: "{{ports[https-public][0]}}", +}; + +// Resolves a URL relative to the current location, returning an absolute URL. +// +// `url` specifies the relative URL, e.g. "foo.html" or "http://foo.example". +// `options.protocol` and `options.port`, if defined, override the respective +// properties of the returned URL object. +function resolveUrl(url, options) { + const result = new URL(url, window.location); + if (options === undefined) { + return result; + } + + const { port, protocol } = options; + if (port !== undefined) { + result.port = port; + } + if (protocol !== undefined) { + result.protocol = protocol; + } + + return result; +} + +const alternateOrigins = { + httpPrivate: { + protocol: "http:", + port: alternatePorts.httpPrivate, + }, + httpsPrivate: { + protocol: "https:", + port: alternatePorts.httpsPrivate, + }, + httpPublic: { + protocol: "http:", + port: alternatePorts.httpPublic, + }, + httpsPublic: { + protocol: "https:", + port: alternatePorts.httpsPublic, + }, +}; + +promise_test(async () => { + const url = + resolveUrl("/common/blank-with-cors.html", alternateOrigins.httpsPrivate); + const response = await fetch(url); + assert_true(response.ok); +}, "Fetch from https-private port works."); + +promise_test(async () => { + const url = + resolveUrl("/common/blank-with-cors.html", alternateOrigins.httpPrivate); + const response = await fetch(url); + assert_true(response.ok); +}, "Fetch from http-private port works."); + +promise_test(async () => { + const url = + resolveUrl("/common/blank-with-cors.html", alternateOrigins.httpsPublic); + const response = await fetch(url); + assert_true(response.ok); +}, "Fetch from https-public port works."); + +promise_test(async () => { + const url = + resolveUrl("/common/blank-with-cors.html", alternateOrigins.httpPublic); + const response = await fetch(url); + assert_true(response.ok); +}, "Fetch from http-public port works."); + +promise_test(async (t) => { + const futureMessage = new Promise((resolve) => { + window.addEventListener("message", resolve); + }); + + const iframe = await new Promise((resolve, reject) => { + const iframe = document.createElement("iframe"); + iframe.src = resolveUrl("resources/fetch-and-post-result.html", + alternateOrigins.httpPublic); + + iframe.onload = () => { resolve(iframe); }; + iframe.onerror = reject; + + document.body.appendChild(iframe); + t.add_cleanup(() => { + document.body.removeChild(iframe); + }); + }); + + iframe.contentWindow.postMessage( + resolveUrl("/common/blank-with-cors.html").toString(), "*"); + + const evt = await futureMessage; + assert_equals(evt.data, "failure: error = TypeError"); +}, "Fetch from http-public to local http fails."); diff --git a/testing/web-platform/tests/infrastructure/assumptions/non-secure-context.any.js b/testing/web-platform/tests/infrastructure/assumptions/non-secure-context.any.js new file mode 100644 index 0000000000..c05689fe76 --- /dev/null +++ b/testing/web-platform/tests/infrastructure/assumptions/non-secure-context.any.js @@ -0,0 +1,9 @@ +test(() => { + assert_false(self.isSecureContext); +}, "Lack of .https file name flag implies non-secure context"); + +test(() => { + assert_equals(location.protocol, "http:"); +}, "Lack of .https file name flag implies HTTP scheme"); + +done(); diff --git a/testing/web-platform/tests/infrastructure/assumptions/resources/fetch-and-post-result.html b/testing/web-platform/tests/infrastructure/assumptions/resources/fetch-and-post-result.html new file mode 100644 index 0000000000..4df0c4c71a --- /dev/null +++ b/testing/web-platform/tests/infrastructure/assumptions/resources/fetch-and-post-result.html @@ -0,0 +1,12 @@ + + diff --git a/testing/web-platform/tests/infrastructure/assumptions/tools/ahem-generate-table.py b/testing/web-platform/tests/infrastructure/assumptions/tools/ahem-generate-table.py new file mode 100644 index 0000000000..8790da02e2 --- /dev/null +++ b/testing/web-platform/tests/infrastructure/assumptions/tools/ahem-generate-table.py @@ -0,0 +1,129 @@ +from __future__ import print_function, unicode_literals + +import itertools +import unicodedata + +from fontTools.ttLib import TTFont + +try: + chr(0x100) +except ValueError: + chr = unichr + +def grouper(n, iterable): + """ + >>> list(grouper(3, 'ABCDEFG')) + [['A', 'B', 'C'], ['D', 'E', 'F'], ['G']] + """ + iterable = iter(iterable) + return iter(lambda: list(itertools.islice(iterable, n)), []) + +ttf = TTFont("../../../fonts/Ahem.ttf") + +chars = {char for table in ttf['cmap'].tables for char in table.cmap.keys()} + +# exclude chars that can't be represented as HTML numeric character refs +chars = chars - (set(range(0x80, 0x9F+1)) | {0x00}) + +chars_sorted = sorted(chars) + +per_row = 17 + + +doctype = "" +title = "Ahem checker" +style_open = """ +" +style_font_face = """ +@font-face { + font-family: Ahem; + src: url("../../fonts/Ahem.ttf"); +}""".strip() +style_table_font_specified = """ +table { + font: 15px/1 Ahem; + border-collapse: separate; + border-spacing: 1px; + table-layout: fixed; +}""".strip() +style_table_font_unspecified = """ +table { + font-size: 15px; + line-height: 1; + border-collapse: separate; + border-spacing: 1px; + table-layout: fixed; +}""".strip() + + +def build_header(is_test, rel, href): + rv = [doctype, title] + + if rel != None and href != None: + rv.append('' % (rel, href)) + + rv.append(style_open) + + if not is_test: + if rel == None and href == None: + # ahem-notref.html + rv.append(style_table_font_unspecified) + else: + # ahem-ref.html + rv.append(style_font_face) + rv.append(style_table_font_specified) + else: + # ahem.html + rv.append(style_table_font_specified) + + rv.append(style_close) + + return "\n".join(rv) + + +def build_table(): + rv = ["\n"] + + rv.append("\n") + for row in grouper(per_row, chars_sorted): + rv.append(" " * 4 + "\n") + for codepoint in row: + assert codepoint <= 0xFFFF + try: + name = unicodedata.name(chr(codepoint)) + except ValueError: + rv.append(" " * 8 + "
&#x%04X;x \n" % (codepoint, codepoint)) + else: + rv.append(" " * 8 + "&#x%04X;x \n" % (codepoint, codepoint, name)) + rv.append("
\n") + + return "".join(rv) + + +cases = [ + # file, is_test, rel + ("../ahem.html", True, "match"), + ("../ahem-ref.html", False, "mismatch"), + ("../ahem-notref.html", False, None), +] + +table = build_table() + +for index, case in enumerate(cases): + next_index = index + 1 + file, is_test, rel = case + href = cases[next_index][0][3:] if next_index < len(cases) else None + header = build_header(is_test, rel, href) + + with open(file, "w") as file: + file.write("%s%s" % (header, table)) + diff --git a/testing/web-platform/tests/infrastructure/browsers/firefox/prefs.html b/testing/web-platform/tests/infrastructure/browsers/firefox/prefs.html new file mode 100644 index 0000000000..9656aa051e --- /dev/null +++ b/testing/web-platform/tests/infrastructure/browsers/firefox/prefs.html @@ -0,0 +1,9 @@ +Ensure that setting gecko prefs works + + + +

This should be green

diff --git a/testing/web-platform/tests/infrastructure/channels/child_message.html b/testing/web-platform/tests/infrastructure/channels/child_message.html new file mode 100644 index 0000000000..6baf47b193 --- /dev/null +++ b/testing/web-platform/tests/infrastructure/channels/child_message.html @@ -0,0 +1,13 @@ + + + diff --git a/testing/web-platform/tests/infrastructure/channels/child_script.html b/testing/web-platform/tests/infrastructure/channels/child_script.html new file mode 100644 index 0000000000..1c10379bde --- /dev/null +++ b/testing/web-platform/tests/infrastructure/channels/child_script.html @@ -0,0 +1,10 @@ + + +
FAIL
+ diff --git a/testing/web-platform/tests/infrastructure/channels/serialize-data.js b/testing/web-platform/tests/infrastructure/channels/serialize-data.js new file mode 100644 index 0000000000..5c423ee160 --- /dev/null +++ b/testing/web-platform/tests/infrastructure/channels/serialize-data.js @@ -0,0 +1,37 @@ +let cyclicArray = [1]; +cyclicArray.push(cyclicArray); + +let cyclicObject = {key1: "data"}; +cyclicObject.key2 = cyclicObject; + +let cyclicSet = new Set([1]); +cyclicSet.add(cyclicSet); + +let cyclicMap = new Map([["key1", 1]]); +cyclicMap.set("key2", cyclicMap); + +const objects = { + "null": {input: null}, + "undefined": {input: undefined}, + "int": {input: 1}, + "Infinity": {input: Infinity}, + "-Infinity": {input: -Infinity}, + "NaN": {input: NaN}, + "string": {input: "foo"}, + "true": {input: true}, + "false": {input: false}, + "bigint": {input: 1n}, + "RegExp": {input: /abc/g}, + "Date": {input: new Date('December 17, 1995 03:24:00')}, + "Error": {"input": new Error("message")}, + "TypeError": {"input": new TypeError("TypeError message")}, + "array": {input: [1,"foo"], output: [1, "foo"]}, + "nested array": {input: [1,[2]]}, + "set": {input: new Set([1, "foo", null])}, + "object": {input: {key1: 1, key2: false}}, + "nested object": {input: {key1: 1, key2: false}}, + "map": {input: new Map([[1, 1], ["key2", false]])}, + "cyclic array": {input: cyclicArray}, + "cyclic object": {input: cyclicObject}, + "cyclic map": {input: cyclicMap}, +}; diff --git a/testing/web-platform/tests/infrastructure/channels/serialize_child.html b/testing/web-platform/tests/infrastructure/channels/serialize_child.html new file mode 100644 index 0000000000..6ad3accfee --- /dev/null +++ b/testing/web-platform/tests/infrastructure/channels/serialize_child.html @@ -0,0 +1,173 @@ + + + + diff --git a/testing/web-platform/tests/infrastructure/channels/test_call.html b/testing/web-platform/tests/infrastructure/channels/test_call.html new file mode 100644 index 0000000000..49beaea4ff --- /dev/null +++ b/testing/web-platform/tests/infrastructure/channels/test_call.html @@ -0,0 +1,22 @@ + + +call method + + + + + diff --git a/testing/web-platform/tests/infrastructure/channels/test_postMessage.html b/testing/web-platform/tests/infrastructure/channels/test_postMessage.html new file mode 100644 index 0000000000..473c8630a6 --- /dev/null +++ b/testing/web-platform/tests/infrastructure/channels/test_postMessage.html @@ -0,0 +1,23 @@ + + +postMessage method + + + + + diff --git a/testing/web-platform/tests/infrastructure/channels/test_serialize.html b/testing/web-platform/tests/infrastructure/channels/test_serialize.html new file mode 100644 index 0000000000..88a9ce5221 --- /dev/null +++ b/testing/web-platform/tests/infrastructure/channels/test_serialize.html @@ -0,0 +1,38 @@ + + +object serialization + + + + + + diff --git a/testing/web-platform/tests/infrastructure/crashtests/example.html b/testing/web-platform/tests/infrastructure/crashtests/example.html new file mode 100644 index 0000000000..e0fa7b3c88 --- /dev/null +++ b/testing/web-platform/tests/infrastructure/crashtests/example.html @@ -0,0 +1 @@ +

Test that should not crash diff --git a/testing/web-platform/tests/infrastructure/expected-fail/failing-test.html b/testing/web-platform/tests/infrastructure/expected-fail/failing-test.html new file mode 100644 index 0000000000..249099c06f --- /dev/null +++ b/testing/web-platform/tests/infrastructure/expected-fail/failing-test.html @@ -0,0 +1,10 @@ + + +Failing test + + + diff --git a/testing/web-platform/tests/infrastructure/expected-fail/timeout.html b/testing/web-platform/tests/infrastructure/expected-fail/timeout.html new file mode 100644 index 0000000000..29ff348a9a --- /dev/null +++ b/testing/web-platform/tests/infrastructure/expected-fail/timeout.html @@ -0,0 +1,8 @@ + + +Test that should time out + + + diff --git a/testing/web-platform/tests/infrastructure/expected-fail/uncaught-exception-following-subtest.html b/testing/web-platform/tests/infrastructure/expected-fail/uncaught-exception-following-subtest.html new file mode 100644 index 0000000000..ed95c60328 --- /dev/null +++ b/testing/web-platform/tests/infrastructure/expected-fail/uncaught-exception-following-subtest.html @@ -0,0 +1,9 @@ + + +Uncaught exception following subtest + + + diff --git a/testing/web-platform/tests/infrastructure/expected-fail/uncaught-exception-single-test.html b/testing/web-platform/tests/infrastructure/expected-fail/uncaught-exception-single-test.html new file mode 100644 index 0000000000..4f88704cad --- /dev/null +++ b/testing/web-platform/tests/infrastructure/expected-fail/uncaught-exception-single-test.html @@ -0,0 +1,9 @@ + + +Uncaught exception in single-page test + + + diff --git a/testing/web-platform/tests/infrastructure/expected-fail/uncaught-exception.html b/testing/web-platform/tests/infrastructure/expected-fail/uncaught-exception.html new file mode 100644 index 0000000000..4442d51375 --- /dev/null +++ b/testing/web-platform/tests/infrastructure/expected-fail/uncaught-exception.html @@ -0,0 +1,8 @@ + + +Uncaught exception + + + diff --git a/testing/web-platform/tests/infrastructure/expected-fail/unhandled-rejection-following-subtest.html b/testing/web-platform/tests/infrastructure/expected-fail/unhandled-rejection-following-subtest.html new file mode 100644 index 0000000000..2cc19d9624 --- /dev/null +++ b/testing/web-platform/tests/infrastructure/expected-fail/unhandled-rejection-following-subtest.html @@ -0,0 +1,9 @@ + + +Unhandled rejection following subtest + + + diff --git a/testing/web-platform/tests/infrastructure/expected-fail/unhandled-rejection-single-test.html b/testing/web-platform/tests/infrastructure/expected-fail/unhandled-rejection-single-test.html new file mode 100644 index 0000000000..925787191c --- /dev/null +++ b/testing/web-platform/tests/infrastructure/expected-fail/unhandled-rejection-single-test.html @@ -0,0 +1,9 @@ + + +Unhandled rejection in single-page test + + + diff --git a/testing/web-platform/tests/infrastructure/expected-fail/unhandled-rejection.html b/testing/web-platform/tests/infrastructure/expected-fail/unhandled-rejection.html new file mode 100644 index 0000000000..f25f6e088f --- /dev/null +++ b/testing/web-platform/tests/infrastructure/expected-fail/unhandled-rejection.html @@ -0,0 +1,8 @@ + + +Unhandled rejection + + + diff --git a/testing/web-platform/tests/infrastructure/metadata/infrastructure/assumptions/ahem.html.ini b/testing/web-platform/tests/infrastructure/metadata/infrastructure/assumptions/ahem.html.ini new file mode 100644 index 0000000000..8587775d8f --- /dev/null +++ b/testing/web-platform/tests/infrastructure/metadata/infrastructure/assumptions/ahem.html.ini @@ -0,0 +1,3 @@ +[ahem.html] + expected: + if product == "safari": FAIL # system fonts not loaded since macOS Mojave diff --git a/testing/web-platform/tests/infrastructure/metadata/infrastructure/assumptions/allowed-to-play.html.ini b/testing/web-platform/tests/infrastructure/metadata/infrastructure/assumptions/allowed-to-play.html.ini new file mode 100644 index 0000000000..6891cbe24e --- /dev/null +++ b/testing/web-platform/tests/infrastructure/metadata/infrastructure/assumptions/allowed-to-play.html.ini @@ -0,0 +1,9 @@ +[allowed-to-play.html] + disabled: + if product == "firefox": https://bugzilla.mozilla.org/show_bug.cgi?id=1607802 + expected: + if product == "safari": ERROR # https://bugs.webkit.org/show_bug.cgi?id=190775 + + [

+
The box above should be green.
diff --git a/testing/web-platform/tests/infrastructure/reftest-wait.html b/testing/web-platform/tests/infrastructure/reftest-wait.html new file mode 100644 index 0000000000..c2e9986ad8 --- /dev/null +++ b/testing/web-platform/tests/infrastructure/reftest-wait.html @@ -0,0 +1,21 @@ + + +Test infrastructure should support 'reftest-wait' + + + +
+
The box above should be green.
+ diff --git a/testing/web-platform/tests/infrastructure/reftest/fuzzy-ref-1.html b/testing/web-platform/tests/infrastructure/reftest/fuzzy-ref-1.html new file mode 100644 index 0000000000..e50fc11ef6 --- /dev/null +++ b/testing/web-platform/tests/infrastructure/reftest/fuzzy-ref-1.html @@ -0,0 +1,9 @@ + + +
diff --git a/testing/web-platform/tests/infrastructure/reftest/green-ref.html b/testing/web-platform/tests/infrastructure/reftest/green-ref.html new file mode 100644 index 0000000000..0e145d60b5 --- /dev/null +++ b/testing/web-platform/tests/infrastructure/reftest/green-ref.html @@ -0,0 +1,4 @@ + + \ No newline at end of file diff --git a/testing/web-platform/tests/infrastructure/reftest/green.html b/testing/web-platform/tests/infrastructure/reftest/green.html new file mode 100644 index 0000000000..38167bb58d --- /dev/null +++ b/testing/web-platform/tests/infrastructure/reftest/green.html @@ -0,0 +1,3 @@ + \ No newline at end of file diff --git a/testing/web-platform/tests/infrastructure/reftest/legacy/README.md b/testing/web-platform/tests/infrastructure/reftest/legacy/README.md new file mode 100644 index 0000000000..01bb6f773e --- /dev/null +++ b/testing/web-platform/tests/infrastructure/reftest/legacy/README.md @@ -0,0 +1,5 @@ +This directory contains the old reftest chaining tests, based on how they worked prior to +[RFC #15](https://github.com/web-platform-tests/rfcs/blob/master/rfcs/reftest_simplification.md). + +The expectations for these match the current logic; these are included here so we have +tests that fail if any external runner is implementing this logic. diff --git a/testing/web-platform/tests/infrastructure/reftest/legacy/fuzzy-ref-2.html b/testing/web-platform/tests/infrastructure/reftest/legacy/fuzzy-ref-2.html new file mode 100644 index 0000000000..cdaf6446ed --- /dev/null +++ b/testing/web-platform/tests/infrastructure/reftest/legacy/fuzzy-ref-2.html @@ -0,0 +1,11 @@ + + + + +
diff --git a/testing/web-platform/tests/infrastructure/reftest/legacy/fuzzy-ref-2a.html b/testing/web-platform/tests/infrastructure/reftest/legacy/fuzzy-ref-2a.html new file mode 100644 index 0000000000..99da3203af --- /dev/null +++ b/testing/web-platform/tests/infrastructure/reftest/legacy/fuzzy-ref-2a.html @@ -0,0 +1,9 @@ + + +
diff --git a/testing/web-platform/tests/infrastructure/reftest/legacy/reftest_and_fail.html b/testing/web-platform/tests/infrastructure/reftest/legacy/reftest_and_fail.html new file mode 100644 index 0000000000..2960195356 --- /dev/null +++ b/testing/web-platform/tests/infrastructure/reftest/legacy/reftest_and_fail.html @@ -0,0 +1,5 @@ +Reftest chain that should fail + + \ No newline at end of file diff --git a/testing/web-platform/tests/infrastructure/reftest/legacy/reftest_and_fail_0-ref.html b/testing/web-platform/tests/infrastructure/reftest/legacy/reftest_and_fail_0-ref.html new file mode 100644 index 0000000000..565f663ed5 --- /dev/null +++ b/testing/web-platform/tests/infrastructure/reftest/legacy/reftest_and_fail_0-ref.html @@ -0,0 +1,5 @@ +Reftest chain that should fail + + diff --git a/testing/web-platform/tests/infrastructure/reftest/legacy/reftest_and_mismatch.html b/testing/web-platform/tests/infrastructure/reftest/legacy/reftest_and_mismatch.html new file mode 100644 index 0000000000..b6b4847473 --- /dev/null +++ b/testing/web-platform/tests/infrastructure/reftest/legacy/reftest_and_mismatch.html @@ -0,0 +1,5 @@ +Reftest chain with mismatch and mismatch + + diff --git a/testing/web-platform/tests/infrastructure/reftest/legacy/reftest_and_mismatch_0.html b/testing/web-platform/tests/infrastructure/reftest/legacy/reftest_and_mismatch_0.html new file mode 100644 index 0000000000..f84ce6a13a --- /dev/null +++ b/testing/web-platform/tests/infrastructure/reftest/legacy/reftest_and_mismatch_0.html @@ -0,0 +1,5 @@ +Reftest chain with mismatch and mismatch + + diff --git a/testing/web-platform/tests/infrastructure/reftest/legacy/reftest_and_mismatch_1.html b/testing/web-platform/tests/infrastructure/reftest/legacy/reftest_and_mismatch_1.html new file mode 100644 index 0000000000..05e905adaf --- /dev/null +++ b/testing/web-platform/tests/infrastructure/reftest/legacy/reftest_and_mismatch_1.html @@ -0,0 +1,4 @@ +Reftest chain with match and mismatch + diff --git a/testing/web-platform/tests/infrastructure/reftest/legacy/reftest_cycle.html b/testing/web-platform/tests/infrastructure/reftest/legacy/reftest_cycle.html new file mode 100644 index 0000000000..4a84a3b674 --- /dev/null +++ b/testing/web-platform/tests/infrastructure/reftest/legacy/reftest_cycle.html @@ -0,0 +1,5 @@ +Reftest with cycle, all match + + \ No newline at end of file diff --git a/testing/web-platform/tests/infrastructure/reftest/legacy/reftest_cycle_0-ref.html b/testing/web-platform/tests/infrastructure/reftest/legacy/reftest_cycle_0-ref.html new file mode 100644 index 0000000000..118bfd8844 --- /dev/null +++ b/testing/web-platform/tests/infrastructure/reftest/legacy/reftest_cycle_0-ref.html @@ -0,0 +1,5 @@ +OR match that should pass + + \ No newline at end of file diff --git a/testing/web-platform/tests/infrastructure/reftest/legacy/reftest_cycle_1-ref.html b/testing/web-platform/tests/infrastructure/reftest/legacy/reftest_cycle_1-ref.html new file mode 100644 index 0000000000..59be0b641d --- /dev/null +++ b/testing/web-platform/tests/infrastructure/reftest/legacy/reftest_cycle_1-ref.html @@ -0,0 +1,5 @@ +Reftest with cycle, all match + + \ No newline at end of file diff --git a/testing/web-platform/tests/infrastructure/reftest/legacy/reftest_cycle_fail.html b/testing/web-platform/tests/infrastructure/reftest/legacy/reftest_cycle_fail.html new file mode 100644 index 0000000000..175e76c4cc --- /dev/null +++ b/testing/web-platform/tests/infrastructure/reftest/legacy/reftest_cycle_fail.html @@ -0,0 +1,5 @@ +Reftest with cycle, fails + + \ No newline at end of file diff --git a/testing/web-platform/tests/infrastructure/reftest/legacy/reftest_cycle_fail_0-ref.html b/testing/web-platform/tests/infrastructure/reftest/legacy/reftest_cycle_fail_0-ref.html new file mode 100644 index 0000000000..c8e548c462 --- /dev/null +++ b/testing/web-platform/tests/infrastructure/reftest/legacy/reftest_cycle_fail_0-ref.html @@ -0,0 +1,5 @@ +Reftest with cycle, fails + + \ No newline at end of file diff --git a/testing/web-platform/tests/infrastructure/reftest/legacy/reftest_fuzzy_chain_ini.html b/testing/web-platform/tests/infrastructure/reftest/legacy/reftest_fuzzy_chain_ini.html new file mode 100644 index 0000000000..4353379ddb --- /dev/null +++ b/testing/web-platform/tests/infrastructure/reftest/legacy/reftest_fuzzy_chain_ini.html @@ -0,0 +1,11 @@ + + + + +
diff --git a/testing/web-platform/tests/infrastructure/reftest/red.html b/testing/web-platform/tests/infrastructure/reftest/red.html new file mode 100644 index 0000000000..2b677e0063 --- /dev/null +++ b/testing/web-platform/tests/infrastructure/reftest/red.html @@ -0,0 +1,3 @@ + \ No newline at end of file diff --git a/testing/web-platform/tests/infrastructure/reftest/reftest.https.html b/testing/web-platform/tests/infrastructure/reftest/reftest.https.html new file mode 100644 index 0000000000..5a45f10f35 --- /dev/null +++ b/testing/web-platform/tests/infrastructure/reftest/reftest.https.html @@ -0,0 +1,9 @@ + + + \ No newline at end of file diff --git a/testing/web-platform/tests/infrastructure/reftest/reftest.www.sub.html b/testing/web-platform/tests/infrastructure/reftest/reftest.www.sub.html new file mode 100644 index 0000000000..ccffd98f43 --- /dev/null +++ b/testing/web-platform/tests/infrastructure/reftest/reftest.www.sub.html @@ -0,0 +1,10 @@ +Tests that reftests obey the 'www' file-flag + + + diff --git a/testing/web-platform/tests/infrastructure/reftest/reftest_fuzzy_1.html b/testing/web-platform/tests/infrastructure/reftest/reftest_fuzzy_1.html new file mode 100644 index 0000000000..1930fe0ae8 --- /dev/null +++ b/testing/web-platform/tests/infrastructure/reftest/reftest_fuzzy_1.html @@ -0,0 +1,12 @@ + + + + +
+ diff --git a/testing/web-platform/tests/infrastructure/reftest/reftest_fuzzy_ini_full.html b/testing/web-platform/tests/infrastructure/reftest/reftest_fuzzy_ini_full.html new file mode 100644 index 0000000000..7429025798 --- /dev/null +++ b/testing/web-platform/tests/infrastructure/reftest/reftest_fuzzy_ini_full.html @@ -0,0 +1,13 @@ + + + + + +
+ diff --git a/testing/web-platform/tests/infrastructure/reftest/reftest_fuzzy_ini_ref_only.html b/testing/web-platform/tests/infrastructure/reftest/reftest_fuzzy_ini_ref_only.html new file mode 100644 index 0000000000..7429025798 --- /dev/null +++ b/testing/web-platform/tests/infrastructure/reftest/reftest_fuzzy_ini_ref_only.html @@ -0,0 +1,13 @@ + + + + + +
+ diff --git a/testing/web-platform/tests/infrastructure/reftest/reftest_fuzzy_ini_short.html b/testing/web-platform/tests/infrastructure/reftest/reftest_fuzzy_ini_short.html new file mode 100644 index 0000000000..7429025798 --- /dev/null +++ b/testing/web-platform/tests/infrastructure/reftest/reftest_fuzzy_ini_short.html @@ -0,0 +1,13 @@ + + + + + +
+ diff --git a/testing/web-platform/tests/infrastructure/reftest/reftest_fuzzy_no_differences.html b/testing/web-platform/tests/infrastructure/reftest/reftest_fuzzy_no_differences.html new file mode 100644 index 0000000000..95863904aa --- /dev/null +++ b/testing/web-platform/tests/infrastructure/reftest/reftest_fuzzy_no_differences.html @@ -0,0 +1,13 @@ + + + + + +
diff --git a/testing/web-platform/tests/infrastructure/reftest/reftest_fuzzy_no_differences_1.html b/testing/web-platform/tests/infrastructure/reftest/reftest_fuzzy_no_differences_1.html new file mode 100644 index 0000000000..9513f9bda8 --- /dev/null +++ b/testing/web-platform/tests/infrastructure/reftest/reftest_fuzzy_no_differences_1.html @@ -0,0 +1,13 @@ + + + + + +
diff --git a/testing/web-platform/tests/infrastructure/reftest/reftest_match-print-ref.html b/testing/web-platform/tests/infrastructure/reftest/reftest_match-print-ref.html new file mode 100644 index 0000000000..5bc16469c8 --- /dev/null +++ b/testing/web-platform/tests/infrastructure/reftest/reftest_match-print-ref.html @@ -0,0 +1,13 @@ + + + +
+page 1 +
+
+page 2 +
diff --git a/testing/web-platform/tests/infrastructure/reftest/reftest_match-print.html b/testing/web-platform/tests/infrastructure/reftest/reftest_match-print.html new file mode 100644 index 0000000000..1b979db965 --- /dev/null +++ b/testing/web-platform/tests/infrastructure/reftest/reftest_match-print.html @@ -0,0 +1,12 @@ +rel=match that should pass + + +
+page 1 +
+
+page 2 +
diff --git a/testing/web-platform/tests/infrastructure/reftest/reftest_match.html b/testing/web-platform/tests/infrastructure/reftest/reftest_match.html new file mode 100644 index 0000000000..333cc6c1ec --- /dev/null +++ b/testing/web-platform/tests/infrastructure/reftest/reftest_match.html @@ -0,0 +1,5 @@ +rel=match that should pass + + \ No newline at end of file diff --git a/testing/web-platform/tests/infrastructure/reftest/reftest_match_and_mismatch-0.html b/testing/web-platform/tests/infrastructure/reftest/reftest_match_and_mismatch-0.html new file mode 100644 index 0000000000..9f52615a64 --- /dev/null +++ b/testing/web-platform/tests/infrastructure/reftest/reftest_match_and_mismatch-0.html @@ -0,0 +1,6 @@ +AND match/mismatch that should fail + + + diff --git a/testing/web-platform/tests/infrastructure/reftest/reftest_match_and_mismatch-1.html b/testing/web-platform/tests/infrastructure/reftest/reftest_match_and_mismatch-1.html new file mode 100644 index 0000000000..1bba49ea0d --- /dev/null +++ b/testing/web-platform/tests/infrastructure/reftest/reftest_match_and_mismatch-1.html @@ -0,0 +1,6 @@ +AND match/mismatch that should fail + + + diff --git a/testing/web-platform/tests/infrastructure/reftest/reftest_match_and_mismatch-2.html b/testing/web-platform/tests/infrastructure/reftest/reftest_match_and_mismatch-2.html new file mode 100644 index 0000000000..60141aedf8 --- /dev/null +++ b/testing/web-platform/tests/infrastructure/reftest/reftest_match_and_mismatch-2.html @@ -0,0 +1,7 @@ +OR match AND mismatch that should pass + + + + diff --git a/testing/web-platform/tests/infrastructure/reftest/reftest_match_and_mismatch-3.html b/testing/web-platform/tests/infrastructure/reftest/reftest_match_and_mismatch-3.html new file mode 100644 index 0000000000..f707c1b13f --- /dev/null +++ b/testing/web-platform/tests/infrastructure/reftest/reftest_match_and_mismatch-3.html @@ -0,0 +1,7 @@ +OR match AND mismatch that should pass + + + + diff --git a/testing/web-platform/tests/infrastructure/reftest/reftest_match_and_mismatch-4.html b/testing/web-platform/tests/infrastructure/reftest/reftest_match_and_mismatch-4.html new file mode 100644 index 0000000000..ac08cb70b6 --- /dev/null +++ b/testing/web-platform/tests/infrastructure/reftest/reftest_match_and_mismatch-4.html @@ -0,0 +1,7 @@ +OR match AND mismatch that should fail + + + + diff --git a/testing/web-platform/tests/infrastructure/reftest/reftest_match_and_mismatch-5.html b/testing/web-platform/tests/infrastructure/reftest/reftest_match_and_mismatch-5.html new file mode 100644 index 0000000000..b30d84a2dd --- /dev/null +++ b/testing/web-platform/tests/infrastructure/reftest/reftest_match_and_mismatch-5.html @@ -0,0 +1,7 @@ +OR match AND mismatch that should fail + + + + diff --git a/testing/web-platform/tests/infrastructure/reftest/reftest_match_and_mismatch-6.html b/testing/web-platform/tests/infrastructure/reftest/reftest_match_and_mismatch-6.html new file mode 100644 index 0000000000..1a2dcc204a --- /dev/null +++ b/testing/web-platform/tests/infrastructure/reftest/reftest_match_and_mismatch-6.html @@ -0,0 +1,8 @@ +OR match AND mismatch that should fail + + + + + diff --git a/testing/web-platform/tests/infrastructure/reftest/reftest_match_and_mismatch-7.html b/testing/web-platform/tests/infrastructure/reftest/reftest_match_and_mismatch-7.html new file mode 100644 index 0000000000..073e220611 --- /dev/null +++ b/testing/web-platform/tests/infrastructure/reftest/reftest_match_and_mismatch-7.html @@ -0,0 +1,8 @@ +OR match AND mismatch that should fail + + + + + diff --git a/testing/web-platform/tests/infrastructure/reftest/reftest_match_fail-print.html b/testing/web-platform/tests/infrastructure/reftest/reftest_match_fail-print.html new file mode 100644 index 0000000000..92c5fa6a69 --- /dev/null +++ b/testing/web-platform/tests/infrastructure/reftest/reftest_match_fail-print.html @@ -0,0 +1,12 @@ +rel=match that should fail + + +
+page 1 +
+
+Another page +
diff --git a/testing/web-platform/tests/infrastructure/reftest/reftest_match_fail.html b/testing/web-platform/tests/infrastructure/reftest/reftest_match_fail.html new file mode 100644 index 0000000000..a9272ef74d --- /dev/null +++ b/testing/web-platform/tests/infrastructure/reftest/reftest_match_fail.html @@ -0,0 +1,5 @@ +rel=match that should fail + + \ No newline at end of file diff --git a/testing/web-platform/tests/infrastructure/reftest/reftest_mismatch-num-pages-print.html b/testing/web-platform/tests/infrastructure/reftest/reftest_mismatch-num-pages-print.html new file mode 100644 index 0000000000..5efb590653 --- /dev/null +++ b/testing/web-platform/tests/infrastructure/reftest/reftest_mismatch-num-pages-print.html @@ -0,0 +1,3 @@ + + + diff --git a/testing/web-platform/tests/infrastructure/reftest/reftest_mismatch-print.html b/testing/web-platform/tests/infrastructure/reftest/reftest_mismatch-print.html new file mode 100644 index 0000000000..5fd4a7f52a --- /dev/null +++ b/testing/web-platform/tests/infrastructure/reftest/reftest_mismatch-print.html @@ -0,0 +1,13 @@ +rel=mismatch that should PASS + + + +
+page 1 +
+
+page 3 +
diff --git a/testing/web-platform/tests/infrastructure/reftest/reftest_mismatch.html b/testing/web-platform/tests/infrastructure/reftest/reftest_mismatch.html new file mode 100644 index 0000000000..af5fa0750d --- /dev/null +++ b/testing/web-platform/tests/infrastructure/reftest/reftest_mismatch.html @@ -0,0 +1,5 @@ +rel=mismatch that should pass + + \ No newline at end of file diff --git a/testing/web-platform/tests/infrastructure/reftest/reftest_mismatch_fail-print.html b/testing/web-platform/tests/infrastructure/reftest/reftest_mismatch_fail-print.html new file mode 100644 index 0000000000..afec2ef51f --- /dev/null +++ b/testing/web-platform/tests/infrastructure/reftest/reftest_mismatch_fail-print.html @@ -0,0 +1,13 @@ +rel=mismatch that should FAIL + + + +
+page 1 +
+
+page 2 +
diff --git a/testing/web-platform/tests/infrastructure/reftest/reftest_mismatch_fail.html b/testing/web-platform/tests/infrastructure/reftest/reftest_mismatch_fail.html new file mode 100644 index 0000000000..8d160c4fc2 --- /dev/null +++ b/testing/web-platform/tests/infrastructure/reftest/reftest_mismatch_fail.html @@ -0,0 +1,5 @@ +rel=mismatch that should fail + + \ No newline at end of file diff --git a/testing/web-platform/tests/infrastructure/reftest/reftest_mismatch_page_margins-print.html b/testing/web-platform/tests/infrastructure/reftest/reftest_mismatch_page_margins-print.html new file mode 100644 index 0000000000..62c925927e --- /dev/null +++ b/testing/web-platform/tests/infrastructure/reftest/reftest_mismatch_page_margins-print.html @@ -0,0 +1,13 @@ +print-reftest should respect @page margins + + +
+page 1 +
+
+page 2 +
diff --git a/testing/web-platform/tests/infrastructure/reftest/reftest_multiple_match-0.html b/testing/web-platform/tests/infrastructure/reftest/reftest_multiple_match-0.html new file mode 100644 index 0000000000..3a51de2164 --- /dev/null +++ b/testing/web-platform/tests/infrastructure/reftest/reftest_multiple_match-0.html @@ -0,0 +1,6 @@ +OR match that should pass + + + \ No newline at end of file diff --git a/testing/web-platform/tests/infrastructure/reftest/reftest_multiple_match-1.html b/testing/web-platform/tests/infrastructure/reftest/reftest_multiple_match-1.html new file mode 100644 index 0000000000..9a8b769d65 --- /dev/null +++ b/testing/web-platform/tests/infrastructure/reftest/reftest_multiple_match-1.html @@ -0,0 +1,6 @@ +OR match that should pass + + + diff --git a/testing/web-platform/tests/infrastructure/reftest/reftest_multiple_mismatch-0.html b/testing/web-platform/tests/infrastructure/reftest/reftest_multiple_mismatch-0.html new file mode 100644 index 0000000000..b0115a7551 --- /dev/null +++ b/testing/web-platform/tests/infrastructure/reftest/reftest_multiple_mismatch-0.html @@ -0,0 +1,6 @@ +AND mismatch that should fail + + + diff --git a/testing/web-platform/tests/infrastructure/reftest/reftest_multiple_mismatch-1.html b/testing/web-platform/tests/infrastructure/reftest/reftest_multiple_mismatch-1.html new file mode 100644 index 0000000000..65ddd34324 --- /dev/null +++ b/testing/web-platform/tests/infrastructure/reftest/reftest_multiple_mismatch-1.html @@ -0,0 +1,6 @@ +AND mismatch that should fail + + + diff --git a/testing/web-platform/tests/infrastructure/reftest/reftest_ref_timeout-ref.html b/testing/web-platform/tests/infrastructure/reftest/reftest_ref_timeout-ref.html new file mode 100644 index 0000000000..2f52c05979 --- /dev/null +++ b/testing/web-platform/tests/infrastructure/reftest/reftest_ref_timeout-ref.html @@ -0,0 +1,5 @@ + +rel=match that should time out in the ref + diff --git a/testing/web-platform/tests/infrastructure/reftest/reftest_ref_timeout.html b/testing/web-platform/tests/infrastructure/reftest/reftest_ref_timeout.html new file mode 100644 index 0000000000..aaf68f5cb5 --- /dev/null +++ b/testing/web-platform/tests/infrastructure/reftest/reftest_ref_timeout.html @@ -0,0 +1,6 @@ + +rel=match that should time out in the ref + + diff --git a/testing/web-platform/tests/infrastructure/reftest/reftest_timeout.html b/testing/web-platform/tests/infrastructure/reftest/reftest_timeout.html new file mode 100644 index 0000000000..b10e676bf0 --- /dev/null +++ b/testing/web-platform/tests/infrastructure/reftest/reftest_timeout.html @@ -0,0 +1,6 @@ + +rel=match that should timeout + + diff --git a/testing/web-platform/tests/infrastructure/reftest/reftest_wait_0.html b/testing/web-platform/tests/infrastructure/reftest/reftest_wait_0.html new file mode 100644 index 0000000000..fec62a3cae --- /dev/null +++ b/testing/web-platform/tests/infrastructure/reftest/reftest_wait_0.html @@ -0,0 +1,13 @@ + +Test with reftest-wait + + + + diff --git a/testing/web-platform/tests/infrastructure/reftest/reftest_wait_TestRendered.html b/testing/web-platform/tests/infrastructure/reftest/reftest_wait_TestRendered.html new file mode 100644 index 0000000000..4316d338b5 --- /dev/null +++ b/testing/web-platform/tests/infrastructure/reftest/reftest_wait_TestRendered.html @@ -0,0 +1,14 @@ + +Test with reftest-wait + + + + diff --git a/testing/web-platform/tests/infrastructure/reftest/size-ref.html b/testing/web-platform/tests/infrastructure/reftest/size-ref.html new file mode 100644 index 0000000000..bb792a3feb --- /dev/null +++ b/testing/web-platform/tests/infrastructure/reftest/size-ref.html @@ -0,0 +1,2 @@ + +

innerWidth x innerHeight: 800x600

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

innerWidth x innerHeight:

+ diff --git a/testing/web-platform/tests/infrastructure/resources/ok.txt b/testing/web-platform/tests/infrastructure/resources/ok.txt new file mode 100644 index 0000000000..a0aba9318a --- /dev/null +++ b/testing/web-platform/tests/infrastructure/resources/ok.txt @@ -0,0 +1 @@ +OK \ No newline at end of file diff --git a/testing/web-platform/tests/infrastructure/resources/ok.txt.headers b/testing/web-platform/tests/infrastructure/resources/ok.txt.headers new file mode 100644 index 0000000000..23de552c1a --- /dev/null +++ b/testing/web-platform/tests/infrastructure/resources/ok.txt.headers @@ -0,0 +1 @@ +Access-Control-Allow-Origin: * \ No newline at end of file diff --git a/testing/web-platform/tests/infrastructure/server/context.any.js b/testing/web-platform/tests/infrastructure/server/context.any.js new file mode 100644 index 0000000000..11ab76d874 --- /dev/null +++ b/testing/web-platform/tests/infrastructure/server/context.any.js @@ -0,0 +1,13 @@ +// META: global=window,dedicatedworker,sharedworker,serviceworker,dedicatedworker-module,sharedworker-module,serviceworker-module +test(t => { + // Test for object that's only exposed in serviceworker + if (self.clients) { + assert_true(self.isSecureContext); + assert_equals(location.protocol, "https:"); + } else { + assert_false(self.isSecureContext); + assert_equals(location.protocol, "http:"); + } +}); + +done(); diff --git a/testing/web-platform/tests/infrastructure/server/http2-context.sub.h2.any.js b/testing/web-platform/tests/infrastructure/server/http2-context.sub.h2.any.js new file mode 100644 index 0000000000..26f7007418 --- /dev/null +++ b/testing/web-platform/tests/infrastructure/server/http2-context.sub.h2.any.js @@ -0,0 +1,12 @@ +// META: global=window,dedicatedworker,sharedworker,serviceworker +test(() => { + assert_true(self.isSecureContext); +}, "Use of .h2. file name flag implies secure context"); + +test(() => { + assert_equals(location.protocol, "https:"); +}, "Use of .h2. file name flag implies HTTPS scheme"); + +test(() => { + assert_equals(location.port, "{{ports[h2][0]}}"); +}, "Use of .h2. file name flag implies correct port"); diff --git a/testing/web-platform/tests/infrastructure/server/http2-websocket.sub.h2.any.js b/testing/web-platform/tests/infrastructure/server/http2-websocket.sub.h2.any.js new file mode 100644 index 0000000000..617f9ca4e0 --- /dev/null +++ b/testing/web-platform/tests/infrastructure/server/http2-websocket.sub.h2.any.js @@ -0,0 +1,20 @@ +function check(protocol, domain, port, done) { + var url = protocol + '://' + domain + ':' + port + '/echo'; + var ws = new WebSocket(url); + + ws.addEventListener('error', function() { + done(false); + }); + + ws.addEventListener('open', function() { + done(true); + }); +} + +async_test(function(t) { + check('wss', '{{browser_host}}', {{ports[h2][0]}}, t.step_func(function(result) { + assert_true(result); + + t.done(); + })); +}, 'WSS over h2'); diff --git a/testing/web-platform/tests/infrastructure/server/order-of-metas.any.js b/testing/web-platform/tests/infrastructure/server/order-of-metas.any.js new file mode 100644 index 0000000000..20f678475c --- /dev/null +++ b/testing/web-platform/tests/infrastructure/server/order-of-metas.any.js @@ -0,0 +1,10 @@ +// META: global=window,dedicatedworker,sharedworker +// META: script=resources/expect-seen-testharness.js +// META: timeout=long +// META: title=foo +// META: script=resources/expect-global.js +// META: script=resources/expect-title-meta.js + +test(() => { + assert_array_equals(scripts, ['expect-seen-testharness.js', 'expect-global.js', 'expect-title-meta.js']); +}, "order of scripts"); diff --git a/testing/web-platform/tests/infrastructure/server/order-of-metas.window.js b/testing/web-platform/tests/infrastructure/server/order-of-metas.window.js new file mode 100644 index 0000000000..ec2848056a --- /dev/null +++ b/testing/web-platform/tests/infrastructure/server/order-of-metas.window.js @@ -0,0 +1,8 @@ +// META: script=resources/expect-seen-testharness.js +// META: timeout=long +// META: title=foo +// META: script=resources/expect-title-meta.js + +test(() => { + assert_array_equals(scripts, ['expect-seen-testharness.js', 'expect-title-meta.js']); +}, "order of scripts"); diff --git a/testing/web-platform/tests/infrastructure/server/resources/expect-global.js b/testing/web-platform/tests/infrastructure/server/resources/expect-global.js new file mode 100644 index 0000000000..63d4944e61 --- /dev/null +++ b/testing/web-platform/tests/infrastructure/server/resources/expect-global.js @@ -0,0 +1,5 @@ +test(() => { + assert_true('GLOBAL' in self); +}, 'GLOBAL exists'); + +scripts.push('expect-global.js'); diff --git a/testing/web-platform/tests/infrastructure/server/resources/expect-seen-testharness.js b/testing/web-platform/tests/infrastructure/server/resources/expect-seen-testharness.js new file mode 100644 index 0000000000..29af1fca55 --- /dev/null +++ b/testing/web-platform/tests/infrastructure/server/resources/expect-seen-testharness.js @@ -0,0 +1,5 @@ +test(() => { + assert_true('add_completion_callback' in self); +}, 'add_completion_callback exists'); + +var scripts = ['expect-seen-testharness.js']; diff --git a/testing/web-platform/tests/infrastructure/server/resources/expect-title-meta.js b/testing/web-platform/tests/infrastructure/server/resources/expect-title-meta.js new file mode 100644 index 0000000000..d17588a18f --- /dev/null +++ b/testing/web-platform/tests/infrastructure/server/resources/expect-title-meta.js @@ -0,0 +1,11 @@ +if (!self.GLOBAL || self.GLOBAL.isWindow()) { + test(() => { + assert_equals(document.title, "foo"); + }, ' exists'); + + test(() => { + assert_equals(document.querySelectorAll("meta[name=timeout][content=long]").length, 1); + }, '<meta name=timeout> exists'); +} + +scripts.push('expect-title-meta.js'); diff --git a/testing/web-platform/tests/infrastructure/server/resources/proxy.sub.pac b/testing/web-platform/tests/infrastructure/server/resources/proxy.sub.pac new file mode 100644 index 0000000000..78ce023448 --- /dev/null +++ b/testing/web-platform/tests/infrastructure/server/resources/proxy.sub.pac @@ -0,0 +1,7 @@ +function FindProxyForURL(url, host) { + if (dnsDomainIs(host, '.wpt.test')) { + return "PROXY 127.0.0.1:{{ports[http][0]}}" + } + + return "DIRECT"; +} diff --git a/testing/web-platform/tests/infrastructure/server/secure-context.https.any.js b/testing/web-platform/tests/infrastructure/server/secure-context.https.any.js new file mode 100644 index 0000000000..626fa70069 --- /dev/null +++ b/testing/web-platform/tests/infrastructure/server/secure-context.https.any.js @@ -0,0 +1,10 @@ +// META: global=window,dedicatedworker,sharedworker,serviceworker +test(() => { + assert_true(self.isSecureContext); +}, "Use of .https file name flag implies secure context"); + +test(() => { + assert_equals(location.protocol, "https:"); +}, "Use of .https file name flag implies HTTPS scheme"); + +done(); diff --git a/testing/web-platform/tests/infrastructure/server/subdomain-flag.www.sub.window.js b/testing/web-platform/tests/infrastructure/server/subdomain-flag.www.sub.window.js new file mode 100644 index 0000000000..9b4140340a --- /dev/null +++ b/testing/web-platform/tests/infrastructure/server/subdomain-flag.www.sub.window.js @@ -0,0 +1,5 @@ +test(() => { + assert_equals(location.hostname, "{{domains[www]}}"); +}, "Use of .www. file name flag implies www subdomain"); + +done(); diff --git a/testing/web-platform/tests/infrastructure/server/test-pac.html b/testing/web-platform/tests/infrastructure/server/test-pac.html new file mode 100644 index 0000000000..598836d376 --- /dev/null +++ b/testing/web-platform/tests/infrastructure/server/test-pac.html @@ -0,0 +1,12 @@ +<!DOCTYPE HTML> +<title>test behavior of PROXY configuration (PAC) + + + + diff --git a/testing/web-platform/tests/infrastructure/server/title.any.js b/testing/web-platform/tests/infrastructure/server/title.any.js new file mode 100644 index 0000000000..df2f8b048c --- /dev/null +++ b/testing/web-platform/tests/infrastructure/server/title.any.js @@ -0,0 +1,13 @@ +// META: global=window,dedicatedworker,sharedworker +// META: title=foobar +test(t => { + if (GLOBAL.isWindow()) { + assert_equals(document.title, 'foobar'); + assert_false('META_TITLE' in self); + } else { + assert_equals(META_TITLE, 'foobar'); + } + assert_equals(t.name, 'foobar'); +}); + +done(); diff --git a/testing/web-platform/tests/infrastructure/server/webtransport-h3.https.sub.any.js b/testing/web-platform/tests/infrastructure/server/webtransport-h3.https.sub.any.js new file mode 100644 index 0000000000..1a0c10031d --- /dev/null +++ b/testing/web-platform/tests/infrastructure/server/webtransport-h3.https.sub.any.js @@ -0,0 +1,26 @@ +// META: global=window,worker +// META: script=/common/get-host-info.sub.js + +const HOST = get_host_info().ORIGINAL_HOST; +const PORT = '{{ports[webtransport-h3][0]}}'; +const BASE = `https://${HOST}:${PORT}`; + +promise_test(async t => { + const wt = new WebTransport(`${BASE}/webtransport/handlers/echo.py`); + // When a connection fails `closed` attribute will be rejected. + wt.closed.catch((error) => { + t.unreached_func(`The 'closed' attribute should not be rejected: ${error}`); + }); + await wt.ready; + + const stream = await wt.createBidirectionalStream(); + + const writer = stream.writable.getWriter(); + await writer.write(new Uint8Array([42])); + writer.releaseLock(); + + const reader = stream.readable.getReader(); + const { value } = await reader.read(); + + assert_equals(value[0], 42); +}, "WebTransport server should be running and should handle a bidirectional stream"); diff --git a/testing/web-platform/tests/infrastructure/server/wpt-server-http.sub.html b/testing/web-platform/tests/infrastructure/server/wpt-server-http.sub.html new file mode 100644 index 0000000000..8d71e7e3a2 --- /dev/null +++ b/testing/web-platform/tests/infrastructure/server/wpt-server-http.sub.html @@ -0,0 +1,262 @@ + + + + WPT Server checker + + + + + + + + + diff --git a/testing/web-platform/tests/infrastructure/server/wpt-server-websocket.sub.html b/testing/web-platform/tests/infrastructure/server/wpt-server-websocket.sub.html new file mode 100644 index 0000000000..ea7973a62e --- /dev/null +++ b/testing/web-platform/tests/infrastructure/server/wpt-server-websocket.sub.html @@ -0,0 +1,122 @@ + + + + WPT Server checker + + + + + + + + + diff --git a/testing/web-platform/tests/infrastructure/server/wpt-server-wpt-flags.sub.html b/testing/web-platform/tests/infrastructure/server/wpt-server-wpt-flags.sub.html new file mode 100644 index 0000000000..9af9cda463 --- /dev/null +++ b/testing/web-platform/tests/infrastructure/server/wpt-server-wpt-flags.sub.html @@ -0,0 +1,32 @@ + + + + WPT Server checker + + + + + + + + + + + + diff --git a/testing/web-platform/tests/infrastructure/testdriver/actions/actionsWithKeyPressed.html b/testing/web-platform/tests/infrastructure/testdriver/actions/actionsWithKeyPressed.html new file mode 100644 index 0000000000..3e0795b14a --- /dev/null +++ b/testing/web-platform/tests/infrastructure/testdriver/actions/actionsWithKeyPressed.html @@ -0,0 +1,66 @@ + + +TestDriver actions: actions with key pressed + + + + + + + + +
+
+ +
+
+ + diff --git a/testing/web-platform/tests/infrastructure/testdriver/actions/crossOrigin.sub.html b/testing/web-platform/tests/infrastructure/testdriver/actions/crossOrigin.sub.html new file mode 100644 index 0000000000..38b3610af6 --- /dev/null +++ b/testing/web-platform/tests/infrastructure/testdriver/actions/crossOrigin.sub.html @@ -0,0 +1,20 @@ + + +Actions in cross-origin iframe + + + + + + + + diff --git a/testing/web-platform/tests/infrastructure/testdriver/actions/crossOriginChild.html b/testing/web-platform/tests/infrastructure/testdriver/actions/crossOriginChild.html new file mode 100644 index 0000000000..48e37e233e --- /dev/null +++ b/testing/web-platform/tests/infrastructure/testdriver/actions/crossOriginChild.html @@ -0,0 +1,32 @@ + + + + + + + diff --git a/testing/web-platform/tests/infrastructure/testdriver/actions/elementPosition.html b/testing/web-platform/tests/infrastructure/testdriver/actions/elementPosition.html new file mode 100644 index 0000000000..145852e7b5 --- /dev/null +++ b/testing/web-platform/tests/infrastructure/testdriver/actions/elementPosition.html @@ -0,0 +1,43 @@ + + +TestDriver actions: element position + + + + + + + + +
+
+ + diff --git a/testing/web-platform/tests/infrastructure/testdriver/actions/elementTiming.html b/testing/web-platform/tests/infrastructure/testdriver/actions/elementTiming.html new file mode 100644 index 0000000000..33731e9299 --- /dev/null +++ b/testing/web-platform/tests/infrastructure/testdriver/actions/elementTiming.html @@ -0,0 +1,69 @@ + + +TestDriver actions: element timing + + + + + + + + +
+
+ +
+
+ + diff --git a/testing/web-platform/tests/infrastructure/testdriver/actions/eventOrder.html b/testing/web-platform/tests/infrastructure/testdriver/actions/eventOrder.html new file mode 100644 index 0000000000..1fed285a27 --- /dev/null +++ b/testing/web-platform/tests/infrastructure/testdriver/actions/eventOrder.html @@ -0,0 +1,61 @@ + + +TestDriver actions: event order + + + + + + + + + + + diff --git a/testing/web-platform/tests/infrastructure/testdriver/actions/iframe.html b/testing/web-platform/tests/infrastructure/testdriver/actions/iframe.html new file mode 100644 index 0000000000..6c64d6f49a --- /dev/null +++ b/testing/web-platform/tests/infrastructure/testdriver/actions/iframe.html @@ -0,0 +1,35 @@ + + +TestDriver actions on a document in an iframe + + + + + + + + + diff --git a/testing/web-platform/tests/infrastructure/testdriver/actions/iframeChild.html b/testing/web-platform/tests/infrastructure/testdriver/actions/iframeChild.html new file mode 100644 index 0000000000..a46c54a7b7 --- /dev/null +++ b/testing/web-platform/tests/infrastructure/testdriver/actions/iframeChild.html @@ -0,0 +1,2 @@ + + diff --git a/testing/web-platform/tests/infrastructure/testdriver/actions/mouseClickCount.html b/testing/web-platform/tests/infrastructure/testdriver/actions/mouseClickCount.html new file mode 100644 index 0000000000..4f02088c5a --- /dev/null +++ b/testing/web-platform/tests/infrastructure/testdriver/actions/mouseClickCount.html @@ -0,0 +1,54 @@ + + +TestDriver actions: test the mouse click counts at different cases + + + + + + + + +
+
+ + diff --git a/testing/web-platform/tests/infrastructure/testdriver/actions/multiDevice.html b/testing/web-platform/tests/infrastructure/testdriver/actions/multiDevice.html new file mode 100644 index 0000000000..6bc0fa218d --- /dev/null +++ b/testing/web-platform/tests/infrastructure/testdriver/actions/multiDevice.html @@ -0,0 +1,36 @@ + + +TestDriver actions: multiple devices + + + + + + + + + diff --git a/testing/web-platform/tests/infrastructure/testdriver/actions/multiTouchPoints.html b/testing/web-platform/tests/infrastructure/testdriver/actions/multiTouchPoints.html new file mode 100644 index 0000000000..64aa429631 --- /dev/null +++ b/testing/web-platform/tests/infrastructure/testdriver/actions/multiTouchPoints.html @@ -0,0 +1,68 @@ + + +TestDriver actions: two touch points with one moving one pause + + + + + + + + + +
+
+ + diff --git a/testing/web-platform/tests/infrastructure/testdriver/actions/multiTouchPointsReleaseFirstPoint.html b/testing/web-platform/tests/infrastructure/testdriver/actions/multiTouchPointsReleaseFirstPoint.html new file mode 100644 index 0000000000..41027beb67 --- /dev/null +++ b/testing/web-platform/tests/infrastructure/testdriver/actions/multiTouchPointsReleaseFirstPoint.html @@ -0,0 +1,56 @@ + + +TestDriver actions: two touch points with one moving one pause + + + + + + + + + +
+
+ + diff --git a/testing/web-platform/tests/infrastructure/testdriver/actions/multiTouchPointsReleaseSecondPoint.html b/testing/web-platform/tests/infrastructure/testdriver/actions/multiTouchPointsReleaseSecondPoint.html new file mode 100644 index 0000000000..58a2263f5b --- /dev/null +++ b/testing/web-platform/tests/infrastructure/testdriver/actions/multiTouchPointsReleaseSecondPoint.html @@ -0,0 +1,69 @@ + + +TestDriver actions: two touch points with one moving one pause + + + + + + + + + +
+
+ + diff --git a/testing/web-platform/tests/infrastructure/testdriver/actions/multiTouchPointsSimultaneousMove.html b/testing/web-platform/tests/infrastructure/testdriver/actions/multiTouchPointsSimultaneousMove.html new file mode 100644 index 0000000000..5be5b44896 --- /dev/null +++ b/testing/web-platform/tests/infrastructure/testdriver/actions/multiTouchPointsSimultaneousMove.html @@ -0,0 +1,58 @@ + + +TestDriver actions: two touch points with both moving + + + + + + + + + +
+
+ + diff --git a/testing/web-platform/tests/infrastructure/testdriver/actions/multiTouchPointsTwoTouchStarts.html b/testing/web-platform/tests/infrastructure/testdriver/actions/multiTouchPointsTwoTouchStarts.html new file mode 100644 index 0000000000..06f48ebc38 --- /dev/null +++ b/testing/web-platform/tests/infrastructure/testdriver/actions/multiTouchPointsTwoTouchStarts.html @@ -0,0 +1,58 @@ + + +TestDriver actions: two touch points with one moving one pause + + + + + + + + +
+
+ + diff --git a/testing/web-platform/tests/infrastructure/testdriver/actions/multiTouchPointsWithPause.html b/testing/web-platform/tests/infrastructure/testdriver/actions/multiTouchPointsWithPause.html new file mode 100644 index 0000000000..6b89d74c65 --- /dev/null +++ b/testing/web-platform/tests/infrastructure/testdriver/actions/multiTouchPointsWithPause.html @@ -0,0 +1,67 @@ + + +TestDriver actions: two touch points with one moving one pause + + + + + + + + + +
+
+ + diff --git a/testing/web-platform/tests/infrastructure/testdriver/actions/pause.html b/testing/web-platform/tests/infrastructure/testdriver/actions/pause.html new file mode 100644 index 0000000000..ec33c51102 --- /dev/null +++ b/testing/web-platform/tests/infrastructure/testdriver/actions/pause.html @@ -0,0 +1,19 @@ + + + +TestDriver actions: pause + + + + + + + diff --git a/testing/web-platform/tests/infrastructure/testdriver/actions/penPointerEventProperties.html b/testing/web-platform/tests/infrastructure/testdriver/actions/penPointerEventProperties.html new file mode 100644 index 0000000000..ba6c15f022 --- /dev/null +++ b/testing/web-platform/tests/infrastructure/testdriver/actions/penPointerEventProperties.html @@ -0,0 +1,71 @@ + + +TestDriver actions: pointerevent properties of pen type + + + + + + + + +
+
+ + diff --git a/testing/web-platform/tests/infrastructure/testdriver/actions/penPointerEvents.html b/testing/web-platform/tests/infrastructure/testdriver/actions/penPointerEvents.html new file mode 100644 index 0000000000..7141fb5655 --- /dev/null +++ b/testing/web-platform/tests/infrastructure/testdriver/actions/penPointerEvents.html @@ -0,0 +1,159 @@ + + +TestDriver actions: pointerevent properties of pen type + + + + + + + + + +
+
+ + diff --git a/testing/web-platform/tests/infrastructure/testdriver/actions/textEditCommands.html b/testing/web-platform/tests/infrastructure/testdriver/actions/textEditCommands.html new file mode 100644 index 0000000000..0bc533ecb0 --- /dev/null +++ b/testing/web-platform/tests/infrastructure/testdriver/actions/textEditCommands.html @@ -0,0 +1,61 @@ + + +TestDriver actions: text edit commands + + + + + + + + +
+ + +
+ + diff --git a/testing/web-platform/tests/infrastructure/testdriver/actions/touchEvents.js b/testing/web-platform/tests/infrastructure/testdriver/actions/touchEvents.js new file mode 100644 index 0000000000..c1213b6693 --- /dev/null +++ b/testing/web-platform/tests/infrastructure/testdriver/actions/touchEvents.js @@ -0,0 +1,11 @@ +function eventEquals(e, expected) { + for (const prop of Object.keys(expected)) { + assert_equals(e[prop], expected[prop], `Event ${e.type} pointerId ${e.pointerId} property ${prop}`); + } +} + +function addPointerEventListeners(test, target, events) { + for (const event of ["pointerup", "pointerdown", "pointermove"]) { + target.addEventListener(event, test.step_func(e => events.push(e))); + } +} diff --git a/testing/web-platform/tests/infrastructure/testdriver/actions/touchPointerEventProperties.html b/testing/web-platform/tests/infrastructure/testdriver/actions/touchPointerEventProperties.html new file mode 100644 index 0000000000..085889949e --- /dev/null +++ b/testing/web-platform/tests/infrastructure/testdriver/actions/touchPointerEventProperties.html @@ -0,0 +1,71 @@ + + +TestDriver actions: pointerevent properties of touch type + + + + + + + + +
+
+ + diff --git a/testing/web-platform/tests/infrastructure/testdriver/actions/wheelScroll.html b/testing/web-platform/tests/infrastructure/testdriver/actions/wheelScroll.html new file mode 100644 index 0000000000..0447c17ef9 --- /dev/null +++ b/testing/web-platform/tests/infrastructure/testdriver/actions/wheelScroll.html @@ -0,0 +1,44 @@ + + +TestDriver actions: wheel scroll + + + + + + + + +
+
+
+ + diff --git a/testing/web-platform/tests/infrastructure/testdriver/bless.html b/testing/web-platform/tests/infrastructure/testdriver/bless.html new file mode 100644 index 0000000000..12257df01b --- /dev/null +++ b/testing/web-platform/tests/infrastructure/testdriver/bless.html @@ -0,0 +1,114 @@ + + + + TestDriver bless method + + + + + + + + + diff --git a/testing/web-platform/tests/infrastructure/testdriver/click-multiple.html b/testing/web-platform/tests/infrastructure/testdriver/click-multiple.html new file mode 100644 index 0000000000..ed834c5571 --- /dev/null +++ b/testing/web-platform/tests/infrastructure/testdriver/click-multiple.html @@ -0,0 +1,38 @@ + + +TestDriver multiple consecutive clicks + + + + + + + + + + diff --git a/testing/web-platform/tests/infrastructure/testdriver/click.html b/testing/web-platform/tests/infrastructure/testdriver/click.html new file mode 100644 index 0000000000..37721ad9ef --- /dev/null +++ b/testing/web-platform/tests/infrastructure/testdriver/click.html @@ -0,0 +1,19 @@ + + +TestDriver click method + + + + + + + + diff --git a/testing/web-platform/tests/infrastructure/testdriver/click_child.html b/testing/web-platform/tests/infrastructure/testdriver/click_child.html new file mode 100644 index 0000000000..5899841c4c --- /dev/null +++ b/testing/web-platform/tests/infrastructure/testdriver/click_child.html @@ -0,0 +1,7 @@ + + +
FAIL
+ diff --git a/testing/web-platform/tests/infrastructure/testdriver/click_child_crossorigin.html b/testing/web-platform/tests/infrastructure/testdriver/click_child_crossorigin.html new file mode 100644 index 0000000000..6a8c6840a2 --- /dev/null +++ b/testing/web-platform/tests/infrastructure/testdriver/click_child_crossorigin.html @@ -0,0 +1,18 @@ + + + + + +
FAIL
+ diff --git a/testing/web-platform/tests/infrastructure/testdriver/click_child_testdriver.html b/testing/web-platform/tests/infrastructure/testdriver/click_child_testdriver.html new file mode 100644 index 0000000000..2c26a963f4 --- /dev/null +++ b/testing/web-platform/tests/infrastructure/testdriver/click_child_testdriver.html @@ -0,0 +1,18 @@ + + + + + +
FAIL
+ diff --git a/testing/web-platform/tests/infrastructure/testdriver/click_iframe.html b/testing/web-platform/tests/infrastructure/testdriver/click_iframe.html new file mode 100644 index 0000000000..167a91afcf --- /dev/null +++ b/testing/web-platform/tests/infrastructure/testdriver/click_iframe.html @@ -0,0 +1,24 @@ + + +TestDriver click on a document in an iframe + + + + + + + + diff --git a/testing/web-platform/tests/infrastructure/testdriver/click_iframe_crossorigin.sub.html b/testing/web-platform/tests/infrastructure/testdriver/click_iframe_crossorigin.sub.html new file mode 100644 index 0000000000..df2b4477ca --- /dev/null +++ b/testing/web-platform/tests/infrastructure/testdriver/click_iframe_crossorigin.sub.html @@ -0,0 +1,23 @@ + + +TestDriver click on a document in an iframe + + + + + + + + + + diff --git a/testing/web-platform/tests/infrastructure/testdriver/click_nested.html b/testing/web-platform/tests/infrastructure/testdriver/click_nested.html new file mode 100644 index 0000000000..378b9e8c0f --- /dev/null +++ b/testing/web-platform/tests/infrastructure/testdriver/click_nested.html @@ -0,0 +1,31 @@ + + +TestDriver click method with multiple windows and nested iframe + + + + + + + + diff --git a/testing/web-platform/tests/infrastructure/testdriver/click_nested_crossorigin.sub.html b/testing/web-platform/tests/infrastructure/testdriver/click_nested_crossorigin.sub.html new file mode 100644 index 0000000000..af90951df1 --- /dev/null +++ b/testing/web-platform/tests/infrastructure/testdriver/click_nested_crossorigin.sub.html @@ -0,0 +1,25 @@ + + +TestDriver click method with multiple windows and nested iframe + + + + + + + + diff --git a/testing/web-platform/tests/infrastructure/testdriver/click_outer_child.html b/testing/web-platform/tests/infrastructure/testdriver/click_outer_child.html new file mode 100644 index 0000000000..ae4944635f --- /dev/null +++ b/testing/web-platform/tests/infrastructure/testdriver/click_outer_child.html @@ -0,0 +1,4 @@ + + + + diff --git a/testing/web-platform/tests/infrastructure/testdriver/click_outer_child.sub.html b/testing/web-platform/tests/infrastructure/testdriver/click_outer_child.sub.html new file mode 100644 index 0000000000..8e72223f91 --- /dev/null +++ b/testing/web-platform/tests/infrastructure/testdriver/click_outer_child.sub.html @@ -0,0 +1,4 @@ + + + + diff --git a/testing/web-platform/tests/infrastructure/testdriver/click_window.html b/testing/web-platform/tests/infrastructure/testdriver/click_window.html new file mode 100644 index 0000000000..614a92478e --- /dev/null +++ b/testing/web-platform/tests/infrastructure/testdriver/click_window.html @@ -0,0 +1,24 @@ + + +TestDriver click method in window + + + + + + diff --git a/testing/web-platform/tests/infrastructure/testdriver/delete_all_cookies.html b/testing/web-platform/tests/infrastructure/testdriver/delete_all_cookies.html new file mode 100644 index 0000000000..8d7b82ab04 --- /dev/null +++ b/testing/web-platform/tests/infrastructure/testdriver/delete_all_cookies.html @@ -0,0 +1,30 @@ + + +TestDriver delete_all_cookies method + + + + + diff --git a/testing/web-platform/tests/infrastructure/testdriver/file_upload.py b/testing/web-platform/tests/infrastructure/testdriver/file_upload.py new file mode 100644 index 0000000000..9c4dd75438 --- /dev/null +++ b/testing/web-platform/tests/infrastructure/testdriver/file_upload.py @@ -0,0 +1,2 @@ +def main(request, response): + return b"PASS" if request.POST[b"file_input"].file.read() == b"File to upload\n" else b"FAIL" diff --git a/testing/web-platform/tests/infrastructure/testdriver/file_upload.sub.html b/testing/web-platform/tests/infrastructure/testdriver/file_upload.sub.html new file mode 100644 index 0000000000..0490e89c42 --- /dev/null +++ b/testing/web-platform/tests/infrastructure/testdriver/file_upload.sub.html @@ -0,0 +1,26 @@ + + +File upload using testdriver + + + + +
+ +
+ diff --git a/testing/web-platform/tests/infrastructure/testdriver/file_upload_data.txt b/testing/web-platform/tests/infrastructure/testdriver/file_upload_data.txt new file mode 100644 index 0000000000..097d2a3a3f --- /dev/null +++ b/testing/web-platform/tests/infrastructure/testdriver/file_upload_data.txt @@ -0,0 +1 @@ +File to upload diff --git a/testing/web-platform/tests/infrastructure/testdriver/generate_test_report.html b/testing/web-platform/tests/infrastructure/testdriver/generate_test_report.html new file mode 100644 index 0000000000..168c9e9956 --- /dev/null +++ b/testing/web-platform/tests/infrastructure/testdriver/generate_test_report.html @@ -0,0 +1,16 @@ + + +TestDriver generate_test_report method + + + + + + diff --git a/testing/web-platform/tests/infrastructure/testdriver/get_all_cookies.sub.html b/testing/web-platform/tests/infrastructure/testdriver/get_all_cookies.sub.html new file mode 100644 index 0000000000..84f93af0a3 --- /dev/null +++ b/testing/web-platform/tests/infrastructure/testdriver/get_all_cookies.sub.html @@ -0,0 +1,95 @@ + + +TestDriver get_all_cookies method in HTTP + + + + + diff --git a/testing/web-platform/tests/infrastructure/testdriver/get_all_cookies.sub.html.headers b/testing/web-platform/tests/infrastructure/testdriver/get_all_cookies.sub.html.headers new file mode 100644 index 0000000000..3dc39a5673 --- /dev/null +++ b/testing/web-platform/tests/infrastructure/testdriver/get_all_cookies.sub.html.headers @@ -0,0 +1 @@ +Set-Cookie: test3=3; HttpOnly diff --git a/testing/web-platform/tests/infrastructure/testdriver/get_all_cookies.sub.https.html b/testing/web-platform/tests/infrastructure/testdriver/get_all_cookies.sub.https.html new file mode 100644 index 0000000000..e94167133b --- /dev/null +++ b/testing/web-platform/tests/infrastructure/testdriver/get_all_cookies.sub.https.html @@ -0,0 +1,112 @@ + + +TestDriver get_all_cookies method in HTTPS + + + + + diff --git a/testing/web-platform/tests/infrastructure/testdriver/get_all_cookies.sub.https.html.headers b/testing/web-platform/tests/infrastructure/testdriver/get_all_cookies.sub.https.html.headers new file mode 100644 index 0000000000..3dc39a5673 --- /dev/null +++ b/testing/web-platform/tests/infrastructure/testdriver/get_all_cookies.sub.https.html.headers @@ -0,0 +1 @@ +Set-Cookie: test3=3; HttpOnly diff --git a/testing/web-platform/tests/infrastructure/testdriver/get_named_cookie.sub.html b/testing/web-platform/tests/infrastructure/testdriver/get_named_cookie.sub.html new file mode 100644 index 0000000000..28950e2536 --- /dev/null +++ b/testing/web-platform/tests/infrastructure/testdriver/get_named_cookie.sub.html @@ -0,0 +1,105 @@ + + +TestDriver get_named_cookie method HTTP + + + + + diff --git a/testing/web-platform/tests/infrastructure/testdriver/get_named_cookie.sub.html.headers b/testing/web-platform/tests/infrastructure/testdriver/get_named_cookie.sub.html.headers new file mode 100644 index 0000000000..3dc39a5673 --- /dev/null +++ b/testing/web-platform/tests/infrastructure/testdriver/get_named_cookie.sub.html.headers @@ -0,0 +1 @@ +Set-Cookie: test3=3; HttpOnly diff --git a/testing/web-platform/tests/infrastructure/testdriver/get_named_cookie.sub.https.html b/testing/web-platform/tests/infrastructure/testdriver/get_named_cookie.sub.https.html new file mode 100644 index 0000000000..8e8f443381 --- /dev/null +++ b/testing/web-platform/tests/infrastructure/testdriver/get_named_cookie.sub.https.html @@ -0,0 +1,114 @@ + + +TestDriver get_named_cookie method HTTPS + + + + + diff --git a/testing/web-platform/tests/infrastructure/testdriver/get_named_cookie.sub.https.html.headers b/testing/web-platform/tests/infrastructure/testdriver/get_named_cookie.sub.https.html.headers new file mode 100644 index 0000000000..3dc39a5673 --- /dev/null +++ b/testing/web-platform/tests/infrastructure/testdriver/get_named_cookie.sub.https.html.headers @@ -0,0 +1 @@ +Set-Cookie: test3=3; HttpOnly diff --git a/testing/web-platform/tests/infrastructure/testdriver/send_keys.html b/testing/web-platform/tests/infrastructure/testdriver/send_keys.html new file mode 100644 index 0000000000..71ca4405f4 --- /dev/null +++ b/testing/web-platform/tests/infrastructure/testdriver/send_keys.html @@ -0,0 +1,23 @@ + + +TestDriver send keys method + + + + + +Text Input + + diff --git a/testing/web-platform/tests/infrastructure/testdriver/set_permission.https.html b/testing/web-platform/tests/infrastructure/testdriver/set_permission.https.html new file mode 100644 index 0000000000..7bc42a8538 --- /dev/null +++ b/testing/web-platform/tests/infrastructure/testdriver/set_permission.https.html @@ -0,0 +1,23 @@ + + +TestDriver set_permission method + + + + + + diff --git a/testing/web-platform/tests/infrastructure/testdriver/virtual_authenticator.html b/testing/web-platform/tests/infrastructure/testdriver/virtual_authenticator.html new file mode 100644 index 0000000000..04c14719d4 --- /dev/null +++ b/testing/web-platform/tests/infrastructure/testdriver/virtual_authenticator.html @@ -0,0 +1,88 @@ + + +TestDriver virtual authenticator methods + + + + + diff --git a/testing/web-platform/tests/infrastructure/testharness/lone-surrogates.html b/testing/web-platform/tests/infrastructure/testharness/lone-surrogates.html new file mode 100644 index 0000000000..fb842ecc9e --- /dev/null +++ b/testing/web-platform/tests/infrastructure/testharness/lone-surrogates.html @@ -0,0 +1,10 @@ + +test behaviour with lone surrogates + + + diff --git a/testing/web-platform/tests/infrastructure/webdriver/tests/conftest.py b/testing/web-platform/tests/infrastructure/webdriver/tests/conftest.py new file mode 100644 index 0000000000..cbc4f83421 --- /dev/null +++ b/testing/web-platform/tests/infrastructure/webdriver/tests/conftest.py @@ -0,0 +1,7 @@ +import os +import sys +# Hack to avoid duplicating the conftest file +wdpath = os.path.abspath(os.path.join(os.path.dirname(__file__), + "../../../webdriver/")) +sys.path.insert(0, wdpath) +from tests.conftest import * diff --git a/testing/web-platform/tests/infrastructure/webdriver/tests/test_load_file.py b/testing/web-platform/tests/infrastructure/webdriver/tests/test_load_file.py new file mode 100644 index 0000000000..084df8f09a --- /dev/null +++ b/testing/web-platform/tests/infrastructure/webdriver/tests/test_load_file.py @@ -0,0 +1,2 @@ +def test_load(session, inline): + inline("PASS") -- cgit v1.2.3