diff --git a/tests/wpt/metadata/FileAPI/idlharness.html.ini b/tests/wpt/metadata/FileAPI/idlharness.html.ini index bcf886825d98..e0de309e99f6 100644 --- a/tests/wpt/metadata/FileAPI/idlharness.html.ini +++ b/tests/wpt/metadata/FileAPI/idlharness.html.ini @@ -15,3 +15,6 @@ [FileReader interface: new FileReader() must inherit property "readAsBinaryString(Blob)" with the proper type] expected: FAIL + [File API automated IDL tests] + expected: FAIL + diff --git a/tests/wpt/metadata/FileAPI/idlharness.worker.js.ini b/tests/wpt/metadata/FileAPI/idlharness.worker.js.ini index 70812cb9f6f9..09efefe4dde2 100644 --- a/tests/wpt/metadata/FileAPI/idlharness.worker.js.ini +++ b/tests/wpt/metadata/FileAPI/idlharness.worker.js.ini @@ -78,3 +78,6 @@ [FileReaderSync interface: new FileReaderSync() must inherit property "readAsDataURL(Blob)" with the proper type] expected: FAIL + [Untitled] + expected: FAIL + diff --git a/tests/wpt/metadata/FileAPI/url/url-in-tags-revoke.window.js.ini b/tests/wpt/metadata/FileAPI/url/url-in-tags-revoke.window.js.ini index ed43d3717707..c8f51681ec5e 100644 --- a/tests/wpt/metadata/FileAPI/url/url-in-tags-revoke.window.js.ini +++ b/tests/wpt/metadata/FileAPI/url/url-in-tags-revoke.window.js.ini @@ -1,8 +1,11 @@ [url-in-tags-revoke.window.html] + expected: TIMEOUT [Fetching a blob URL immediately before revoking it works in an iframe.] expected: FAIL - [Fetching a blob URL immediately before revoking it works in an iframe navigation.] + expected: FAIL + + [Fetching a blob URL immediately before revoking it works in diff --git a/tests/wpt/web-platform-tests/FileAPI/url/url-in-tags.window.js b/tests/wpt/web-platform-tests/FileAPI/url/url-in-tags.window.js index 364d33bb89d5..f20b3599013b 100644 --- a/tests/wpt/web-platform-tests/FileAPI/url/url-in-tags.window.js +++ b/tests/wpt/web-platform-tests/FileAPI/url/url-in-tags.window.js @@ -31,7 +31,6 @@ async_test(t => { }, 'Blob URLs can be used in iframes, and are treated same origin'); async_test(t => { - const scroll_position = 5000; const blob_contents = '\n\n' + '\n' + '\n' + @@ -43,8 +42,7 @@ async_test(t => { const frame = document.createElement('iframe'); frame.setAttribute('src', url + '#block2'); document.body.appendChild(frame); - - frame.onload = t.step_func_done(() => { + frame.contentWindow.onscroll = t.step_func_done(() => { assert_equals(frame.contentWindow.scrollY, 5000); }); }, 'Blob URL fragment is implemented.'); diff --git a/tests/wpt/web-platform-tests/FileAPI/url/url_createobjecturl_file-manual.html b/tests/wpt/web-platform-tests/FileAPI/url/url_createobjecturl_file-manual.html index 469606a8e456..7ae32512e07c 100644 --- a/tests/wpt/web-platform-tests/FileAPI/url/url_createobjecturl_file-manual.html +++ b/tests/wpt/web-platform-tests/FileAPI/url/url_createobjecturl_file-manual.html @@ -3,9 +3,9 @@ FileAPI Test: Creating Blob URL with File + -

Test steps:

diff --git a/tests/wpt/web-platform-tests/IndexedDB/keypath-special-identifiers.htm b/tests/wpt/web-platform-tests/IndexedDB/keypath-special-identifiers.htm index 331169b5c903..cb64d0b708eb 100644 --- a/tests/wpt/web-platform-tests/IndexedDB/keypath-special-identifiers.htm +++ b/tests/wpt/web-platform-tests/IndexedDB/keypath-special-identifiers.htm @@ -38,11 +38,6 @@ property: 'lastModified', instance: new File([''], '', {lastModified: 123}), }, - { - type: 'File', - property: 'lastModifiedDate', - instance: new File([''], '', {lastModified: 123}), - }, ].forEach(function(testcase) { indexeddb_test( (t, db) => { diff --git a/tests/wpt/web-platform-tests/IndexedDB/keypath.htm b/tests/wpt/web-platform-tests/IndexedDB/keypath.htm index b59d614e8a9b..4985712a215c 100644 --- a/tests/wpt/web-platform-tests/IndexedDB/keypath.htm +++ b/tests/wpt/web-platform-tests/IndexedDB/keypath.htm @@ -125,7 +125,7 @@ "[Blob.length, Blob.type]"); } - // File.name and File.lastModifiedDate is not testable automatically + // File.name and File.lastModified is not testable automatically keypath(['name', 'type'], [ { name: "orange", type: "fruit" }, { name: "orange", type: ["telecom", "french"] } ], diff --git a/tests/wpt/web-platform-tests/README.md b/tests/wpt/web-platform-tests/README.md index 182e4e70eee5..db5612ea03c0 100644 --- a/tests/wpt/web-platform-tests/README.md +++ b/tests/wpt/web-platform-tests/README.md @@ -44,10 +44,10 @@ For example, on most UNIX-like systems, you can setup the hosts file with: ./wpt make-hosts-file | sudo tee -a /etc/hosts ``` -And on Windows (note this requires an Administrator privileged shell): +And on Windows (this must be run in a PowerShell session with Administrator privileges): ```bash -python wpt make-hosts-file >> %SystemRoot%\System32\drivers\etc\hosts +python wpt make-hosts-file | Out-File %SystemRoot%\System32\drivers\etc\hosts -Encoding ascii -Append ``` If you are behind a proxy, you also need to make sure the domains above are @@ -69,22 +69,19 @@ python wpt serve ``` This will start HTTP servers on two ports and a websockets server on -one port. By default the web servers start on ports 8000 and 8443 and the other -ports are randomly-chosen free ports. Tests must be loaded from the -*first* HTTP server in the output. To change the ports, copy the -`config.default.json` file to `config.json` and edit the new file, -replacing the part that reads: +one port. By default the web servers start on ports 8000 and 8443 and +the other ports are randomly-chosen free ports. Tests must be loaded +from the *first* HTTP server in the output. To change the ports, +create a `config.json` file in the wpt root directory, and add +port definitions of your choice e.g.: ``` -"http": [8000, "auto"], -"https":[8443] -``` - -to some ports of your choice e.g. - -``` -"http": [1234, "auto"], -"https":[5678] +{ + "ports": { + "http": [1234, "auto"], + "https":[5678] + } +} ``` After your `hosts` file is configured, the servers will be locally accessible at: @@ -262,11 +259,26 @@ If you forget to do this part, you will most likely see a 'File Not Found' error when you start wptserve. Finally, set the path value in the server configuration file to the -default OpenSSL configuration file location. To do this, -copy `config.default.json` in the web-platform-tests root to `config.json`. -Then edit the JSON so that the key `ssl/openssl/base_conf_path` has a -value that is the path to the OpenSSL config file (typically this -will be `C:\\OpenSSL-Win32\\bin\\openssl.cfg`). +default OpenSSL configuration file location. To do this create a file +called `config.json`. Then add the OpenSSL configuration below, +ensuring that the key `ssl/openssl/base_conf_path` has a value that is +the path to the OpenSSL config file (typically this will be +`C:\\OpenSSL-Win32\\bin\\openssl.cfg`): + +``` +{ + "ssl": { + "type": "openssl", + "encrypt_after_connect": false, + "openssl": { + "openssl_binary": "openssl", + "base_path: "_certs", + "force_regenerate": false, + "base_conf_path": "C:\\OpenSSL-Win32\\bin\\openssl.cfg" + }, + }, +} +``` ### Trusting Root CA @@ -361,7 +373,7 @@ web-platform-tests root directory to suppress the error reports. For more details, see the [lint-tool documentation][lint-tool]. -[lint-tool]: http://web-platform-tests.org/writing-tests/lint-tool.html +[lint-tool]: https://web-platform-tests.org/writing-tests/lint-tool.html Adding command-line scripts ("tools" subdirs) --------------------------------------------- @@ -437,5 +449,5 @@ is [archived][ircarchive]. Documentation ============= -* [How to write and review tests](http://web-platform-tests.org/) +* [How to write and review tests](https://web-platform-tests.org/) * [Documentation for the wptserve server](http://wptserve.readthedocs.org/en/latest/) diff --git a/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/failures_AES-CBC.https.any.js b/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/failures_AES-CBC.https.any.js new file mode 100644 index 000000000000..19c9fb28b3bc --- /dev/null +++ b/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/failures_AES-CBC.https.any.js @@ -0,0 +1,4 @@ +// META: timeout=long +// META: script=../util/helpers.js +// META: script=failures.js +run_test(["AES-CBC"]); diff --git a/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/failures_AES-CBC.https.worker.js b/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/failures_AES-CBC.https.worker.js deleted file mode 100644 index 7bb3e7f697fd..000000000000 --- a/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/failures_AES-CBC.https.worker.js +++ /dev/null @@ -1,6 +0,0 @@ -// META: timeout=long -importScripts("/resources/testharness.js"); -importScripts("../util/helpers.js"); -importScripts("failures.js"); -run_test(["AES-CBC"]); -done(); \ No newline at end of file diff --git a/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/failures_AES-CTR.https.any.js b/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/failures_AES-CTR.https.any.js new file mode 100644 index 000000000000..2f8a0b3596f1 --- /dev/null +++ b/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/failures_AES-CTR.https.any.js @@ -0,0 +1,4 @@ +// META: timeout=long +// META: script=../util/helpers.js +// META: script=failures.js +run_test(["AES-CTR"]); diff --git a/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/failures_AES-CTR.https.worker.js b/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/failures_AES-CTR.https.worker.js deleted file mode 100644 index f6766b27bba3..000000000000 --- a/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/failures_AES-CTR.https.worker.js +++ /dev/null @@ -1,6 +0,0 @@ -// META: timeout=long -importScripts("/resources/testharness.js"); -importScripts("../util/helpers.js"); -importScripts("failures.js"); -run_test(["AES-CTR"]); -done(); \ No newline at end of file diff --git a/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/failures_AES-GCM.https.any.js b/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/failures_AES-GCM.https.any.js new file mode 100644 index 000000000000..bb0ab46fbe6c --- /dev/null +++ b/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/failures_AES-GCM.https.any.js @@ -0,0 +1,4 @@ +// META: timeout=long +// META: script=../util/helpers.js +// META: script=failures.js +run_test(["AES-GCM"]); diff --git a/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/failures_AES-GCM.https.worker.js b/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/failures_AES-GCM.https.worker.js deleted file mode 100644 index 1383e5895595..000000000000 --- a/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/failures_AES-GCM.https.worker.js +++ /dev/null @@ -1,6 +0,0 @@ -// META: timeout=long -importScripts("/resources/testharness.js"); -importScripts("../util/helpers.js"); -importScripts("failures.js"); -run_test(["AES-GCM"]); -done(); \ No newline at end of file diff --git a/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/failures_AES-KW.https.any.js b/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/failures_AES-KW.https.any.js new file mode 100644 index 000000000000..54d685f75657 --- /dev/null +++ b/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/failures_AES-KW.https.any.js @@ -0,0 +1,4 @@ +// META: timeout=long +// META: script=../util/helpers.js +// META: script=failures.js +run_test(["AES-KW"]); diff --git a/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/failures_AES-KW.https.worker.js b/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/failures_AES-KW.https.worker.js deleted file mode 100644 index 04f5bb6edab6..000000000000 --- a/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/failures_AES-KW.https.worker.js +++ /dev/null @@ -1,6 +0,0 @@ -// META: timeout=long -importScripts("/resources/testharness.js"); -importScripts("../util/helpers.js"); -importScripts("failures.js"); -run_test(["AES-KW"]); -done(); \ No newline at end of file diff --git a/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/failures_ECDH.https.any.js b/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/failures_ECDH.https.any.js new file mode 100644 index 000000000000..4c13c5ac5721 --- /dev/null +++ b/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/failures_ECDH.https.any.js @@ -0,0 +1,4 @@ +// META: timeout=long +// META: script=../util/helpers.js +// META: script=failures.js +run_test(["ECDH"]); diff --git a/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/failures_ECDH.https.worker.js b/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/failures_ECDH.https.worker.js deleted file mode 100644 index a7e6a7240bcc..000000000000 --- a/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/failures_ECDH.https.worker.js +++ /dev/null @@ -1,6 +0,0 @@ -// META: timeout=long -importScripts("/resources/testharness.js"); -importScripts("../util/helpers.js"); -importScripts("failures.js"); -run_test(["ECDH"]); -done(); \ No newline at end of file diff --git a/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/failures_ECDSA.https.any.js b/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/failures_ECDSA.https.any.js new file mode 100644 index 000000000000..74cd480e2c2d --- /dev/null +++ b/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/failures_ECDSA.https.any.js @@ -0,0 +1,4 @@ +// META: timeout=long +// META: script=../util/helpers.js +// META: script=failures.js +run_test(["ECDSA"]); diff --git a/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/failures_ECDSA.https.worker.js b/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/failures_ECDSA.https.worker.js deleted file mode 100644 index a1f471141de0..000000000000 --- a/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/failures_ECDSA.https.worker.js +++ /dev/null @@ -1,6 +0,0 @@ -// META: timeout=long -importScripts("/resources/testharness.js"); -importScripts("../util/helpers.js"); -importScripts("failures.js"); -run_test(["ECDSA"]); -done(); \ No newline at end of file diff --git a/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/failures_HMAC.https.any.js b/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/failures_HMAC.https.any.js new file mode 100644 index 000000000000..708d33beba49 --- /dev/null +++ b/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/failures_HMAC.https.any.js @@ -0,0 +1,4 @@ +// META: timeout=long +// META: script=../util/helpers.js +// META: script=failures.js +run_test(["HMAC"]); diff --git a/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/failures_HMAC.https.worker.js b/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/failures_HMAC.https.worker.js deleted file mode 100644 index 9dfbbb9c065a..000000000000 --- a/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/failures_HMAC.https.worker.js +++ /dev/null @@ -1,6 +0,0 @@ -// META: timeout=long -importScripts("/resources/testharness.js"); -importScripts("../util/helpers.js"); -importScripts("failures.js"); -run_test(["HMAC"]); -done(); \ No newline at end of file diff --git a/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/failures_RSA-OAEP.https.any.js b/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/failures_RSA-OAEP.https.any.js new file mode 100644 index 000000000000..4ec0ec20bac1 --- /dev/null +++ b/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/failures_RSA-OAEP.https.any.js @@ -0,0 +1,4 @@ +// META: timeout=long +// META: script=../util/helpers.js +// META: script=failures.js +run_test(["RSA-OAEP"]); diff --git a/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/failures_RSA-OAEP.https.worker.js b/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/failures_RSA-OAEP.https.worker.js deleted file mode 100644 index 39de6d6efecf..000000000000 --- a/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/failures_RSA-OAEP.https.worker.js +++ /dev/null @@ -1,6 +0,0 @@ -// META: timeout=long -importScripts("/resources/testharness.js"); -importScripts("../util/helpers.js"); -importScripts("failures.js"); -run_test(["RSA-OAEP"]); -done(); \ No newline at end of file diff --git a/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/failures_RSA-PSS.https.any.js b/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/failures_RSA-PSS.https.any.js new file mode 100644 index 000000000000..557b5785e348 --- /dev/null +++ b/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/failures_RSA-PSS.https.any.js @@ -0,0 +1,4 @@ +// META: timeout=long +// META: script=../util/helpers.js +// META: script=failures.js +run_test(["RSA-PSS"]); diff --git a/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/failures_RSA-PSS.https.worker.js b/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/failures_RSA-PSS.https.worker.js deleted file mode 100644 index 8b1110d7f096..000000000000 --- a/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/failures_RSA-PSS.https.worker.js +++ /dev/null @@ -1,6 +0,0 @@ -// META: timeout=long -importScripts("/resources/testharness.js"); -importScripts("../util/helpers.js"); -importScripts("failures.js"); -run_test(["RSA-PSS"]); -done(); \ No newline at end of file diff --git a/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/failures_RSASSA-PKCS1-v1_5.https.any.js b/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/failures_RSASSA-PKCS1-v1_5.https.any.js new file mode 100644 index 000000000000..45771bf0d46e --- /dev/null +++ b/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/failures_RSASSA-PKCS1-v1_5.https.any.js @@ -0,0 +1,4 @@ +// META: timeout=long +// META: script=../util/helpers.js +// META: script=failures.js +run_test(["RSASSA-PKCS1-v1_5"]); diff --git a/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/failures_RSASSA-PKCS1-v1_5.https.worker.js b/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/failures_RSASSA-PKCS1-v1_5.https.worker.js deleted file mode 100644 index 4df0b896fe37..000000000000 --- a/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/failures_RSASSA-PKCS1-v1_5.https.worker.js +++ /dev/null @@ -1,6 +0,0 @@ -// META: timeout=long -importScripts("/resources/testharness.js"); -importScripts("../util/helpers.js"); -importScripts("failures.js"); -run_test(["RSASSA-PKCS1-v1_5"]); -done(); \ No newline at end of file diff --git a/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/successes.js b/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/successes.js index 6a74c01ddde4..b99e44d66d40 100644 --- a/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/successes.js +++ b/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/successes.js @@ -70,7 +70,6 @@ function run_test(algorithmNames, slowTest) { }, testTag + ": generateKey" + parameterString(algorithm, extractable, usages)); } - // Test all valid sets of parameters for successful // key generation. testVectors.forEach(function(vector) { @@ -78,7 +77,7 @@ function run_test(algorithmNames, slowTest) { allAlgorithmSpecifiersFor(name).forEach(function(algorithm) { allValidUsages(vector.usages, false, vector.mandatoryUsages).forEach(function(usages) { [false, true].forEach(function(extractable) { - testSuccess(algorithm, extractable, usages, vector.resultType, "Success"); + subsetTest(testSuccess, algorithm, extractable, usages, vector.resultType, "Success"); }); }); }); diff --git a/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/successes_AES-CBC.https.any.js b/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/successes_AES-CBC.https.any.js new file mode 100644 index 000000000000..6feb60e5caa7 --- /dev/null +++ b/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/successes_AES-CBC.https.any.js @@ -0,0 +1,5 @@ +// META: timeout=long +// META: script=../util/helpers.js +// META: script=/common/subset-tests.js +// META: script=successes.js +run_test(["AES-CBC"]); diff --git a/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/successes_AES-CBC.https.worker.js b/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/successes_AES-CBC.https.worker.js deleted file mode 100644 index 0710c9e7b504..000000000000 --- a/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/successes_AES-CBC.https.worker.js +++ /dev/null @@ -1,7 +0,0 @@ -// META: timeout=long -importScripts("/resources/testharness.js"); -importScripts("../util/helpers.js"); -importScripts("successes.js"); - -run_test(["AES-CBC"]); -done(); \ No newline at end of file diff --git a/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/successes_AES-CTR.https.any.js b/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/successes_AES-CTR.https.any.js new file mode 100644 index 000000000000..7b4f2df5fb1b --- /dev/null +++ b/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/successes_AES-CTR.https.any.js @@ -0,0 +1,5 @@ +// META: timeout=long +// META: script=../util/helpers.js +// META: script=/common/subset-tests.js +// META: script=successes.js +run_test(["AES-CTR"]); diff --git a/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/successes_AES-CTR.https.worker.js b/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/successes_AES-CTR.https.worker.js deleted file mode 100644 index 51529f000fd8..000000000000 --- a/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/successes_AES-CTR.https.worker.js +++ /dev/null @@ -1,7 +0,0 @@ -// META: timeout=long -importScripts("/resources/testharness.js"); -importScripts("../util/helpers.js"); -importScripts("successes.js"); - -run_test(["AES-CTR"]); -done(); \ No newline at end of file diff --git a/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/successes_AES-GCM.https.any.js b/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/successes_AES-GCM.https.any.js new file mode 100644 index 000000000000..8e7bc92170c6 --- /dev/null +++ b/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/successes_AES-GCM.https.any.js @@ -0,0 +1,5 @@ +// META: timeout=long +// META: script=../util/helpers.js +// META: script=/common/subset-tests.js +// META: script=successes.js +run_test(["AES-GCM"]); diff --git a/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/successes_AES-GCM.https.worker.js b/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/successes_AES-GCM.https.worker.js deleted file mode 100644 index 1f6a1bc96e00..000000000000 --- a/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/successes_AES-GCM.https.worker.js +++ /dev/null @@ -1,7 +0,0 @@ -// META: timeout=long -importScripts("/resources/testharness.js"); -importScripts("../util/helpers.js"); -importScripts("successes.js"); - -run_test(["AES-GCM"]); -done(); \ No newline at end of file diff --git a/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/successes_AES-KW.https.any.js b/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/successes_AES-KW.https.any.js new file mode 100644 index 000000000000..5eb023369f40 --- /dev/null +++ b/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/successes_AES-KW.https.any.js @@ -0,0 +1,5 @@ +// META: timeout=long +// META: script=../util/helpers.js +// META: script=/common/subset-tests.js +// META: script=successes.js +run_test(["AES-KW"]); diff --git a/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/successes_AES-KW.https.worker.js b/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/successes_AES-KW.https.worker.js deleted file mode 100644 index 058cf83d0576..000000000000 --- a/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/successes_AES-KW.https.worker.js +++ /dev/null @@ -1,7 +0,0 @@ -// META: timeout=long -importScripts("/resources/testharness.js"); -importScripts("../util/helpers.js"); -importScripts("successes.js"); - -run_test(["AES-KW"]); -done(); \ No newline at end of file diff --git a/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/successes_ECDH.https.any.js b/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/successes_ECDH.https.any.js new file mode 100644 index 000000000000..87590d23ea43 --- /dev/null +++ b/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/successes_ECDH.https.any.js @@ -0,0 +1,5 @@ +// META: timeout=long +// META: script=../util/helpers.js +// META: script=/common/subset-tests.js +// META: script=successes.js +run_test(["ECDH"]); diff --git a/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/successes_ECDH.https.worker.js b/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/successes_ECDH.https.worker.js deleted file mode 100644 index a21b7d04e8bc..000000000000 --- a/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/successes_ECDH.https.worker.js +++ /dev/null @@ -1,7 +0,0 @@ -// META: timeout=long -importScripts("/resources/testharness.js"); -importScripts("../util/helpers.js"); -importScripts("successes.js"); - -run_test(["ECDH"]); -done(); \ No newline at end of file diff --git a/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/successes_ECDSA.https.any.js b/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/successes_ECDSA.https.any.js new file mode 100644 index 000000000000..734d86972fc6 --- /dev/null +++ b/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/successes_ECDSA.https.any.js @@ -0,0 +1,5 @@ +// META: timeout=long +// META: script=../util/helpers.js +// META: script=/common/subset-tests.js +// META: script=successes.js +run_test(["ECDSA"]); diff --git a/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/successes_ECDSA.https.worker.js b/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/successes_ECDSA.https.worker.js deleted file mode 100644 index 13f7e3539ec4..000000000000 --- a/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/successes_ECDSA.https.worker.js +++ /dev/null @@ -1,7 +0,0 @@ -// META: timeout=long -importScripts("/resources/testharness.js"); -importScripts("../util/helpers.js"); -importScripts("successes.js"); - -run_test(["ECDSA"]); -done(); \ No newline at end of file diff --git a/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/successes_HMAC.https.any.js b/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/successes_HMAC.https.any.js new file mode 100644 index 000000000000..bc106f3c117c --- /dev/null +++ b/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/successes_HMAC.https.any.js @@ -0,0 +1,5 @@ +// META: timeout=long +// META: script=../util/helpers.js +// META: script=/common/subset-tests.js +// META: script=successes.js +run_test(["HMAC"]); diff --git a/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/successes_HMAC.https.worker.js b/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/successes_HMAC.https.worker.js deleted file mode 100644 index 2b50b9090585..000000000000 --- a/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/successes_HMAC.https.worker.js +++ /dev/null @@ -1,7 +0,0 @@ -// META: timeout=long -importScripts("/resources/testharness.js"); -importScripts("../util/helpers.js"); -importScripts("successes.js"); - -run_test(["HMAC"]); -done(); \ No newline at end of file diff --git a/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/successes_RSA-OAEP.https.any.js b/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/successes_RSA-OAEP.https.any.js new file mode 100644 index 000000000000..b0412286c58e --- /dev/null +++ b/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/successes_RSA-OAEP.https.any.js @@ -0,0 +1,21 @@ +// META: timeout=long +// META: variant=?1-10 +// META: variant=?11-20 +// META: variant=?21-30 +// META: variant=?31-40 +// META: variant=?41-50 +// META: variant=?51-60 +// META: variant=?61-70 +// META: variant=?71-80 +// META: variant=?81-90 +// META: variant=?91-100 +// META: variant=?101-110 +// META: variant=?111-120 +// META: variant=?121-130 +// META: variant=?131-140 +// META: variant=?141-150 +// META: variant=?151-last +// META: script=../util/helpers.js +// META: script=/common/subset-tests.js +// META: script=successes.js +run_test(["RSA-OAEP"]); diff --git a/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/successes_RSA-OAEP.https.worker.js b/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/successes_RSA-OAEP.https.worker.js deleted file mode 100644 index 4b3538da6896..000000000000 --- a/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/successes_RSA-OAEP.https.worker.js +++ /dev/null @@ -1,7 +0,0 @@ -// META: timeout=long -importScripts("/resources/testharness.js"); -importScripts("../util/helpers.js"); -importScripts("successes.js"); - -run_test(["RSA-OAEP"]); -done(); \ No newline at end of file diff --git a/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/successes_RSA-PSS.https.any.js b/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/successes_RSA-PSS.https.any.js new file mode 100644 index 000000000000..ea91c8f99b04 --- /dev/null +++ b/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/successes_RSA-PSS.https.any.js @@ -0,0 +1,9 @@ +// META: timeout=long +// META: variant=?1-10 +// META: variant=?11-20 +// META: variant=?21-30 +// META: variant=?31-last +// META: script=../util/helpers.js +// META: script=/common/subset-tests.js +// META: script=successes.js +run_test(["RSA-PSS"]); diff --git a/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/successes_RSA-PSS.https.worker.js b/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/successes_RSA-PSS.https.worker.js deleted file mode 100644 index 52364f5c7f55..000000000000 --- a/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/successes_RSA-PSS.https.worker.js +++ /dev/null @@ -1,7 +0,0 @@ -// META: timeout=long -importScripts("/resources/testharness.js"); -importScripts("../util/helpers.js"); -importScripts("successes.js"); - -run_test(["RSA-PSS"]); -done(); \ No newline at end of file diff --git a/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/successes_RSASSA-PKCS1-v1_5.https.any.js b/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/successes_RSASSA-PKCS1-v1_5.https.any.js new file mode 100644 index 000000000000..fc785f9b31c9 --- /dev/null +++ b/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/successes_RSASSA-PKCS1-v1_5.https.any.js @@ -0,0 +1,9 @@ +// META: timeout=long +// META: variant=?1-10 +// META: variant=?11-20 +// META: variant=?21-30 +// META: variant=?31-last +// META: script=../util/helpers.js +// META: script=/common/subset-tests.js +// META: script=successes.js +run_test(["RSASSA-PKCS1-v1_5"]); diff --git a/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/successes_RSASSA-PKCS1-v1_5.https.worker.js b/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/successes_RSASSA-PKCS1-v1_5.https.worker.js deleted file mode 100644 index 4c6a02a98c62..000000000000 --- a/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/successes_RSASSA-PKCS1-v1_5.https.worker.js +++ /dev/null @@ -1,7 +0,0 @@ -// META: timeout=long -importScripts("/resources/testharness.js"); -importScripts("../util/helpers.js"); -importScripts("successes.js"); - -run_test(["RSASSA-PKCS1-v1_5"]); -done(); \ No newline at end of file diff --git a/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/test_aes-cbc.https.html b/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/test_aes-cbc.https.html deleted file mode 100644 index a3054a57a99a..000000000000 --- a/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/test_aes-cbc.https.html +++ /dev/null @@ -1,23 +0,0 @@ - - - -WebCryptoAPI: generateKey() Successful Calls - - - - - - - - -

generateKey Tests for Good Parameters

-

- Warning! RSA key generation is intrinsically - very slow, so the related tests can take up to - several minutes to complete, depending on browser! -

- -
- diff --git a/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/test_aes-ctr.https.html b/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/test_aes-ctr.https.html deleted file mode 100644 index bb1abf0d948e..000000000000 --- a/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/test_aes-ctr.https.html +++ /dev/null @@ -1,23 +0,0 @@ - - - -WebCryptoAPI: generateKey() Successful Calls - - - - - - - - -

generateKey Tests for Good Parameters

-

- Warning! RSA key generation is intrinsically - very slow, so the related tests can take up to - several minutes to complete, depending on browser! -

- -
- diff --git a/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/test_failures_AES-CBC.https.html b/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/test_failures_AES-CBC.https.html deleted file mode 100644 index 7650908c09a1..000000000000 --- a/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/test_failures_AES-CBC.https.html +++ /dev/null @@ -1,18 +0,0 @@ - - - -WebCryptoAPI: generateKey() for Failures - - - - - - - - -

generateKey Tests for Bad Parameters

- -
- diff --git a/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/test_failures_AES-CTR.https.html b/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/test_failures_AES-CTR.https.html deleted file mode 100644 index f08737c390a4..000000000000 --- a/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/test_failures_AES-CTR.https.html +++ /dev/null @@ -1,18 +0,0 @@ - - - -WebCryptoAPI: generateKey() for Failures - - - - - - - - -

generateKey Tests for Bad Parameters

- -
- diff --git a/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/test_failures_AES-GCM.https.html b/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/test_failures_AES-GCM.https.html deleted file mode 100644 index 4ef6a7771025..000000000000 --- a/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/test_failures_AES-GCM.https.html +++ /dev/null @@ -1,18 +0,0 @@ - - - -WebCryptoAPI: generateKey() for Failures - - - - - - - - -

generateKey Tests for Bad Parameters

- -
- diff --git a/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/test_failures_AES-KW.https.html b/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/test_failures_AES-KW.https.html deleted file mode 100644 index 7cbb4f8bf036..000000000000 --- a/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/test_failures_AES-KW.https.html +++ /dev/null @@ -1,18 +0,0 @@ - - - -WebCryptoAPI: generateKey() for Failures - - - - - - - - -

generateKey Tests for Bad Parameters

- -
- diff --git a/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/test_failures_ECDH.https.html b/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/test_failures_ECDH.https.html deleted file mode 100644 index c606a5b9041c..000000000000 --- a/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/test_failures_ECDH.https.html +++ /dev/null @@ -1,18 +0,0 @@ - - - -WebCryptoAPI: generateKey() for Failures - - - - - - - - -

generateKey Tests for Bad Parameters

- -
- diff --git a/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/test_failures_ECDSA.https.html b/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/test_failures_ECDSA.https.html deleted file mode 100644 index 8b742e80b1e1..000000000000 --- a/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/test_failures_ECDSA.https.html +++ /dev/null @@ -1,18 +0,0 @@ - - - -WebCryptoAPI: generateKey() for Failures - - - - - - - - -

generateKey Tests for Bad Parameters

- -
- diff --git a/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/test_failures_HMAC.https.html b/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/test_failures_HMAC.https.html deleted file mode 100644 index e037f0d07d55..000000000000 --- a/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/test_failures_HMAC.https.html +++ /dev/null @@ -1,18 +0,0 @@ - - - -WebCryptoAPI: generateKey() for Failures - - - - - - - - -

generateKey Tests for Bad Parameters

- -
- diff --git a/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/test_failures_RSA-OAEP.https.html b/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/test_failures_RSA-OAEP.https.html deleted file mode 100644 index ddd63beb3430..000000000000 --- a/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/test_failures_RSA-OAEP.https.html +++ /dev/null @@ -1,18 +0,0 @@ - - - -WebCryptoAPI: generateKey() for Failures - - - - - - - - -

generateKey Tests for Bad Parameters

- -
- diff --git a/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/test_failures_RSA-PSS.https.html b/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/test_failures_RSA-PSS.https.html deleted file mode 100644 index 2814b34e9a44..000000000000 --- a/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/test_failures_RSA-PSS.https.html +++ /dev/null @@ -1,18 +0,0 @@ - - - -WebCryptoAPI: generateKey() for Failures - - - - - - - - -

generateKey Tests for Bad Parameters

- -
- diff --git a/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/test_failures_RSASSA-PKCS1-v1_5.https.html b/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/test_failures_RSASSA-PKCS1-v1_5.https.html deleted file mode 100644 index 0e28914af806..000000000000 --- a/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/test_failures_RSASSA-PKCS1-v1_5.https.html +++ /dev/null @@ -1,18 +0,0 @@ - - - -WebCryptoAPI: generateKey() for Failures - - - - - - - - -

generateKey Tests for Bad Parameters

- -
- diff --git a/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/test_successes_AES-CBC.https.html b/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/test_successes_AES-CBC.https.html deleted file mode 100644 index af8093539007..000000000000 --- a/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/test_successes_AES-CBC.https.html +++ /dev/null @@ -1,23 +0,0 @@ - - - -WebCryptoAPI: generateKey() Successful Calls - - - - - - - - -

generateKey Tests for Good Parameters

-

- Warning! RSA key generation is intrinsically - very slow, so the related tests can take up to - several minutes to complete, depending on browser! -

- -
- \ No newline at end of file diff --git a/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/test_successes_AES-CTR.https.html b/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/test_successes_AES-CTR.https.html deleted file mode 100644 index 3608a4fde35b..000000000000 --- a/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/test_successes_AES-CTR.https.html +++ /dev/null @@ -1,23 +0,0 @@ - - - -WebCryptoAPI: generateKey() Successful Calls - - - - - - - - -

generateKey Tests for Good Parameters

-

- Warning! RSA key generation is intrinsically - very slow, so the related tests can take up to - several minutes to complete, depending on browser! -

- -
- \ No newline at end of file diff --git a/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/test_successes_AES-GCM.https.html b/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/test_successes_AES-GCM.https.html deleted file mode 100644 index eb7c6b5d0069..000000000000 --- a/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/test_successes_AES-GCM.https.html +++ /dev/null @@ -1,23 +0,0 @@ - - - -WebCryptoAPI: generateKey() Successful Calls - - - - - - - - -

generateKey Tests for Good Parameters

-

- Warning! RSA key generation is intrinsically - very slow, so the related tests can take up to - several minutes to complete, depending on browser! -

- -
- \ No newline at end of file diff --git a/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/test_successes_AES-KW.https.html b/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/test_successes_AES-KW.https.html deleted file mode 100644 index 9beab2083466..000000000000 --- a/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/test_successes_AES-KW.https.html +++ /dev/null @@ -1,23 +0,0 @@ - - - -WebCryptoAPI: generateKey() Successful Calls - - - - - - - - -

generateKey Tests for Good Parameters

-

- Warning! RSA key generation is intrinsically - very slow, so the related tests can take up to - several minutes to complete, depending on browser! -

- -
- \ No newline at end of file diff --git a/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/test_successes_ECDH.https.html b/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/test_successes_ECDH.https.html deleted file mode 100644 index 9871f572b05c..000000000000 --- a/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/test_successes_ECDH.https.html +++ /dev/null @@ -1,23 +0,0 @@ - - - -WebCryptoAPI: generateKey() Successful Calls - - - - - - - - -

generateKey Tests for Good Parameters

-

- Warning! RSA key generation is intrinsically - very slow, so the related tests can take up to - several minutes to complete, depending on browser! -

- -
- \ No newline at end of file diff --git a/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/test_successes_ECDSA.https.html b/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/test_successes_ECDSA.https.html deleted file mode 100644 index f32a556bb24a..000000000000 --- a/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/test_successes_ECDSA.https.html +++ /dev/null @@ -1,23 +0,0 @@ - - - -WebCryptoAPI: generateKey() Successful Calls - - - - - - - - -

generateKey Tests for Good Parameters

-

- Warning! RSA key generation is intrinsically - very slow, so the related tests can take up to - several minutes to complete, depending on browser! -

- -
- \ No newline at end of file diff --git a/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/test_successes_HMAC.https.html b/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/test_successes_HMAC.https.html deleted file mode 100644 index 819b35df08c5..000000000000 --- a/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/test_successes_HMAC.https.html +++ /dev/null @@ -1,23 +0,0 @@ - - - -WebCryptoAPI: generateKey() Successful Calls - - - - - - - - -

generateKey Tests for Good Parameters

-

- Warning! RSA key generation is intrinsically - very slow, so the related tests can take up to - several minutes to complete, depending on browser! -

- -
- \ No newline at end of file diff --git a/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/test_successes_RSA-OAEP.https.html b/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/test_successes_RSA-OAEP.https.html deleted file mode 100644 index db58fd6690ab..000000000000 --- a/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/test_successes_RSA-OAEP.https.html +++ /dev/null @@ -1,23 +0,0 @@ - - - -WebCryptoAPI: generateKey() Successful Calls - - - - - - - - -

generateKey Tests for Good Parameters

-

- Warning! RSA key generation is intrinsically - very slow, so the related tests can take up to - several minutes to complete, depending on browser! -

- -
- \ No newline at end of file diff --git a/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/test_successes_RSA-PSS.https.html b/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/test_successes_RSA-PSS.https.html deleted file mode 100644 index d6a3c1b02d0c..000000000000 --- a/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/test_successes_RSA-PSS.https.html +++ /dev/null @@ -1,23 +0,0 @@ - - - -WebCryptoAPI: generateKey() Successful Calls - - - - - - - - -

generateKey Tests for Good Parameters

-

- Warning! RSA key generation is intrinsically - very slow, so the related tests can take up to - several minutes to complete, depending on browser! -

- -
- \ No newline at end of file diff --git a/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/test_successes_RSASSA-PKCS1-v1_5.https.html b/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/test_successes_RSASSA-PKCS1-v1_5.https.html deleted file mode 100644 index 35678798bdf7..000000000000 --- a/tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/test_successes_RSASSA-PKCS1-v1_5.https.html +++ /dev/null @@ -1,23 +0,0 @@ - - - -WebCryptoAPI: generateKey() Successful Calls - - - - - - - - -

generateKey Tests for Good Parameters

-

- Warning! RSA key generation is intrinsically - very slow, so the related tests can take up to - several minutes to complete, depending on browser! -

- -
- \ No newline at end of file diff --git a/tests/wpt/web-platform-tests/accelerometer/Accelerometer-disabled-by-feature-policy.https.html b/tests/wpt/web-platform-tests/accelerometer/Accelerometer-disabled-by-feature-policy.https.html index 9476efb6a0f1..041ddc4470c6 100644 --- a/tests/wpt/web-platform-tests/accelerometer/Accelerometer-disabled-by-feature-policy.https.html +++ b/tests/wpt/web-platform-tests/accelerometer/Accelerometer-disabled-by-feature-policy.https.html @@ -8,8 +8,8 @@ diff --git a/tests/wpt/web-platform-tests/accelerometer/Accelerometer-enabled-by-feature-policy-attribute-redirect-on-load.https.html b/tests/wpt/web-platform-tests/accelerometer/Accelerometer-enabled-by-feature-policy-attribute-redirect-on-load.https.html index aa8ea10eb0b0..53f6960ce589 100644 --- a/tests/wpt/web-platform-tests/accelerometer/Accelerometer-enabled-by-feature-policy-attribute-redirect-on-load.https.html +++ b/tests/wpt/web-platform-tests/accelerometer/Accelerometer-enabled-by-feature-policy-attribute-redirect-on-load.https.html @@ -8,8 +8,8 @@ diff --git a/tests/wpt/web-platform-tests/accelerometer/Accelerometer-enabled-by-feature-policy-attribute.https.html b/tests/wpt/web-platform-tests/accelerometer/Accelerometer-enabled-by-feature-policy-attribute.https.html index 860a027b55bc..3dd49d330ecd 100644 --- a/tests/wpt/web-platform-tests/accelerometer/Accelerometer-enabled-by-feature-policy-attribute.https.html +++ b/tests/wpt/web-platform-tests/accelerometer/Accelerometer-enabled-by-feature-policy-attribute.https.html @@ -8,8 +8,8 @@ diff --git a/tests/wpt/web-platform-tests/accelerometer/Accelerometer-enabled-by-feature-policy.https.html b/tests/wpt/web-platform-tests/accelerometer/Accelerometer-enabled-by-feature-policy.https.html index 889047a0703e..f5d08972d5ff 100644 --- a/tests/wpt/web-platform-tests/accelerometer/Accelerometer-enabled-by-feature-policy.https.html +++ b/tests/wpt/web-platform-tests/accelerometer/Accelerometer-enabled-by-feature-policy.https.html @@ -8,8 +8,8 @@ diff --git a/tests/wpt/web-platform-tests/accelerometer/Accelerometer-enabled-on-self-origin-by-feature-policy.https.html b/tests/wpt/web-platform-tests/accelerometer/Accelerometer-enabled-on-self-origin-by-feature-policy.https.html index bf458529e849..2074562b7ad5 100644 --- a/tests/wpt/web-platform-tests/accelerometer/Accelerometer-enabled-on-self-origin-by-feature-policy.https.html +++ b/tests/wpt/web-platform-tests/accelerometer/Accelerometer-enabled-on-self-origin-by-feature-policy.https.html @@ -8,8 +8,8 @@ diff --git a/tests/wpt/web-platform-tests/accelerometer/Accelerometer.https.html b/tests/wpt/web-platform-tests/accelerometer/Accelerometer.https.html index 9563270fcda5..b601c6120827 100644 --- a/tests/wpt/web-platform-tests/accelerometer/Accelerometer.https.html +++ b/tests/wpt/web-platform-tests/accelerometer/Accelerometer.https.html @@ -9,8 +9,8 @@
diff --git a/tests/wpt/web-platform-tests/accelerometer/Accelerometer_onerror-manual.https.html b/tests/wpt/web-platform-tests/accelerometer/Accelerometer_onerror-manual.https.html index f69b1b6ce5c1..dec21881b631 100644 --- a/tests/wpt/web-platform-tests/accelerometer/Accelerometer_onerror-manual.https.html +++ b/tests/wpt/web-platform-tests/accelerometer/Accelerometer_onerror-manual.https.html @@ -15,8 +15,8 @@

Precondition

diff --git a/tests/wpt/web-platform-tests/accname/description_1.0_combobox-focusable-manual.html b/tests/wpt/web-platform-tests/accname/description_1.0_combobox-focusable-manual.html index ce26e8a69362..c0d54d6c2338 100644 --- a/tests/wpt/web-platform-tests/accname/description_1.0_combobox-focusable-manual.html +++ b/tests/wpt/web-platform-tests/accname/description_1.0_combobox-focusable-manual.html @@ -3,7 +3,6 @@ Description 1.0 combobox-focusable - diff --git a/tests/wpt/web-platform-tests/accname/description_from_content_of_describedby_element-manual.html b/tests/wpt/web-platform-tests/accname/description_from_content_of_describedby_element-manual.html index 167b52972f5b..2911d1d031a8 100644 --- a/tests/wpt/web-platform-tests/accname/description_from_content_of_describedby_element-manual.html +++ b/tests/wpt/web-platform-tests/accname/description_from_content_of_describedby_element-manual.html @@ -3,7 +3,6 @@ Description from content of describedby element - @@ -75,7 +74,7 @@ Zambino the weird. - (QED) + (QED) diff --git a/tests/wpt/web-platform-tests/accname/description_from_content_of_describedby_element_which_is_hidden-manual.html b/tests/wpt/web-platform-tests/accname/description_from_content_of_describedby_element_which_is_hidden-manual.html deleted file mode 100644 index a49a92295121..000000000000 --- a/tests/wpt/web-platform-tests/accname/description_from_content_of_describedby_element_which_is_hidden-manual.html +++ /dev/null @@ -1,103 +0,0 @@ - - - - Description from content of describedby element which is hidden - - - - - - - - - -

This test examines the ARIA properties for Description from content of describedby element which is hidden.

- -
- - - - - -
-
- - - - - - -
Where
in
the world
are my marbles?
-
- - -
-
-
- - diff --git a/tests/wpt/web-platform-tests/accname/description_link-with-label-manual.html b/tests/wpt/web-platform-tests/accname/description_link-with-label-manual.html index 0e4b2b2e5bdd..09c32db1c2ee 100644 --- a/tests/wpt/web-platform-tests/accname/description_link-with-label-manual.html +++ b/tests/wpt/web-platform-tests/accname/description_link-with-label-manual.html @@ -3,7 +3,6 @@ Description link-with-label - diff --git a/tests/wpt/web-platform-tests/accname/description_test_case_557-manual.html b/tests/wpt/web-platform-tests/accname/description_test_case_557-manual.html index 8c1790457434..1294baf65718 100644 --- a/tests/wpt/web-platform-tests/accname/description_test_case_557-manual.html +++ b/tests/wpt/web-platform-tests/accname/description_test_case_557-manual.html @@ -3,7 +3,6 @@ Description test case 557 - diff --git a/tests/wpt/web-platform-tests/accname/description_test_case_664-manual.html b/tests/wpt/web-platform-tests/accname/description_test_case_664-manual.html index 0ba57426d2ed..f4e813643cab 100644 --- a/tests/wpt/web-platform-tests/accname/description_test_case_664-manual.html +++ b/tests/wpt/web-platform-tests/accname/description_test_case_664-manual.html @@ -3,7 +3,6 @@ Description test case 664 - diff --git a/tests/wpt/web-platform-tests/accname/description_test_case_665-manual.html b/tests/wpt/web-platform-tests/accname/description_test_case_665-manual.html index 341d6d28a2db..e97a41de354a 100644 --- a/tests/wpt/web-platform-tests/accname/description_test_case_665-manual.html +++ b/tests/wpt/web-platform-tests/accname/description_test_case_665-manual.html @@ -3,7 +3,6 @@ Description test case 665 - diff --git a/tests/wpt/web-platform-tests/accname/description_test_case_666-manual.html b/tests/wpt/web-platform-tests/accname/description_test_case_666-manual.html index 9681b89e98aa..378979ca7355 100644 --- a/tests/wpt/web-platform-tests/accname/description_test_case_666-manual.html +++ b/tests/wpt/web-platform-tests/accname/description_test_case_666-manual.html @@ -3,7 +3,6 @@ Description test case 666 - diff --git a/tests/wpt/web-platform-tests/accname/description_test_case_772-manual.html b/tests/wpt/web-platform-tests/accname/description_test_case_772-manual.html index 03d46cbe3b38..efc58686ce6b 100644 --- a/tests/wpt/web-platform-tests/accname/description_test_case_772-manual.html +++ b/tests/wpt/web-platform-tests/accname/description_test_case_772-manual.html @@ -3,7 +3,6 @@ Description test case 772 - diff --git a/tests/wpt/web-platform-tests/accname/description_test_case_773-manual.html b/tests/wpt/web-platform-tests/accname/description_test_case_773-manual.html index 727a8fe5a7de..ea004cffee06 100644 --- a/tests/wpt/web-platform-tests/accname/description_test_case_773-manual.html +++ b/tests/wpt/web-platform-tests/accname/description_test_case_773-manual.html @@ -3,7 +3,6 @@ Description test case 773 - diff --git a/tests/wpt/web-platform-tests/accname/description_test_case_774-manual.html b/tests/wpt/web-platform-tests/accname/description_test_case_774-manual.html index 51f9380e4090..6fafc81be391 100644 --- a/tests/wpt/web-platform-tests/accname/description_test_case_774-manual.html +++ b/tests/wpt/web-platform-tests/accname/description_test_case_774-manual.html @@ -3,7 +3,6 @@ Description test case 774 - diff --git a/tests/wpt/web-platform-tests/accname/description_test_case_838-manual.html b/tests/wpt/web-platform-tests/accname/description_test_case_838-manual.html index 99c49d9cbea3..df4210a77046 100644 --- a/tests/wpt/web-platform-tests/accname/description_test_case_838-manual.html +++ b/tests/wpt/web-platform-tests/accname/description_test_case_838-manual.html @@ -3,7 +3,6 @@ Description test case 838 - diff --git a/tests/wpt/web-platform-tests/accname/description_test_case_broken_reference-manual.html b/tests/wpt/web-platform-tests/accname/description_test_case_broken_reference-manual.html index c44b0a598a28..724849620124 100644 --- a/tests/wpt/web-platform-tests/accname/description_test_case_broken_reference-manual.html +++ b/tests/wpt/web-platform-tests/accname/description_test_case_broken_reference-manual.html @@ -3,7 +3,6 @@ Description test case broken reference - diff --git a/tests/wpt/web-platform-tests/accname/description_test_case_one_valid_reference-manual.html b/tests/wpt/web-platform-tests/accname/description_test_case_one_valid_reference-manual.html index a998aae79600..bce5ce6cb7f2 100644 --- a/tests/wpt/web-platform-tests/accname/description_test_case_one_valid_reference-manual.html +++ b/tests/wpt/web-platform-tests/accname/description_test_case_one_valid_reference-manual.html @@ -3,7 +3,6 @@ Description test case one valid reference - diff --git a/tests/wpt/web-platform-tests/accname/description_title-same-element-manual.html b/tests/wpt/web-platform-tests/accname/description_title-same-element-manual.html index fe8cd37c703a..8c926e34c845 100644 --- a/tests/wpt/web-platform-tests/accname/description_title-same-element-manual.html +++ b/tests/wpt/web-platform-tests/accname/description_title-same-element-manual.html @@ -3,7 +3,6 @@ Description title-same-element - diff --git a/tests/wpt/web-platform-tests/accname/name_1.0_combobox-focusable-alternative-manual.html b/tests/wpt/web-platform-tests/accname/name_1.0_combobox-focusable-alternative-manual.html index 000d3f6374fb..454be9e5e36a 100644 --- a/tests/wpt/web-platform-tests/accname/name_1.0_combobox-focusable-alternative-manual.html +++ b/tests/wpt/web-platform-tests/accname/name_1.0_combobox-focusable-alternative-manual.html @@ -3,7 +3,6 @@ Name 1.0 combobox-focusable-alternative - diff --git a/tests/wpt/web-platform-tests/accname/name_1.0_combobox-focusable-manual.html b/tests/wpt/web-platform-tests/accname/name_1.0_combobox-focusable-manual.html index abc53273b7c5..bb7a03121e85 100644 --- a/tests/wpt/web-platform-tests/accname/name_1.0_combobox-focusable-manual.html +++ b/tests/wpt/web-platform-tests/accname/name_1.0_combobox-focusable-manual.html @@ -3,7 +3,6 @@ Name 1.0 combobox-focusable - diff --git a/tests/wpt/web-platform-tests/accname/name_checkbox-label-embedded-combobox-manual.html b/tests/wpt/web-platform-tests/accname/name_checkbox-label-embedded-combobox-manual.html index 2797514bd7f4..24cbb7067121 100644 --- a/tests/wpt/web-platform-tests/accname/name_checkbox-label-embedded-combobox-manual.html +++ b/tests/wpt/web-platform-tests/accname/name_checkbox-label-embedded-combobox-manual.html @@ -3,7 +3,6 @@ Name checkbox-label-embedded-combobox - diff --git a/tests/wpt/web-platform-tests/accname/name_checkbox-label-embedded-listbox-manual.html b/tests/wpt/web-platform-tests/accname/name_checkbox-label-embedded-listbox-manual.html index ca28c177c404..a7bbe4c1928c 100644 --- a/tests/wpt/web-platform-tests/accname/name_checkbox-label-embedded-listbox-manual.html +++ b/tests/wpt/web-platform-tests/accname/name_checkbox-label-embedded-listbox-manual.html @@ -3,7 +3,6 @@ Name checkbox-label-embedded-listbox - diff --git a/tests/wpt/web-platform-tests/accname/name_checkbox-label-embedded-menu-manual.html b/tests/wpt/web-platform-tests/accname/name_checkbox-label-embedded-menu-manual.html index f838f2426cfe..1c18b9853289 100644 --- a/tests/wpt/web-platform-tests/accname/name_checkbox-label-embedded-menu-manual.html +++ b/tests/wpt/web-platform-tests/accname/name_checkbox-label-embedded-menu-manual.html @@ -3,7 +3,6 @@ Name checkbox-label-embedded-menu - diff --git a/tests/wpt/web-platform-tests/accname/name_checkbox-label-embedded-select-manual.html b/tests/wpt/web-platform-tests/accname/name_checkbox-label-embedded-select-manual.html index 52a5ca80bbb0..06c41e0b5dae 100644 --- a/tests/wpt/web-platform-tests/accname/name_checkbox-label-embedded-select-manual.html +++ b/tests/wpt/web-platform-tests/accname/name_checkbox-label-embedded-select-manual.html @@ -3,7 +3,6 @@ Name checkbox-label-embedded-select - diff --git a/tests/wpt/web-platform-tests/accname/name_checkbox-label-embedded-slider-manual.html b/tests/wpt/web-platform-tests/accname/name_checkbox-label-embedded-slider-manual.html index 520e4a45f871..48741d3c0fd8 100644 --- a/tests/wpt/web-platform-tests/accname/name_checkbox-label-embedded-slider-manual.html +++ b/tests/wpt/web-platform-tests/accname/name_checkbox-label-embedded-slider-manual.html @@ -3,7 +3,6 @@ Name checkbox-label-embedded-slider - diff --git a/tests/wpt/web-platform-tests/accname/name_checkbox-label-embedded-spinbutton-manual.html b/tests/wpt/web-platform-tests/accname/name_checkbox-label-embedded-spinbutton-manual.html index bf47b1d912c2..d5cf7a55bf37 100644 --- a/tests/wpt/web-platform-tests/accname/name_checkbox-label-embedded-spinbutton-manual.html +++ b/tests/wpt/web-platform-tests/accname/name_checkbox-label-embedded-spinbutton-manual.html @@ -3,7 +3,6 @@ Name checkbox-label-embedded-spinbutton - diff --git a/tests/wpt/web-platform-tests/accname/name_checkbox-label-embedded-textbox-manual.html b/tests/wpt/web-platform-tests/accname/name_checkbox-label-embedded-textbox-manual.html index 8b0f529f32e3..2d8642b7cca4 100644 --- a/tests/wpt/web-platform-tests/accname/name_checkbox-label-embedded-textbox-manual.html +++ b/tests/wpt/web-platform-tests/accname/name_checkbox-label-embedded-textbox-manual.html @@ -3,7 +3,6 @@ Name checkbox-label-embedded-textbox - diff --git a/tests/wpt/web-platform-tests/accname/name_checkbox-label-multiple-label-alternative-manual.html b/tests/wpt/web-platform-tests/accname/name_checkbox-label-multiple-label-alternative-manual.html index 34bfd02b2926..9f446aaa667e 100644 --- a/tests/wpt/web-platform-tests/accname/name_checkbox-label-multiple-label-alternative-manual.html +++ b/tests/wpt/web-platform-tests/accname/name_checkbox-label-multiple-label-alternative-manual.html @@ -3,7 +3,6 @@ Name checkbox-label-multiple-label-alternative - diff --git a/tests/wpt/web-platform-tests/accname/name_checkbox-label-multiple-label-manual.html b/tests/wpt/web-platform-tests/accname/name_checkbox-label-multiple-label-manual.html index 37486e1f9506..54c218c41c4d 100644 --- a/tests/wpt/web-platform-tests/accname/name_checkbox-label-multiple-label-manual.html +++ b/tests/wpt/web-platform-tests/accname/name_checkbox-label-multiple-label-manual.html @@ -3,7 +3,6 @@ Name checkbox-label-multiple-label - diff --git a/tests/wpt/web-platform-tests/accname/name_checkbox-title-manual.html b/tests/wpt/web-platform-tests/accname/name_checkbox-title-manual.html index b5b9a5ea3e52..83b5a8c4d112 100644 --- a/tests/wpt/web-platform-tests/accname/name_checkbox-title-manual.html +++ b/tests/wpt/web-platform-tests/accname/name_checkbox-title-manual.html @@ -3,7 +3,6 @@ Name checkbox-title - diff --git a/tests/wpt/web-platform-tests/accname/name_file-label-embedded-combobox-manual.html b/tests/wpt/web-platform-tests/accname/name_file-label-embedded-combobox-manual.html index a2799324e1b2..06adca72fcac 100644 --- a/tests/wpt/web-platform-tests/accname/name_file-label-embedded-combobox-manual.html +++ b/tests/wpt/web-platform-tests/accname/name_file-label-embedded-combobox-manual.html @@ -3,7 +3,6 @@ Name file-label-embedded-combobox - diff --git a/tests/wpt/web-platform-tests/accname/name_file-label-embedded-menu-manual.html b/tests/wpt/web-platform-tests/accname/name_file-label-embedded-menu-manual.html index 0a88e4d4b9d9..de6bcbaffebd 100644 --- a/tests/wpt/web-platform-tests/accname/name_file-label-embedded-menu-manual.html +++ b/tests/wpt/web-platform-tests/accname/name_file-label-embedded-menu-manual.html @@ -3,7 +3,6 @@ Name file-label-embedded-menu - diff --git a/tests/wpt/web-platform-tests/accname/name_file-label-embedded-select-manual.html b/tests/wpt/web-platform-tests/accname/name_file-label-embedded-select-manual.html index 7142c764a182..117e96cea66e 100644 --- a/tests/wpt/web-platform-tests/accname/name_file-label-embedded-select-manual.html +++ b/tests/wpt/web-platform-tests/accname/name_file-label-embedded-select-manual.html @@ -3,7 +3,6 @@ Name file-label-embedded-select - diff --git a/tests/wpt/web-platform-tests/accname/name_file-label-embedded-slider-manual.html b/tests/wpt/web-platform-tests/accname/name_file-label-embedded-slider-manual.html index de08bbcc1060..22a9057f95b9 100644 --- a/tests/wpt/web-platform-tests/accname/name_file-label-embedded-slider-manual.html +++ b/tests/wpt/web-platform-tests/accname/name_file-label-embedded-slider-manual.html @@ -3,7 +3,6 @@ Name file-label-embedded-slider - diff --git a/tests/wpt/web-platform-tests/accname/name_file-label-embedded-spinbutton-manual.html b/tests/wpt/web-platform-tests/accname/name_file-label-embedded-spinbutton-manual.html index 67934a329e17..1432e2fd2427 100644 --- a/tests/wpt/web-platform-tests/accname/name_file-label-embedded-spinbutton-manual.html +++ b/tests/wpt/web-platform-tests/accname/name_file-label-embedded-spinbutton-manual.html @@ -3,7 +3,6 @@ Name file-label-embedded-spinbutton - diff --git a/tests/wpt/web-platform-tests/accname/name_file-label-inline-block-elements-manual.html b/tests/wpt/web-platform-tests/accname/name_file-label-inline-block-elements-manual.html index 74f2b7b71896..c2c16591119b 100644 --- a/tests/wpt/web-platform-tests/accname/name_file-label-inline-block-elements-manual.html +++ b/tests/wpt/web-platform-tests/accname/name_file-label-inline-block-elements-manual.html @@ -3,7 +3,6 @@ Name file-label-inline-block-elements - diff --git a/tests/wpt/web-platform-tests/accname/name_file-label-inline-block-styles-manual.html b/tests/wpt/web-platform-tests/accname/name_file-label-inline-block-styles-manual.html index 80c2d98bcd4c..ecf6ed1bb9f9 100644 --- a/tests/wpt/web-platform-tests/accname/name_file-label-inline-block-styles-manual.html +++ b/tests/wpt/web-platform-tests/accname/name_file-label-inline-block-styles-manual.html @@ -3,7 +3,6 @@ Name file-label-inline-block-styles - diff --git a/tests/wpt/web-platform-tests/accname/name_file-label-inline-hidden-elements-manual.html b/tests/wpt/web-platform-tests/accname/name_file-label-inline-hidden-elements-manual.html index 2253f880bbe5..c982b42c16e3 100644 --- a/tests/wpt/web-platform-tests/accname/name_file-label-inline-hidden-elements-manual.html +++ b/tests/wpt/web-platform-tests/accname/name_file-label-inline-hidden-elements-manual.html @@ -3,7 +3,6 @@ Name file-label-inline-hidden-elements - diff --git a/tests/wpt/web-platform-tests/accname/name_file-label-owned-combobox-manual.html b/tests/wpt/web-platform-tests/accname/name_file-label-owned-combobox-manual.html index 287a7ee23dd9..79a69177e320 100644 --- a/tests/wpt/web-platform-tests/accname/name_file-label-owned-combobox-manual.html +++ b/tests/wpt/web-platform-tests/accname/name_file-label-owned-combobox-manual.html @@ -3,7 +3,6 @@ Name file-label-owned-combobox - diff --git a/tests/wpt/web-platform-tests/accname/name_file-label-owned-combobox-owned-listbox-manual.html b/tests/wpt/web-platform-tests/accname/name_file-label-owned-combobox-owned-listbox-manual.html index c8de748de3d9..4bbc6f3613d2 100644 --- a/tests/wpt/web-platform-tests/accname/name_file-label-owned-combobox-owned-listbox-manual.html +++ b/tests/wpt/web-platform-tests/accname/name_file-label-owned-combobox-owned-listbox-manual.html @@ -3,7 +3,6 @@ Name file-label-owned-combobox-owned-listbox - diff --git a/tests/wpt/web-platform-tests/accname/name_file-title-manual.html b/tests/wpt/web-platform-tests/accname/name_file-title-manual.html index 5eae799d78d8..77b7bf68bc66 100644 --- a/tests/wpt/web-platform-tests/accname/name_file-title-manual.html +++ b/tests/wpt/web-platform-tests/accname/name_file-title-manual.html @@ -3,7 +3,6 @@ Name file-title - diff --git a/tests/wpt/web-platform-tests/accname/name_from_content-manual.html b/tests/wpt/web-platform-tests/accname/name_from_content-manual.html index 832652c2277f..f7e2491d3a27 100644 --- a/tests/wpt/web-platform-tests/accname/name_from_content-manual.html +++ b/tests/wpt/web-platform-tests/accname/name_from_content-manual.html @@ -3,7 +3,6 @@ Name from content - @@ -73,7 +72,7 @@ Zambino the weird. - (QED) + (QED) diff --git a/tests/wpt/web-platform-tests/accname/name_from_content_of_label-manual.html b/tests/wpt/web-platform-tests/accname/name_from_content_of_label-manual.html index 1ceb4ab4dc1b..3eb5b779267b 100644 --- a/tests/wpt/web-platform-tests/accname/name_from_content_of_label-manual.html +++ b/tests/wpt/web-platform-tests/accname/name_from_content_of_label-manual.html @@ -3,7 +3,6 @@ Name from content of label - @@ -74,7 +73,7 @@ Zambinothe weird. - (QED) + (QED)
diff --git a/tests/wpt/web-platform-tests/accname/name_from_content_of_labelledby_element-manual.html b/tests/wpt/web-platform-tests/accname/name_from_content_of_labelledby_element-manual.html index ebb0946a5ce6..a60a8c0a0e0b 100644 --- a/tests/wpt/web-platform-tests/accname/name_from_content_of_labelledby_element-manual.html +++ b/tests/wpt/web-platform-tests/accname/name_from_content_of_labelledby_element-manual.html @@ -3,7 +3,6 @@ Name from content of labelledby element - @@ -74,7 +73,7 @@ Zambinothe weird. - (QED) + (QED)
diff --git a/tests/wpt/web-platform-tests/accname/name_from_content_of_labelledby_elements_one_of_which_is_hidden-manual.html b/tests/wpt/web-platform-tests/accname/name_from_content_of_labelledby_elements_one_of_which_is_hidden-manual.html index 348d56224536..879393037e54 100644 --- a/tests/wpt/web-platform-tests/accname/name_from_content_of_labelledby_elements_one_of_which_is_hidden-manual.html +++ b/tests/wpt/web-platform-tests/accname/name_from_content_of_labelledby_elements_one_of_which_is_hidden-manual.html @@ -3,7 +3,6 @@ Name from content of labelledby elements one of which is hidden - @@ -83,7 +82,7 @@ Zambinothe weird. - (QED) + (QED)
diff --git a/tests/wpt/web-platform-tests/accname/name_heading-combobox-focusable-alternative-manual.html b/tests/wpt/web-platform-tests/accname/name_heading-combobox-focusable-alternative-manual.html index 2c7db17557bc..c1540b12bedc 100644 --- a/tests/wpt/web-platform-tests/accname/name_heading-combobox-focusable-alternative-manual.html +++ b/tests/wpt/web-platform-tests/accname/name_heading-combobox-focusable-alternative-manual.html @@ -3,7 +3,6 @@ Name heading-combobox-focusable-alternative - diff --git a/tests/wpt/web-platform-tests/accname/name_image-title-manual.html b/tests/wpt/web-platform-tests/accname/name_image-title-manual.html index 51ead2588940..43ce9be14e63 100644 --- a/tests/wpt/web-platform-tests/accname/name_image-title-manual.html +++ b/tests/wpt/web-platform-tests/accname/name_image-title-manual.html @@ -3,7 +3,6 @@ Name image-title - diff --git a/tests/wpt/web-platform-tests/accname/name_link-mixed-content-manual.html b/tests/wpt/web-platform-tests/accname/name_link-mixed-content-manual.html index 9f8b92f971b5..f089ebde60cd 100644 --- a/tests/wpt/web-platform-tests/accname/name_link-mixed-content-manual.html +++ b/tests/wpt/web-platform-tests/accname/name_link-mixed-content-manual.html @@ -3,7 +3,6 @@ Name link-mixed-content - @@ -71,7 +70,7 @@
Zambinothe weird. - (QED) + (QED) diff --git a/tests/wpt/web-platform-tests/accname/name_link-with-label-manual.html b/tests/wpt/web-platform-tests/accname/name_link-with-label-manual.html index 18e82718b99c..e8f1e3f813fd 100644 --- a/tests/wpt/web-platform-tests/accname/name_link-with-label-manual.html +++ b/tests/wpt/web-platform-tests/accname/name_link-with-label-manual.html @@ -3,7 +3,6 @@ Name link-with-label - diff --git a/tests/wpt/web-platform-tests/accname/name_password-label-embedded-combobox-manual.html b/tests/wpt/web-platform-tests/accname/name_password-label-embedded-combobox-manual.html index b2762aa6ae7c..39c8005a719f 100644 --- a/tests/wpt/web-platform-tests/accname/name_password-label-embedded-combobox-manual.html +++ b/tests/wpt/web-platform-tests/accname/name_password-label-embedded-combobox-manual.html @@ -3,7 +3,6 @@ Name password-label-embedded-combobox - diff --git a/tests/wpt/web-platform-tests/accname/name_password-label-embedded-menu-manual.html b/tests/wpt/web-platform-tests/accname/name_password-label-embedded-menu-manual.html index 8ef9d8dd2f50..d6ad64966ad4 100644 --- a/tests/wpt/web-platform-tests/accname/name_password-label-embedded-menu-manual.html +++ b/tests/wpt/web-platform-tests/accname/name_password-label-embedded-menu-manual.html @@ -3,7 +3,6 @@ Name password-label-embedded-menu - diff --git a/tests/wpt/web-platform-tests/accname/name_password-label-embedded-select-manual.html b/tests/wpt/web-platform-tests/accname/name_password-label-embedded-select-manual.html index 36471160273b..f4b96e2cd199 100644 --- a/tests/wpt/web-platform-tests/accname/name_password-label-embedded-select-manual.html +++ b/tests/wpt/web-platform-tests/accname/name_password-label-embedded-select-manual.html @@ -3,7 +3,6 @@ Name password-label-embedded-select - diff --git a/tests/wpt/web-platform-tests/accname/name_password-label-embedded-slider-manual.html b/tests/wpt/web-platform-tests/accname/name_password-label-embedded-slider-manual.html index d5686a48c54c..7701b8b44e16 100644 --- a/tests/wpt/web-platform-tests/accname/name_password-label-embedded-slider-manual.html +++ b/tests/wpt/web-platform-tests/accname/name_password-label-embedded-slider-manual.html @@ -3,7 +3,6 @@ Name password-label-embedded-slider - diff --git a/tests/wpt/web-platform-tests/accname/name_password-label-embedded-spinbutton-manual.html b/tests/wpt/web-platform-tests/accname/name_password-label-embedded-spinbutton-manual.html index 73b0d664c78a..67cd55dc382d 100644 --- a/tests/wpt/web-platform-tests/accname/name_password-label-embedded-spinbutton-manual.html +++ b/tests/wpt/web-platform-tests/accname/name_password-label-embedded-spinbutton-manual.html @@ -3,7 +3,6 @@ Name password-label-embedded-spinbutton - diff --git a/tests/wpt/web-platform-tests/accname/name_password-title-manual.html b/tests/wpt/web-platform-tests/accname/name_password-title-manual.html index 2ea977fd2894..3f3eb416099b 100644 --- a/tests/wpt/web-platform-tests/accname/name_password-title-manual.html +++ b/tests/wpt/web-platform-tests/accname/name_password-title-manual.html @@ -3,7 +3,6 @@ Name password-title - diff --git a/tests/wpt/web-platform-tests/accname/name_radio-label-embedded-combobox-manual.html b/tests/wpt/web-platform-tests/accname/name_radio-label-embedded-combobox-manual.html index 72d7017c534b..3facb5e1b2cc 100644 --- a/tests/wpt/web-platform-tests/accname/name_radio-label-embedded-combobox-manual.html +++ b/tests/wpt/web-platform-tests/accname/name_radio-label-embedded-combobox-manual.html @@ -3,7 +3,6 @@ Name radio-label-embedded-combobox - diff --git a/tests/wpt/web-platform-tests/accname/name_radio-label-embedded-menu-manual.html b/tests/wpt/web-platform-tests/accname/name_radio-label-embedded-menu-manual.html index 8ca6d11c05d2..3752b1fcd63c 100644 --- a/tests/wpt/web-platform-tests/accname/name_radio-label-embedded-menu-manual.html +++ b/tests/wpt/web-platform-tests/accname/name_radio-label-embedded-menu-manual.html @@ -3,7 +3,6 @@ Name radio-label-embedded-menu - diff --git a/tests/wpt/web-platform-tests/accname/name_radio-label-embedded-select-manual.html b/tests/wpt/web-platform-tests/accname/name_radio-label-embedded-select-manual.html index 185d89329691..6f632f94cd03 100644 --- a/tests/wpt/web-platform-tests/accname/name_radio-label-embedded-select-manual.html +++ b/tests/wpt/web-platform-tests/accname/name_radio-label-embedded-select-manual.html @@ -3,7 +3,6 @@ Name radio-label-embedded-select - diff --git a/tests/wpt/web-platform-tests/accname/name_radio-label-embedded-slider-manual.html b/tests/wpt/web-platform-tests/accname/name_radio-label-embedded-slider-manual.html index aea5f8b85ce8..5c82a06bfb09 100644 --- a/tests/wpt/web-platform-tests/accname/name_radio-label-embedded-slider-manual.html +++ b/tests/wpt/web-platform-tests/accname/name_radio-label-embedded-slider-manual.html @@ -3,7 +3,6 @@ Name radio-label-embedded-slider - diff --git a/tests/wpt/web-platform-tests/accname/name_radio-label-embedded-spinbutton-manual.html b/tests/wpt/web-platform-tests/accname/name_radio-label-embedded-spinbutton-manual.html index af3fe8285ac2..ab4fdcce7f0c 100644 --- a/tests/wpt/web-platform-tests/accname/name_radio-label-embedded-spinbutton-manual.html +++ b/tests/wpt/web-platform-tests/accname/name_radio-label-embedded-spinbutton-manual.html @@ -3,7 +3,6 @@ Name radio-label-embedded-spinbutton - diff --git a/tests/wpt/web-platform-tests/accname/name_radio-title-manual.html b/tests/wpt/web-platform-tests/accname/name_radio-title-manual.html index aef42728a6c6..cb6f065e8f68 100644 --- a/tests/wpt/web-platform-tests/accname/name_radio-title-manual.html +++ b/tests/wpt/web-platform-tests/accname/name_radio-title-manual.html @@ -3,7 +3,6 @@ Name radio-title - diff --git a/tests/wpt/web-platform-tests/accname/name_test_case_539-manual.html b/tests/wpt/web-platform-tests/accname/name_test_case_539-manual.html index da1925241c93..659740b8872d 100644 --- a/tests/wpt/web-platform-tests/accname/name_test_case_539-manual.html +++ b/tests/wpt/web-platform-tests/accname/name_test_case_539-manual.html @@ -3,7 +3,6 @@ Name test case 539 - diff --git a/tests/wpt/web-platform-tests/accname/name_test_case_540-manual.html b/tests/wpt/web-platform-tests/accname/name_test_case_540-manual.html index 5fde86535bb3..c187c37ffc15 100644 --- a/tests/wpt/web-platform-tests/accname/name_test_case_540-manual.html +++ b/tests/wpt/web-platform-tests/accname/name_test_case_540-manual.html @@ -3,7 +3,6 @@ Name test case 540 - diff --git a/tests/wpt/web-platform-tests/accname/name_test_case_541-manual.html b/tests/wpt/web-platform-tests/accname/name_test_case_541-manual.html index 74b44b57de4f..19405449d31f 100644 --- a/tests/wpt/web-platform-tests/accname/name_test_case_541-manual.html +++ b/tests/wpt/web-platform-tests/accname/name_test_case_541-manual.html @@ -3,7 +3,6 @@ Name test case 541 - diff --git a/tests/wpt/web-platform-tests/accname/name_test_case_543-manual.html b/tests/wpt/web-platform-tests/accname/name_test_case_543-manual.html index 1759ffacdd8f..7908bf658ba7 100644 --- a/tests/wpt/web-platform-tests/accname/name_test_case_543-manual.html +++ b/tests/wpt/web-platform-tests/accname/name_test_case_543-manual.html @@ -3,7 +3,6 @@ Name test case 543 - diff --git a/tests/wpt/web-platform-tests/accname/name_test_case_544-manual.html b/tests/wpt/web-platform-tests/accname/name_test_case_544-manual.html index 267c9302f7d5..1b7ba3772ddd 100644 --- a/tests/wpt/web-platform-tests/accname/name_test_case_544-manual.html +++ b/tests/wpt/web-platform-tests/accname/name_test_case_544-manual.html @@ -3,7 +3,6 @@ Name test case 544 - diff --git a/tests/wpt/web-platform-tests/accname/name_test_case_545-manual.html b/tests/wpt/web-platform-tests/accname/name_test_case_545-manual.html index fda6fe1b50cc..19098046f439 100644 --- a/tests/wpt/web-platform-tests/accname/name_test_case_545-manual.html +++ b/tests/wpt/web-platform-tests/accname/name_test_case_545-manual.html @@ -3,7 +3,6 @@ Name test case 545 - diff --git a/tests/wpt/web-platform-tests/accname/name_test_case_546-manual.html b/tests/wpt/web-platform-tests/accname/name_test_case_546-manual.html index 6dd735b6219b..f40aa2f38ac1 100644 --- a/tests/wpt/web-platform-tests/accname/name_test_case_546-manual.html +++ b/tests/wpt/web-platform-tests/accname/name_test_case_546-manual.html @@ -3,7 +3,6 @@ Name test case 546 - diff --git a/tests/wpt/web-platform-tests/accname/name_test_case_547-manual.html b/tests/wpt/web-platform-tests/accname/name_test_case_547-manual.html index f80f7bb8a6fd..b7a977b12e95 100644 --- a/tests/wpt/web-platform-tests/accname/name_test_case_547-manual.html +++ b/tests/wpt/web-platform-tests/accname/name_test_case_547-manual.html @@ -3,7 +3,6 @@ Name test case 547 - diff --git a/tests/wpt/web-platform-tests/accname/name_test_case_548-manual.html b/tests/wpt/web-platform-tests/accname/name_test_case_548-manual.html index f5f962a47b9b..d63ff4a2f618 100644 --- a/tests/wpt/web-platform-tests/accname/name_test_case_548-manual.html +++ b/tests/wpt/web-platform-tests/accname/name_test_case_548-manual.html @@ -3,7 +3,6 @@ Name test case 548 - diff --git a/tests/wpt/web-platform-tests/accname/name_test_case_549-manual.html b/tests/wpt/web-platform-tests/accname/name_test_case_549-manual.html index 97839a4c6a8c..c729c1f51b12 100644 --- a/tests/wpt/web-platform-tests/accname/name_test_case_549-manual.html +++ b/tests/wpt/web-platform-tests/accname/name_test_case_549-manual.html @@ -3,7 +3,6 @@ Name test case 549 - diff --git a/tests/wpt/web-platform-tests/accname/name_test_case_550-manual.html b/tests/wpt/web-platform-tests/accname/name_test_case_550-manual.html index 70740219883b..de8a635caeca 100644 --- a/tests/wpt/web-platform-tests/accname/name_test_case_550-manual.html +++ b/tests/wpt/web-platform-tests/accname/name_test_case_550-manual.html @@ -3,7 +3,6 @@ Name test case 550 - diff --git a/tests/wpt/web-platform-tests/accname/name_test_case_551-manual.html b/tests/wpt/web-platform-tests/accname/name_test_case_551-manual.html index 2b55d07cb344..65e284f78065 100644 --- a/tests/wpt/web-platform-tests/accname/name_test_case_551-manual.html +++ b/tests/wpt/web-platform-tests/accname/name_test_case_551-manual.html @@ -3,7 +3,6 @@ Name test case 551 - diff --git a/tests/wpt/web-platform-tests/accname/name_test_case_552-manual.html b/tests/wpt/web-platform-tests/accname/name_test_case_552-manual.html index 0b0ed397a12e..a48aaa3165c5 100644 --- a/tests/wpt/web-platform-tests/accname/name_test_case_552-manual.html +++ b/tests/wpt/web-platform-tests/accname/name_test_case_552-manual.html @@ -3,7 +3,6 @@ Name test case 552 - diff --git a/tests/wpt/web-platform-tests/accname/name_test_case_553-manual.html b/tests/wpt/web-platform-tests/accname/name_test_case_553-manual.html index a7f67749f711..def83ed35950 100644 --- a/tests/wpt/web-platform-tests/accname/name_test_case_553-manual.html +++ b/tests/wpt/web-platform-tests/accname/name_test_case_553-manual.html @@ -3,7 +3,6 @@ Name test case 553 - diff --git a/tests/wpt/web-platform-tests/accname/name_test_case_556-manual.html b/tests/wpt/web-platform-tests/accname/name_test_case_556-manual.html index 244535845612..5923db21e2da 100644 --- a/tests/wpt/web-platform-tests/accname/name_test_case_556-manual.html +++ b/tests/wpt/web-platform-tests/accname/name_test_case_556-manual.html @@ -3,7 +3,6 @@ Name test case 556 - diff --git a/tests/wpt/web-platform-tests/accname/name_test_case_557-manual.html b/tests/wpt/web-platform-tests/accname/name_test_case_557-manual.html index 7d5d86748d29..1a81ffcb3d34 100644 --- a/tests/wpt/web-platform-tests/accname/name_test_case_557-manual.html +++ b/tests/wpt/web-platform-tests/accname/name_test_case_557-manual.html @@ -3,7 +3,6 @@ Name test case 557 - diff --git a/tests/wpt/web-platform-tests/accname/name_test_case_558-manual.html b/tests/wpt/web-platform-tests/accname/name_test_case_558-manual.html index 0a5c42d27ef2..3e5b448ba32f 100644 --- a/tests/wpt/web-platform-tests/accname/name_test_case_558-manual.html +++ b/tests/wpt/web-platform-tests/accname/name_test_case_558-manual.html @@ -3,7 +3,6 @@ Name test case 558 - diff --git a/tests/wpt/web-platform-tests/accname/name_test_case_559-manual.html b/tests/wpt/web-platform-tests/accname/name_test_case_559-manual.html index 61afa5552fee..00cc7d1d0e8a 100644 --- a/tests/wpt/web-platform-tests/accname/name_test_case_559-manual.html +++ b/tests/wpt/web-platform-tests/accname/name_test_case_559-manual.html @@ -3,7 +3,6 @@ Name test case 559 - diff --git a/tests/wpt/web-platform-tests/accname/name_test_case_560-manual.html b/tests/wpt/web-platform-tests/accname/name_test_case_560-manual.html index ada84849ed6f..05bf8d44b4ea 100644 --- a/tests/wpt/web-platform-tests/accname/name_test_case_560-manual.html +++ b/tests/wpt/web-platform-tests/accname/name_test_case_560-manual.html @@ -3,7 +3,6 @@ Name test case 560 - diff --git a/tests/wpt/web-platform-tests/accname/name_test_case_561-manual.html b/tests/wpt/web-platform-tests/accname/name_test_case_561-manual.html index c4b2bccd72ad..5131744c071a 100644 --- a/tests/wpt/web-platform-tests/accname/name_test_case_561-manual.html +++ b/tests/wpt/web-platform-tests/accname/name_test_case_561-manual.html @@ -3,7 +3,6 @@ Name test case 561 - diff --git a/tests/wpt/web-platform-tests/accname/name_test_case_562-manual.html b/tests/wpt/web-platform-tests/accname/name_test_case_562-manual.html index 941e3cd6e8fc..f718b35f5e4c 100644 --- a/tests/wpt/web-platform-tests/accname/name_test_case_562-manual.html +++ b/tests/wpt/web-platform-tests/accname/name_test_case_562-manual.html @@ -3,7 +3,6 @@ Name test case 562 - diff --git a/tests/wpt/web-platform-tests/accname/name_test_case_563-manual.html b/tests/wpt/web-platform-tests/accname/name_test_case_563-manual.html index 580f515d07b9..5214fb946db4 100644 --- a/tests/wpt/web-platform-tests/accname/name_test_case_563-manual.html +++ b/tests/wpt/web-platform-tests/accname/name_test_case_563-manual.html @@ -3,7 +3,6 @@ Name test case 563 - diff --git a/tests/wpt/web-platform-tests/accname/name_test_case_564-manual.html b/tests/wpt/web-platform-tests/accname/name_test_case_564-manual.html index 22c2a542a428..bac49adc4487 100644 --- a/tests/wpt/web-platform-tests/accname/name_test_case_564-manual.html +++ b/tests/wpt/web-platform-tests/accname/name_test_case_564-manual.html @@ -3,7 +3,6 @@ Name test case 564 - diff --git a/tests/wpt/web-platform-tests/accname/name_test_case_565-manual.html b/tests/wpt/web-platform-tests/accname/name_test_case_565-manual.html index 64f6320d331d..749d24d53d62 100644 --- a/tests/wpt/web-platform-tests/accname/name_test_case_565-manual.html +++ b/tests/wpt/web-platform-tests/accname/name_test_case_565-manual.html @@ -3,7 +3,6 @@ Name test case 565 - diff --git a/tests/wpt/web-platform-tests/accname/name_test_case_566-manual.html b/tests/wpt/web-platform-tests/accname/name_test_case_566-manual.html index 20189f31899b..5ffef66083c2 100644 --- a/tests/wpt/web-platform-tests/accname/name_test_case_566-manual.html +++ b/tests/wpt/web-platform-tests/accname/name_test_case_566-manual.html @@ -3,7 +3,6 @@ Name test case 566 - diff --git a/tests/wpt/web-platform-tests/accname/name_test_case_596-manual.html b/tests/wpt/web-platform-tests/accname/name_test_case_596-manual.html index 2ee191c375e4..821b96b300c3 100644 --- a/tests/wpt/web-platform-tests/accname/name_test_case_596-manual.html +++ b/tests/wpt/web-platform-tests/accname/name_test_case_596-manual.html @@ -3,7 +3,6 @@ Name test case 596 - diff --git a/tests/wpt/web-platform-tests/accname/name_test_case_597-manual.html b/tests/wpt/web-platform-tests/accname/name_test_case_597-manual.html index 4c4c527a661f..ed3e90f21010 100644 --- a/tests/wpt/web-platform-tests/accname/name_test_case_597-manual.html +++ b/tests/wpt/web-platform-tests/accname/name_test_case_597-manual.html @@ -3,7 +3,6 @@ Name test case 597 - diff --git a/tests/wpt/web-platform-tests/accname/name_test_case_598-manual.html b/tests/wpt/web-platform-tests/accname/name_test_case_598-manual.html index 9a150111b325..89a0f899a297 100644 --- a/tests/wpt/web-platform-tests/accname/name_test_case_598-manual.html +++ b/tests/wpt/web-platform-tests/accname/name_test_case_598-manual.html @@ -3,7 +3,6 @@ Name test case 598 - diff --git a/tests/wpt/web-platform-tests/accname/name_test_case_599-manual.html b/tests/wpt/web-platform-tests/accname/name_test_case_599-manual.html index 45041234ef81..9f186a63334e 100644 --- a/tests/wpt/web-platform-tests/accname/name_test_case_599-manual.html +++ b/tests/wpt/web-platform-tests/accname/name_test_case_599-manual.html @@ -3,7 +3,6 @@ Name test case 599 - diff --git a/tests/wpt/web-platform-tests/accname/name_test_case_600-manual.html b/tests/wpt/web-platform-tests/accname/name_test_case_600-manual.html index 8f572563a2f0..091c8cb357b3 100644 --- a/tests/wpt/web-platform-tests/accname/name_test_case_600-manual.html +++ b/tests/wpt/web-platform-tests/accname/name_test_case_600-manual.html @@ -3,7 +3,6 @@ Name test case 600 - diff --git a/tests/wpt/web-platform-tests/accname/name_test_case_601-manual.html b/tests/wpt/web-platform-tests/accname/name_test_case_601-manual.html index 4dadf8a05c22..8a87591f5a56 100644 --- a/tests/wpt/web-platform-tests/accname/name_test_case_601-manual.html +++ b/tests/wpt/web-platform-tests/accname/name_test_case_601-manual.html @@ -3,7 +3,6 @@ Name test case 601 - diff --git a/tests/wpt/web-platform-tests/accname/name_test_case_602-manual.html b/tests/wpt/web-platform-tests/accname/name_test_case_602-manual.html index 8f7f11a506c8..71da6f713d30 100644 --- a/tests/wpt/web-platform-tests/accname/name_test_case_602-manual.html +++ b/tests/wpt/web-platform-tests/accname/name_test_case_602-manual.html @@ -3,7 +3,6 @@ Name test case 602 - diff --git a/tests/wpt/web-platform-tests/accname/name_test_case_603-manual.html b/tests/wpt/web-platform-tests/accname/name_test_case_603-manual.html index c4e3d5e56977..5496f5043105 100644 --- a/tests/wpt/web-platform-tests/accname/name_test_case_603-manual.html +++ b/tests/wpt/web-platform-tests/accname/name_test_case_603-manual.html @@ -3,7 +3,6 @@ Name test case 603 - diff --git a/tests/wpt/web-platform-tests/accname/name_test_case_604-manual.html b/tests/wpt/web-platform-tests/accname/name_test_case_604-manual.html index c1847087ee52..db0831c6ebe0 100644 --- a/tests/wpt/web-platform-tests/accname/name_test_case_604-manual.html +++ b/tests/wpt/web-platform-tests/accname/name_test_case_604-manual.html @@ -3,7 +3,6 @@ Name test case 604 - diff --git a/tests/wpt/web-platform-tests/accname/name_test_case_605-manual.html b/tests/wpt/web-platform-tests/accname/name_test_case_605-manual.html index 5212857425eb..ec6c5a7d50fc 100644 --- a/tests/wpt/web-platform-tests/accname/name_test_case_605-manual.html +++ b/tests/wpt/web-platform-tests/accname/name_test_case_605-manual.html @@ -3,7 +3,6 @@ Name test case 605 - diff --git a/tests/wpt/web-platform-tests/accname/name_test_case_606-manual.html b/tests/wpt/web-platform-tests/accname/name_test_case_606-manual.html index 8c3c4610b1a9..8bcdefac2f18 100644 --- a/tests/wpt/web-platform-tests/accname/name_test_case_606-manual.html +++ b/tests/wpt/web-platform-tests/accname/name_test_case_606-manual.html @@ -3,7 +3,6 @@ Name test case 606 - diff --git a/tests/wpt/web-platform-tests/accname/name_test_case_607-manual.html b/tests/wpt/web-platform-tests/accname/name_test_case_607-manual.html index c68dd031dcfe..8737c8600cd6 100644 --- a/tests/wpt/web-platform-tests/accname/name_test_case_607-manual.html +++ b/tests/wpt/web-platform-tests/accname/name_test_case_607-manual.html @@ -3,7 +3,6 @@ Name test case 607 - diff --git a/tests/wpt/web-platform-tests/accname/name_test_case_608-manual.html b/tests/wpt/web-platform-tests/accname/name_test_case_608-manual.html index cf4423cb4f03..4380f400e6fb 100644 --- a/tests/wpt/web-platform-tests/accname/name_test_case_608-manual.html +++ b/tests/wpt/web-platform-tests/accname/name_test_case_608-manual.html @@ -3,7 +3,6 @@ Name test case 608 - diff --git a/tests/wpt/web-platform-tests/accname/name_test_case_609-manual.html b/tests/wpt/web-platform-tests/accname/name_test_case_609-manual.html index e7ce0ed57bee..d408962ae92a 100644 --- a/tests/wpt/web-platform-tests/accname/name_test_case_609-manual.html +++ b/tests/wpt/web-platform-tests/accname/name_test_case_609-manual.html @@ -3,7 +3,6 @@ Name test case 609 - diff --git a/tests/wpt/web-platform-tests/accname/name_test_case_610-manual.html b/tests/wpt/web-platform-tests/accname/name_test_case_610-manual.html index 3398e8437f76..fc8bcf2efa37 100644 --- a/tests/wpt/web-platform-tests/accname/name_test_case_610-manual.html +++ b/tests/wpt/web-platform-tests/accname/name_test_case_610-manual.html @@ -3,7 +3,6 @@ Name test case 610 - diff --git a/tests/wpt/web-platform-tests/accname/name_test_case_611-manual.html b/tests/wpt/web-platform-tests/accname/name_test_case_611-manual.html index 458dc3532ed2..2ea08602383a 100644 --- a/tests/wpt/web-platform-tests/accname/name_test_case_611-manual.html +++ b/tests/wpt/web-platform-tests/accname/name_test_case_611-manual.html @@ -3,7 +3,6 @@ Name test case 611 - diff --git a/tests/wpt/web-platform-tests/accname/name_test_case_612-manual.html b/tests/wpt/web-platform-tests/accname/name_test_case_612-manual.html index c3e448066748..9faa92250f39 100644 --- a/tests/wpt/web-platform-tests/accname/name_test_case_612-manual.html +++ b/tests/wpt/web-platform-tests/accname/name_test_case_612-manual.html @@ -3,7 +3,6 @@ Name test case 612 - diff --git a/tests/wpt/web-platform-tests/accname/name_test_case_613-manual.html b/tests/wpt/web-platform-tests/accname/name_test_case_613-manual.html index b83a7bdadc90..d8a27c372622 100644 --- a/tests/wpt/web-platform-tests/accname/name_test_case_613-manual.html +++ b/tests/wpt/web-platform-tests/accname/name_test_case_613-manual.html @@ -3,7 +3,6 @@ Name test case 613 - diff --git a/tests/wpt/web-platform-tests/accname/name_test_case_614-manual.html b/tests/wpt/web-platform-tests/accname/name_test_case_614-manual.html index 0f6beb6b57c4..b2323aaa1dfd 100644 --- a/tests/wpt/web-platform-tests/accname/name_test_case_614-manual.html +++ b/tests/wpt/web-platform-tests/accname/name_test_case_614-manual.html @@ -3,7 +3,6 @@ Name test case 614 - diff --git a/tests/wpt/web-platform-tests/accname/name_test_case_615-manual.html b/tests/wpt/web-platform-tests/accname/name_test_case_615-manual.html index ae06ecf21053..e1d53f4ac8ab 100644 --- a/tests/wpt/web-platform-tests/accname/name_test_case_615-manual.html +++ b/tests/wpt/web-platform-tests/accname/name_test_case_615-manual.html @@ -3,7 +3,6 @@ Name test case 615 - diff --git a/tests/wpt/web-platform-tests/accname/name_test_case_616-manual.html b/tests/wpt/web-platform-tests/accname/name_test_case_616-manual.html index 335e781dcbd1..310bfca4d165 100644 --- a/tests/wpt/web-platform-tests/accname/name_test_case_616-manual.html +++ b/tests/wpt/web-platform-tests/accname/name_test_case_616-manual.html @@ -3,7 +3,6 @@ Name test case 616 - diff --git a/tests/wpt/web-platform-tests/accname/name_test_case_617-manual.html b/tests/wpt/web-platform-tests/accname/name_test_case_617-manual.html index 2ba89d38e33b..292706330792 100644 --- a/tests/wpt/web-platform-tests/accname/name_test_case_617-manual.html +++ b/tests/wpt/web-platform-tests/accname/name_test_case_617-manual.html @@ -3,7 +3,6 @@ Name test case 617 - diff --git a/tests/wpt/web-platform-tests/accname/name_test_case_618-manual.html b/tests/wpt/web-platform-tests/accname/name_test_case_618-manual.html index 0af6532c57b4..be74e08629a0 100644 --- a/tests/wpt/web-platform-tests/accname/name_test_case_618-manual.html +++ b/tests/wpt/web-platform-tests/accname/name_test_case_618-manual.html @@ -3,7 +3,6 @@ Name test case 618 - diff --git a/tests/wpt/web-platform-tests/accname/name_test_case_619-manual.html b/tests/wpt/web-platform-tests/accname/name_test_case_619-manual.html index 154ad359f472..8bd082691596 100644 --- a/tests/wpt/web-platform-tests/accname/name_test_case_619-manual.html +++ b/tests/wpt/web-platform-tests/accname/name_test_case_619-manual.html @@ -3,7 +3,6 @@ Name test case 619 - diff --git a/tests/wpt/web-platform-tests/accname/name_test_case_620-manual.html b/tests/wpt/web-platform-tests/accname/name_test_case_620-manual.html index b1774e2c00dc..855d0cc848c1 100644 --- a/tests/wpt/web-platform-tests/accname/name_test_case_620-manual.html +++ b/tests/wpt/web-platform-tests/accname/name_test_case_620-manual.html @@ -3,7 +3,6 @@ Name test case 620 - diff --git a/tests/wpt/web-platform-tests/accname/name_test_case_621-manual.html b/tests/wpt/web-platform-tests/accname/name_test_case_621-manual.html index 8fb303bfb402..bb5780ad2b0a 100644 --- a/tests/wpt/web-platform-tests/accname/name_test_case_621-manual.html +++ b/tests/wpt/web-platform-tests/accname/name_test_case_621-manual.html @@ -3,7 +3,6 @@ Name test case 621 - diff --git a/tests/wpt/web-platform-tests/accname/name_test_case_659-manual.html b/tests/wpt/web-platform-tests/accname/name_test_case_659-manual.html index 97d84e5c92d5..1332c30c4929 100644 --- a/tests/wpt/web-platform-tests/accname/name_test_case_659-manual.html +++ b/tests/wpt/web-platform-tests/accname/name_test_case_659-manual.html @@ -3,7 +3,6 @@ Name test case 659 - diff --git a/tests/wpt/web-platform-tests/accname/name_test_case_660-manual.html b/tests/wpt/web-platform-tests/accname/name_test_case_660-manual.html index 3cbd92a0adfc..66b36635d940 100644 --- a/tests/wpt/web-platform-tests/accname/name_test_case_660-manual.html +++ b/tests/wpt/web-platform-tests/accname/name_test_case_660-manual.html @@ -3,7 +3,6 @@ Name test case 660 - diff --git a/tests/wpt/web-platform-tests/accname/name_test_case_661-manual.html b/tests/wpt/web-platform-tests/accname/name_test_case_661-manual.html index 4ed32ec07820..e1f25ba7c662 100644 --- a/tests/wpt/web-platform-tests/accname/name_test_case_661-manual.html +++ b/tests/wpt/web-platform-tests/accname/name_test_case_661-manual.html @@ -3,7 +3,6 @@ Name test case 661 - diff --git a/tests/wpt/web-platform-tests/accname/name_test_case_662-manual.html b/tests/wpt/web-platform-tests/accname/name_test_case_662-manual.html index 15e706c8c860..4d69b0f1b57d 100644 --- a/tests/wpt/web-platform-tests/accname/name_test_case_662-manual.html +++ b/tests/wpt/web-platform-tests/accname/name_test_case_662-manual.html @@ -3,7 +3,6 @@ Name test case 662 - diff --git a/tests/wpt/web-platform-tests/accname/name_test_case_663-manual.html b/tests/wpt/web-platform-tests/accname/name_test_case_663-manual.html deleted file mode 100644 index 883c1a9e38b5..000000000000 --- a/tests/wpt/web-platform-tests/accname/name_test_case_663-manual.html +++ /dev/null @@ -1,77 +0,0 @@ - - - - Name test case 663 - - - - - - - - - -

This test examines the ARIA properties for Name test case 663.

- - - - - -
-
-
- - diff --git a/tests/wpt/web-platform-tests/accname/name_test_case_663a-manual.html b/tests/wpt/web-platform-tests/accname/name_test_case_663a-manual.html index 1e71fd514c75..95ec2f857b7e 100644 --- a/tests/wpt/web-platform-tests/accname/name_test_case_663a-manual.html +++ b/tests/wpt/web-platform-tests/accname/name_test_case_663a-manual.html @@ -3,7 +3,6 @@ Name test case 663a - diff --git a/tests/wpt/web-platform-tests/accname/name_test_case_721-manual.html b/tests/wpt/web-platform-tests/accname/name_test_case_721-manual.html index 4a2d8c555b51..90e1911d15a7 100644 --- a/tests/wpt/web-platform-tests/accname/name_test_case_721-manual.html +++ b/tests/wpt/web-platform-tests/accname/name_test_case_721-manual.html @@ -3,7 +3,6 @@ Name test case 721 - diff --git a/tests/wpt/web-platform-tests/accname/name_test_case_723-manual.html b/tests/wpt/web-platform-tests/accname/name_test_case_723-manual.html index 0d1535cb6cac..84cd65534fa0 100644 --- a/tests/wpt/web-platform-tests/accname/name_test_case_723-manual.html +++ b/tests/wpt/web-platform-tests/accname/name_test_case_723-manual.html @@ -3,7 +3,6 @@ Name test case 723 - diff --git a/tests/wpt/web-platform-tests/accname/name_test_case_724-manual.html b/tests/wpt/web-platform-tests/accname/name_test_case_724-manual.html index d69eda490b96..69d8d70f0eff 100644 --- a/tests/wpt/web-platform-tests/accname/name_test_case_724-manual.html +++ b/tests/wpt/web-platform-tests/accname/name_test_case_724-manual.html @@ -3,7 +3,6 @@ Name test case 724 - diff --git a/tests/wpt/web-platform-tests/accname/name_test_case_725-manual.html b/tests/wpt/web-platform-tests/accname/name_test_case_725-manual.html index 47bb9d5ff5a0..9d1b867122bd 100644 --- a/tests/wpt/web-platform-tests/accname/name_test_case_725-manual.html +++ b/tests/wpt/web-platform-tests/accname/name_test_case_725-manual.html @@ -3,7 +3,6 @@ Name test case 725 - diff --git a/tests/wpt/web-platform-tests/accname/name_test_case_726-manual.html b/tests/wpt/web-platform-tests/accname/name_test_case_726-manual.html index 45996d9095fc..0faf0f27d31e 100644 --- a/tests/wpt/web-platform-tests/accname/name_test_case_726-manual.html +++ b/tests/wpt/web-platform-tests/accname/name_test_case_726-manual.html @@ -3,7 +3,6 @@ Name test case 726 - diff --git a/tests/wpt/web-platform-tests/accname/name_test_case_727-manual.html b/tests/wpt/web-platform-tests/accname/name_test_case_727-manual.html index 2f7f589e9276..d009ae7fb383 100644 --- a/tests/wpt/web-platform-tests/accname/name_test_case_727-manual.html +++ b/tests/wpt/web-platform-tests/accname/name_test_case_727-manual.html @@ -3,7 +3,6 @@ Name test case 727 - diff --git a/tests/wpt/web-platform-tests/accname/name_test_case_728-manual.html b/tests/wpt/web-platform-tests/accname/name_test_case_728-manual.html index 0a5d003839a4..f6a14e749415 100644 --- a/tests/wpt/web-platform-tests/accname/name_test_case_728-manual.html +++ b/tests/wpt/web-platform-tests/accname/name_test_case_728-manual.html @@ -3,7 +3,6 @@ Name test case 728 - diff --git a/tests/wpt/web-platform-tests/accname/name_test_case_729-manual.html b/tests/wpt/web-platform-tests/accname/name_test_case_729-manual.html index a4a302ea49a2..f9b5e156f351 100644 --- a/tests/wpt/web-platform-tests/accname/name_test_case_729-manual.html +++ b/tests/wpt/web-platform-tests/accname/name_test_case_729-manual.html @@ -3,7 +3,6 @@ Name test case 729 - diff --git a/tests/wpt/web-platform-tests/accname/name_test_case_730-manual.html b/tests/wpt/web-platform-tests/accname/name_test_case_730-manual.html index 230c1998942f..b213840268d1 100644 --- a/tests/wpt/web-platform-tests/accname/name_test_case_730-manual.html +++ b/tests/wpt/web-platform-tests/accname/name_test_case_730-manual.html @@ -3,7 +3,6 @@ Name test case 730 - diff --git a/tests/wpt/web-platform-tests/accname/name_test_case_731-manual.html b/tests/wpt/web-platform-tests/accname/name_test_case_731-manual.html index 613bdc6f1064..50f4a5b2ebc7 100644 --- a/tests/wpt/web-platform-tests/accname/name_test_case_731-manual.html +++ b/tests/wpt/web-platform-tests/accname/name_test_case_731-manual.html @@ -3,7 +3,6 @@ Name test case 731 - diff --git a/tests/wpt/web-platform-tests/accname/name_test_case_733-manual.html b/tests/wpt/web-platform-tests/accname/name_test_case_733-manual.html index 494dc333cce6..a9d3aaa6706c 100644 --- a/tests/wpt/web-platform-tests/accname/name_test_case_733-manual.html +++ b/tests/wpt/web-platform-tests/accname/name_test_case_733-manual.html @@ -3,7 +3,6 @@ Name test case 733 - diff --git a/tests/wpt/web-platform-tests/accname/name_test_case_734-manual.html b/tests/wpt/web-platform-tests/accname/name_test_case_734-manual.html index 7924d2cda456..fbf5a0c3dd7a 100644 --- a/tests/wpt/web-platform-tests/accname/name_test_case_734-manual.html +++ b/tests/wpt/web-platform-tests/accname/name_test_case_734-manual.html @@ -3,7 +3,6 @@ Name test case 734 - diff --git a/tests/wpt/web-platform-tests/accname/name_test_case_735-manual.html b/tests/wpt/web-platform-tests/accname/name_test_case_735-manual.html index 72b557ca3234..955af0f10d2f 100644 --- a/tests/wpt/web-platform-tests/accname/name_test_case_735-manual.html +++ b/tests/wpt/web-platform-tests/accname/name_test_case_735-manual.html @@ -3,7 +3,6 @@ Name test case 735 - diff --git a/tests/wpt/web-platform-tests/accname/name_test_case_736-manual.html b/tests/wpt/web-platform-tests/accname/name_test_case_736-manual.html index e9dfd7853d2d..2518ff32bd6a 100644 --- a/tests/wpt/web-platform-tests/accname/name_test_case_736-manual.html +++ b/tests/wpt/web-platform-tests/accname/name_test_case_736-manual.html @@ -3,7 +3,6 @@ Name test case 736 - diff --git a/tests/wpt/web-platform-tests/accname/name_test_case_737-manual.html b/tests/wpt/web-platform-tests/accname/name_test_case_737-manual.html index 59c49305fb98..a550114b4fa0 100644 --- a/tests/wpt/web-platform-tests/accname/name_test_case_737-manual.html +++ b/tests/wpt/web-platform-tests/accname/name_test_case_737-manual.html @@ -3,7 +3,6 @@ Name test case 737 - diff --git a/tests/wpt/web-platform-tests/accname/name_test_case_738-manual.html b/tests/wpt/web-platform-tests/accname/name_test_case_738-manual.html index a462b03973fd..ddf6210a9ad0 100644 --- a/tests/wpt/web-platform-tests/accname/name_test_case_738-manual.html +++ b/tests/wpt/web-platform-tests/accname/name_test_case_738-manual.html @@ -3,7 +3,6 @@ Name test case 738 - diff --git a/tests/wpt/web-platform-tests/accname/name_test_case_739-manual.html b/tests/wpt/web-platform-tests/accname/name_test_case_739-manual.html index 3688cba8e028..241c0fbff024 100644 --- a/tests/wpt/web-platform-tests/accname/name_test_case_739-manual.html +++ b/tests/wpt/web-platform-tests/accname/name_test_case_739-manual.html @@ -3,7 +3,6 @@ Name test case 739 - diff --git a/tests/wpt/web-platform-tests/accname/name_test_case_740-manual.html b/tests/wpt/web-platform-tests/accname/name_test_case_740-manual.html index 716b1f9d23bf..f13ac6b4ad2b 100644 --- a/tests/wpt/web-platform-tests/accname/name_test_case_740-manual.html +++ b/tests/wpt/web-platform-tests/accname/name_test_case_740-manual.html @@ -3,7 +3,6 @@ Name test case 740 - diff --git a/tests/wpt/web-platform-tests/accname/name_test_case_741-manual.html b/tests/wpt/web-platform-tests/accname/name_test_case_741-manual.html index 6da7ff2d6f93..9b0b4bfef18e 100644 --- a/tests/wpt/web-platform-tests/accname/name_test_case_741-manual.html +++ b/tests/wpt/web-platform-tests/accname/name_test_case_741-manual.html @@ -3,7 +3,6 @@ Name test case 741 - diff --git a/tests/wpt/web-platform-tests/accname/name_test_case_742-manual.html b/tests/wpt/web-platform-tests/accname/name_test_case_742-manual.html index 80f9e274bc35..e3fa6ad1fefd 100644 --- a/tests/wpt/web-platform-tests/accname/name_test_case_742-manual.html +++ b/tests/wpt/web-platform-tests/accname/name_test_case_742-manual.html @@ -3,7 +3,6 @@ Name test case 742 - diff --git a/tests/wpt/web-platform-tests/accname/name_test_case_743-manual.html b/tests/wpt/web-platform-tests/accname/name_test_case_743-manual.html index 8df359cfc696..b226f00c7e0c 100644 --- a/tests/wpt/web-platform-tests/accname/name_test_case_743-manual.html +++ b/tests/wpt/web-platform-tests/accname/name_test_case_743-manual.html @@ -3,7 +3,6 @@ Name test case 743 - diff --git a/tests/wpt/web-platform-tests/accname/name_test_case_744-manual.html b/tests/wpt/web-platform-tests/accname/name_test_case_744-manual.html index 528cf71005e7..44a70f7c8eb6 100644 --- a/tests/wpt/web-platform-tests/accname/name_test_case_744-manual.html +++ b/tests/wpt/web-platform-tests/accname/name_test_case_744-manual.html @@ -3,7 +3,6 @@ Name test case 744 - diff --git a/tests/wpt/web-platform-tests/accname/name_test_case_745-manual.html b/tests/wpt/web-platform-tests/accname/name_test_case_745-manual.html index f25740059d1f..e54efda31c7c 100644 --- a/tests/wpt/web-platform-tests/accname/name_test_case_745-manual.html +++ b/tests/wpt/web-platform-tests/accname/name_test_case_745-manual.html @@ -3,7 +3,6 @@ Name test case 745 - diff --git a/tests/wpt/web-platform-tests/accname/name_test_case_746-manual.html b/tests/wpt/web-platform-tests/accname/name_test_case_746-manual.html index 0477908e9c5e..132fe3030234 100644 --- a/tests/wpt/web-platform-tests/accname/name_test_case_746-manual.html +++ b/tests/wpt/web-platform-tests/accname/name_test_case_746-manual.html @@ -3,7 +3,6 @@ Name test case 746 - diff --git a/tests/wpt/web-platform-tests/accname/name_test_case_747-manual.html b/tests/wpt/web-platform-tests/accname/name_test_case_747-manual.html index 015bd566fdec..be56f5b7f48a 100644 --- a/tests/wpt/web-platform-tests/accname/name_test_case_747-manual.html +++ b/tests/wpt/web-platform-tests/accname/name_test_case_747-manual.html @@ -3,7 +3,6 @@ Name test case 747 - diff --git a/tests/wpt/web-platform-tests/accname/name_test_case_748-manual.html b/tests/wpt/web-platform-tests/accname/name_test_case_748-manual.html index ddbed2c9a759..ad7581985b7a 100644 --- a/tests/wpt/web-platform-tests/accname/name_test_case_748-manual.html +++ b/tests/wpt/web-platform-tests/accname/name_test_case_748-manual.html @@ -3,7 +3,6 @@ Name test case 748 - diff --git a/tests/wpt/web-platform-tests/accname/name_test_case_749-manual.html b/tests/wpt/web-platform-tests/accname/name_test_case_749-manual.html index 0f542b347665..0ccaca7848a7 100644 --- a/tests/wpt/web-platform-tests/accname/name_test_case_749-manual.html +++ b/tests/wpt/web-platform-tests/accname/name_test_case_749-manual.html @@ -3,7 +3,6 @@ Name test case 749 - diff --git a/tests/wpt/web-platform-tests/accname/name_test_case_750-manual.html b/tests/wpt/web-platform-tests/accname/name_test_case_750-manual.html index 603a698f8a9d..19f12432040c 100644 --- a/tests/wpt/web-platform-tests/accname/name_test_case_750-manual.html +++ b/tests/wpt/web-platform-tests/accname/name_test_case_750-manual.html @@ -3,7 +3,6 @@ Name test case 750 - diff --git a/tests/wpt/web-platform-tests/accname/name_test_case_751-manual.html b/tests/wpt/web-platform-tests/accname/name_test_case_751-manual.html index 029638194559..8f44ef9e4205 100644 --- a/tests/wpt/web-platform-tests/accname/name_test_case_751-manual.html +++ b/tests/wpt/web-platform-tests/accname/name_test_case_751-manual.html @@ -3,7 +3,6 @@ Name test case 751 - diff --git a/tests/wpt/web-platform-tests/accname/name_test_case_752-manual.html b/tests/wpt/web-platform-tests/accname/name_test_case_752-manual.html index 52503e62397d..6d2593b3301c 100644 --- a/tests/wpt/web-platform-tests/accname/name_test_case_752-manual.html +++ b/tests/wpt/web-platform-tests/accname/name_test_case_752-manual.html @@ -3,7 +3,6 @@ Name test case 752 - diff --git a/tests/wpt/web-platform-tests/accname/name_test_case_753-manual.html b/tests/wpt/web-platform-tests/accname/name_test_case_753-manual.html index 8a1278bbe7fb..82ee27cc26be 100644 --- a/tests/wpt/web-platform-tests/accname/name_test_case_753-manual.html +++ b/tests/wpt/web-platform-tests/accname/name_test_case_753-manual.html @@ -3,7 +3,6 @@ Name test case 753 - diff --git a/tests/wpt/web-platform-tests/accname/name_test_case_754-manual.html b/tests/wpt/web-platform-tests/accname/name_test_case_754-manual.html index 41f06aaea766..06d56eef393c 100644 --- a/tests/wpt/web-platform-tests/accname/name_test_case_754-manual.html +++ b/tests/wpt/web-platform-tests/accname/name_test_case_754-manual.html @@ -3,7 +3,6 @@ Name test case 754 - diff --git a/tests/wpt/web-platform-tests/accname/name_test_case_755-manual.html b/tests/wpt/web-platform-tests/accname/name_test_case_755-manual.html index dd410b88e92a..e621db7517fc 100644 --- a/tests/wpt/web-platform-tests/accname/name_test_case_755-manual.html +++ b/tests/wpt/web-platform-tests/accname/name_test_case_755-manual.html @@ -3,7 +3,6 @@ Name test case 755 - diff --git a/tests/wpt/web-platform-tests/accname/name_test_case_756-manual.html b/tests/wpt/web-platform-tests/accname/name_test_case_756-manual.html index 600d75fe173a..70394d28a80c 100644 --- a/tests/wpt/web-platform-tests/accname/name_test_case_756-manual.html +++ b/tests/wpt/web-platform-tests/accname/name_test_case_756-manual.html @@ -3,7 +3,6 @@ Name test case 756 - diff --git a/tests/wpt/web-platform-tests/accname/name_test_case_757-manual.html b/tests/wpt/web-platform-tests/accname/name_test_case_757-manual.html index 993c4d16c16a..4e7fd81bcf7a 100644 --- a/tests/wpt/web-platform-tests/accname/name_test_case_757-manual.html +++ b/tests/wpt/web-platform-tests/accname/name_test_case_757-manual.html @@ -3,7 +3,6 @@ Name test case 757 - diff --git a/tests/wpt/web-platform-tests/accname/name_test_case_758-manual.html b/tests/wpt/web-platform-tests/accname/name_test_case_758-manual.html index 9ab6467a2814..0381f1b94734 100644 --- a/tests/wpt/web-platform-tests/accname/name_test_case_758-manual.html +++ b/tests/wpt/web-platform-tests/accname/name_test_case_758-manual.html @@ -3,7 +3,6 @@ Name test case 758 - diff --git a/tests/wpt/web-platform-tests/accname/name_test_case_759-manual.html b/tests/wpt/web-platform-tests/accname/name_test_case_759-manual.html index 159edc747287..a9b2d2fc6189 100644 --- a/tests/wpt/web-platform-tests/accname/name_test_case_759-manual.html +++ b/tests/wpt/web-platform-tests/accname/name_test_case_759-manual.html @@ -3,7 +3,6 @@ Name test case 759 - diff --git a/tests/wpt/web-platform-tests/accname/name_test_case_760-manual.html b/tests/wpt/web-platform-tests/accname/name_test_case_760-manual.html index 30d8a7e0e9e1..bab3c19ead52 100644 --- a/tests/wpt/web-platform-tests/accname/name_test_case_760-manual.html +++ b/tests/wpt/web-platform-tests/accname/name_test_case_760-manual.html @@ -3,7 +3,6 @@ Name test case 760 - diff --git a/tests/wpt/web-platform-tests/accname/name_test_case_761-manual.html b/tests/wpt/web-platform-tests/accname/name_test_case_761-manual.html index 3dedb942a4de..7848eea9b50c 100644 --- a/tests/wpt/web-platform-tests/accname/name_test_case_761-manual.html +++ b/tests/wpt/web-platform-tests/accname/name_test_case_761-manual.html @@ -3,7 +3,6 @@ Name test case 761 - diff --git a/tests/wpt/web-platform-tests/accname/name_test_case_762-manual.html b/tests/wpt/web-platform-tests/accname/name_test_case_762-manual.html index e131861d0c74..d0d04e3ce42e 100644 --- a/tests/wpt/web-platform-tests/accname/name_test_case_762-manual.html +++ b/tests/wpt/web-platform-tests/accname/name_test_case_762-manual.html @@ -3,7 +3,6 @@ Name test case 762 - diff --git a/tests/wpt/web-platform-tests/accname/name_text-label-embedded-combobox-manual.html b/tests/wpt/web-platform-tests/accname/name_text-label-embedded-combobox-manual.html index 7fde09c3ce8f..a32b1c2b529b 100644 --- a/tests/wpt/web-platform-tests/accname/name_text-label-embedded-combobox-manual.html +++ b/tests/wpt/web-platform-tests/accname/name_text-label-embedded-combobox-manual.html @@ -3,7 +3,6 @@ Name text-label-embedded-combobox - diff --git a/tests/wpt/web-platform-tests/accname/name_text-label-embedded-menu-manual.html b/tests/wpt/web-platform-tests/accname/name_text-label-embedded-menu-manual.html index 40b94fcc892c..d6fddc6f1c5b 100644 --- a/tests/wpt/web-platform-tests/accname/name_text-label-embedded-menu-manual.html +++ b/tests/wpt/web-platform-tests/accname/name_text-label-embedded-menu-manual.html @@ -3,7 +3,6 @@ Name text-label-embedded-menu - diff --git a/tests/wpt/web-platform-tests/accname/name_text-label-embedded-select-manual.html b/tests/wpt/web-platform-tests/accname/name_text-label-embedded-select-manual.html index e27a302e6116..6a0f6e10b860 100644 --- a/tests/wpt/web-platform-tests/accname/name_text-label-embedded-select-manual.html +++ b/tests/wpt/web-platform-tests/accname/name_text-label-embedded-select-manual.html @@ -3,7 +3,6 @@ Name text-label-embedded-select - diff --git a/tests/wpt/web-platform-tests/accname/name_text-label-embedded-slider-manual.html b/tests/wpt/web-platform-tests/accname/name_text-label-embedded-slider-manual.html index d65c1c104b66..caf91243fa05 100644 --- a/tests/wpt/web-platform-tests/accname/name_text-label-embedded-slider-manual.html +++ b/tests/wpt/web-platform-tests/accname/name_text-label-embedded-slider-manual.html @@ -3,7 +3,6 @@ Name text-label-embedded-slider - diff --git a/tests/wpt/web-platform-tests/accname/name_text-label-embedded-spinbutton-manual.html b/tests/wpt/web-platform-tests/accname/name_text-label-embedded-spinbutton-manual.html index e81e220eef94..8e1b1e21dd8e 100644 --- a/tests/wpt/web-platform-tests/accname/name_text-label-embedded-spinbutton-manual.html +++ b/tests/wpt/web-platform-tests/accname/name_text-label-embedded-spinbutton-manual.html @@ -3,7 +3,6 @@ Name text-label-embedded-spinbutton - diff --git a/tests/wpt/web-platform-tests/accname/name_text-title-manual.html b/tests/wpt/web-platform-tests/accname/name_text-title-manual.html index cc0b645e89a3..720a94cd7aeb 100644 --- a/tests/wpt/web-platform-tests/accname/name_text-title-manual.html +++ b/tests/wpt/web-platform-tests/accname/name_text-title-manual.html @@ -3,7 +3,6 @@ Name text-title - diff --git a/tests/wpt/web-platform-tests/acid/acid3/reference.sub.html b/tests/wpt/web-platform-tests/acid/acid3/reference.sub.html index 310961363bf4..974bee11e4d0 100755 --- a/tests/wpt/web-platform-tests/acid/acid3/reference.sub.html +++ b/tests/wpt/web-platform-tests/acid/acid3/reference.sub.html @@ -1,7 +1,7 @@ The Acid3 Test (Reference Rendering) - + + +

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

+
+ +
+ +
+
+
+
diff --git a/tests/wpt/web-platform-tests/css/CSS2/abspos/table-caption-passes-abspos-up-001.html b/tests/wpt/web-platform-tests/css/CSS2/abspos/table-caption-passes-abspos-up-001.html new file mode 100644 index 000000000000..51b0d6951bff --- /dev/null +++ b/tests/wpt/web-platform-tests/css/CSS2/abspos/table-caption-passes-abspos-up-001.html @@ -0,0 +1,35 @@ + + + + + + + + +Captions and abspos descendants + + + + +

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

+
+ + + +
+
+
+
diff --git a/tests/wpt/web-platform-tests/css/CSS2/floats-clear/adjoining-float-new-fc.html b/tests/wpt/web-platform-tests/css/CSS2/floats-clear/adjoining-float-new-fc.html new file mode 100644 index 000000000000..587bbf51b7da --- /dev/null +++ b/tests/wpt/web-platform-tests/css/CSS2/floats-clear/adjoining-float-new-fc.html @@ -0,0 +1,13 @@ + +New formatting context next to adjoining float + + + + +

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

+
+
+
+
+
+
diff --git a/tests/wpt/web-platform-tests/css/CSS2/floats-clear/clear-after-top-margin.html b/tests/wpt/web-platform-tests/css/CSS2/floats-clear/clear-after-top-margin.html new file mode 100644 index 000000000000..95b445657cc4 --- /dev/null +++ b/tests/wpt/web-platform-tests/css/CSS2/floats-clear/clear-after-top-margin.html @@ -0,0 +1,14 @@ + +Clearance inside block with top margin + + + + +

Test passes if there is a filled green square.

+
+ +
+
+
+
+
diff --git a/tests/wpt/web-platform-tests/css/CSS2/floats-clear/floats-143-ref.xht b/tests/wpt/web-platform-tests/css/CSS2/floats-clear/floats-143-ref.xht index 49d1fe5b8ff6..2fcdc134cacf 100644 --- a/tests/wpt/web-platform-tests/css/CSS2/floats-clear/floats-143-ref.xht +++ b/tests/wpt/web-platform-tests/css/CSS2/floats-clear/floats-143-ref.xht @@ -9,6 +9,8 @@ diff --git a/tests/wpt/web-platform-tests/css/CSS2/floats-clear/nested-clearance-new-formatting-context.html b/tests/wpt/web-platform-tests/css/CSS2/floats-clear/nested-clearance-new-formatting-context.html new file mode 100644 index 000000000000..5e43b2506708 --- /dev/null +++ b/tests/wpt/web-platform-tests/css/CSS2/floats-clear/nested-clearance-new-formatting-context.html @@ -0,0 +1,15 @@ + +Nested clearance on new formatting context + + + +

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

+
+
+
+
+
+
+
+
+
diff --git a/tests/wpt/web-platform-tests/css/CSS2/floats-clear/no-clearance-adjoining-opposite-float.html b/tests/wpt/web-platform-tests/css/CSS2/floats-clear/no-clearance-adjoining-opposite-float.html new file mode 100644 index 000000000000..01a457ee1fb6 --- /dev/null +++ b/tests/wpt/web-platform-tests/css/CSS2/floats-clear/no-clearance-adjoining-opposite-float.html @@ -0,0 +1,16 @@ + +No clearance due to large top margin that takes us past the float + + + + +

There should be nothing below.

+
+
+
+
+
+
+
+
+
diff --git a/tests/wpt/web-platform-tests/css/CSS2/floats-clear/no-clearance-due-to-large-margin-after-left-right.html b/tests/wpt/web-platform-tests/css/CSS2/floats-clear/no-clearance-due-to-large-margin-after-left-right.html new file mode 100644 index 000000000000..bc459d06cde5 --- /dev/null +++ b/tests/wpt/web-platform-tests/css/CSS2/floats-clear/no-clearance-due-to-large-margin-after-left-right.html @@ -0,0 +1,18 @@ + +No clearance due to large top margin inside clear:right inside clear:left that takes us past the floats + + + +

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

+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/tests/wpt/web-platform-tests/css/CSS2/floats-clear/no-clearance-due-to-large-margin.html b/tests/wpt/web-platform-tests/css/CSS2/floats-clear/no-clearance-due-to-large-margin.html new file mode 100644 index 000000000000..cabb1ac85043 --- /dev/null +++ b/tests/wpt/web-platform-tests/css/CSS2/floats-clear/no-clearance-due-to-large-margin.html @@ -0,0 +1,12 @@ + +No clearance due to large top margin that takes us past the float + + + +

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

+
+
+
+

+
+
diff --git a/tests/wpt/web-platform-tests/css/CSS2/floats-clear/second-float-inside-empty-cleared-block-after-margin.html b/tests/wpt/web-platform-tests/css/CSS2/floats-clear/second-float-inside-empty-cleared-block-after-margin.html new file mode 100644 index 000000000000..ee8bebc53b6b --- /dev/null +++ b/tests/wpt/web-platform-tests/css/CSS2/floats-clear/second-float-inside-empty-cleared-block-after-margin.html @@ -0,0 +1,14 @@ + +Float separated from float inside empty cleared block, margin before clearance + + + + +

Test passes if there is a filled green square.

+
+
+
+
+
+
+
diff --git a/tests/wpt/web-platform-tests/css/CSS2/floats-clear/second-float-inside-empty-cleared-block.html b/tests/wpt/web-platform-tests/css/CSS2/floats-clear/second-float-inside-empty-cleared-block.html new file mode 100644 index 000000000000..a383e9a6a21e --- /dev/null +++ b/tests/wpt/web-platform-tests/css/CSS2/floats-clear/second-float-inside-empty-cleared-block.html @@ -0,0 +1,14 @@ + +Float separated from float inside empty cleared block + + + + +

Test passes if there is a filled green square.

+
+
+
+
+
+
+
diff --git a/tests/wpt/web-platform-tests/css/CSS2/floats/floats-in-table-caption-001-ref.html b/tests/wpt/web-platform-tests/css/CSS2/floats/floats-in-table-caption-001-ref.html new file mode 100644 index 000000000000..bf02b993c455 --- /dev/null +++ b/tests/wpt/web-platform-tests/css/CSS2/floats/floats-in-table-caption-001-ref.html @@ -0,0 +1,18 @@ + + + + + + +Caption block containers are rendered same as normal block boxes + + +

+The words floated and inline should be legible below, with inline appearing just +to the right of the border surrounding floated. +

+ +
+ floated +
+inline diff --git a/tests/wpt/web-platform-tests/css/CSS2/floats/floats-in-table-caption-001.html b/tests/wpt/web-platform-tests/css/CSS2/floats/floats-in-table-caption-001.html new file mode 100644 index 000000000000..2bc985020a60 --- /dev/null +++ b/tests/wpt/web-platform-tests/css/CSS2/floats/floats-in-table-caption-001.html @@ -0,0 +1,25 @@ + + + + + + + + +Caption block containers are rendered same as normal block boxes + + +

+The words floated and inline should be legible below, with inline appearing just +to the right of the border surrounding floated. +

+ + + + +
+
+ floated +
+ inline +
diff --git a/tests/wpt/web-platform-tests/css/CSS2/floats/new-fc-beside-adjoining-float-2.html b/tests/wpt/web-platform-tests/css/CSS2/floats/new-fc-beside-adjoining-float-2.html new file mode 100644 index 000000000000..2d27a28a0533 --- /dev/null +++ b/tests/wpt/web-platform-tests/css/CSS2/floats/new-fc-beside-adjoining-float-2.html @@ -0,0 +1,16 @@ + +A new formatting context that fits beside an adjoining float, and thus pulls down the float with its top margin + + + + + +

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

+
+
+
+
+
+
+
+
diff --git a/tests/wpt/web-platform-tests/css/CSS2/floats/new-fc-separates-from-float-2.html b/tests/wpt/web-platform-tests/css/CSS2/floats/new-fc-separates-from-float-2.html new file mode 100644 index 000000000000..fd0deab18e0e --- /dev/null +++ b/tests/wpt/web-platform-tests/css/CSS2/floats/new-fc-separates-from-float-2.html @@ -0,0 +1,16 @@ + +A new formatting context that doesn't fit beside a float make the float non-adjoining + + + + + +

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

+
+
+
+
+
+
+
+
diff --git a/tests/wpt/web-platform-tests/css/CSS2/normal-flow/margin-collapsing-in-table-caption-001.html b/tests/wpt/web-platform-tests/css/CSS2/normal-flow/margin-collapsing-in-table-caption-001.html new file mode 100644 index 000000000000..c06d73724282 --- /dev/null +++ b/tests/wpt/web-platform-tests/css/CSS2/normal-flow/margin-collapsing-in-table-caption-001.html @@ -0,0 +1,26 @@ + + + + + + + + +Caption block containers are rendered same as normal block boxes + + + + +

Test passes if there is a filled green square.

+ + + +
+
+
+
diff --git a/tests/wpt/web-platform-tests/css/CSS2/normal-flow/margin-collapsing-in-table-caption-002.html b/tests/wpt/web-platform-tests/css/CSS2/normal-flow/margin-collapsing-in-table-caption-002.html new file mode 100644 index 000000000000..18903303e35a --- /dev/null +++ b/tests/wpt/web-platform-tests/css/CSS2/normal-flow/margin-collapsing-in-table-caption-002.html @@ -0,0 +1,26 @@ + + + + + + + + +Caption block containers are rendered same as normal block boxes + + + + +

Test passes if there is a filled green square.

+ + + +
+
+
+
+
diff --git a/tests/wpt/web-platform-tests/css/CSS2/syntax/characters-0080-009F-001-ref.xht b/tests/wpt/web-platform-tests/css/CSS2/syntax/characters-0080-009F-001-ref.xht index 7f285bcf8a6e..f3aeb9994ddf 100644 --- a/tests/wpt/web-platform-tests/css/CSS2/syntax/characters-0080-009F-001-ref.xht +++ b/tests/wpt/web-platform-tests/css/CSS2/syntax/characters-0080-009F-001-ref.xht @@ -4,7 +4,7 @@ CSS Test: Valid control characters in identifiers - + + + + +

+ All the words are aligned on the same baseline. +

+ + diff --git a/tests/wpt/web-platform-tests/css/CSS2/visudet/inline-block-baseline-001.xht b/tests/wpt/web-platform-tests/css/CSS2/visudet/inline-block-baseline-001.xht new file mode 100644 index 000000000000..f75682330096 --- /dev/null +++ b/tests/wpt/web-platform-tests/css/CSS2/visudet/inline-block-baseline-001.xht @@ -0,0 +1,28 @@ + + + + + + Vertical-align: baseline of an inline-block depends on 'overflow' + + + + + + + + + + + + + +

+ All the words are aligned on the same baseline. +

+ + diff --git a/tests/wpt/web-platform-tests/css/CSS2/visudet/inline-block-baseline-002.xht b/tests/wpt/web-platform-tests/css/CSS2/visudet/inline-block-baseline-002.xht new file mode 100644 index 000000000000..c1f6996622cc --- /dev/null +++ b/tests/wpt/web-platform-tests/css/CSS2/visudet/inline-block-baseline-002.xht @@ -0,0 +1,28 @@ + + + + + + Vertical-align: baseline of an inline-block depends on 'overflow' + + + + + + + + + + + + + +

+ All the  
words
are aligned on the same baseline. +

+ + diff --git a/tests/wpt/web-platform-tests/css/CSS2/visudet/inline-block-baseline-003.xht b/tests/wpt/web-platform-tests/css/CSS2/visudet/inline-block-baseline-003.xht new file mode 100644 index 000000000000..b499e09ceda3 --- /dev/null +++ b/tests/wpt/web-platform-tests/css/CSS2/visudet/inline-block-baseline-003.xht @@ -0,0 +1,30 @@ + + + + + + Vertical-align: baseline of an inline-block depends on 'overflow' + + + + + + + + + + + + + +

+ All the words are aligned on the same baseline. +

+ + diff --git a/tests/wpt/web-platform-tests/css/CSS2/visudet/inline-block-baseline-004.xht b/tests/wpt/web-platform-tests/css/CSS2/visudet/inline-block-baseline-004.xht new file mode 100644 index 000000000000..cdf6c558b4dd --- /dev/null +++ b/tests/wpt/web-platform-tests/css/CSS2/visudet/inline-block-baseline-004.xht @@ -0,0 +1,30 @@ + + + + + + Vertical-align: baseline of an inline-block depends on 'overflow' + + + + + + + + + + + + + +

+ All the words are aligned on the same baseline. +

+ + diff --git a/tests/wpt/web-platform-tests/css/CSS2/visudet/inline-block-baseline-005.xht b/tests/wpt/web-platform-tests/css/CSS2/visudet/inline-block-baseline-005.xht new file mode 100644 index 000000000000..1ef69f658212 --- /dev/null +++ b/tests/wpt/web-platform-tests/css/CSS2/visudet/inline-block-baseline-005.xht @@ -0,0 +1,30 @@ + + + + + + Vertical-align: baseline of an inline-block depends on 'overflow' + + + + + + + + + + + + + +

+ All the  
words
are aligned on the same baseline. +

+ + diff --git a/tests/wpt/web-platform-tests/css/CSS2/visudet/inline-block-baseline-006.xht b/tests/wpt/web-platform-tests/css/CSS2/visudet/inline-block-baseline-006.xht new file mode 100644 index 000000000000..9f9d051c76ef --- /dev/null +++ b/tests/wpt/web-platform-tests/css/CSS2/visudet/inline-block-baseline-006.xht @@ -0,0 +1,30 @@ + + + + + + Vertical-align: baseline of an inline-block depends on 'overflow' + + + + + + + + + + + + + +

+ All the  
words
are aligned on the same baseline. +

+ + diff --git a/tests/wpt/web-platform-tests/css/CSS2/visudet/inline-block-baseline-010-ref.xht b/tests/wpt/web-platform-tests/css/CSS2/visudet/inline-block-baseline-010-ref.xht new file mode 100644 index 000000000000..81ffd5e48bb9 --- /dev/null +++ b/tests/wpt/web-platform-tests/css/CSS2/visudet/inline-block-baseline-010-ref.xht @@ -0,0 +1,26 @@ + + + + + + Vertical-align: baseline of an inline-block depends on 'overflow' + + + + + + + + + +

+ A blue square + [blue square] + sits on the baseline. +

+ + diff --git a/tests/wpt/web-platform-tests/css/CSS2/visudet/inline-block-baseline-010.xht b/tests/wpt/web-platform-tests/css/CSS2/visudet/inline-block-baseline-010.xht new file mode 100644 index 000000000000..600cdd77a28a --- /dev/null +++ b/tests/wpt/web-platform-tests/css/CSS2/visudet/inline-block-baseline-010.xht @@ -0,0 +1,32 @@ + + + + + + Vertical-align: baseline of an inline-block depends on 'overflow' + + + + + + + + + + + + + +

+ A blue square + + sits on the baseline. +

+ + diff --git a/tests/wpt/web-platform-tests/css/CSS2/visudet/inline-block-baseline-011.xht b/tests/wpt/web-platform-tests/css/CSS2/visudet/inline-block-baseline-011.xht new file mode 100644 index 000000000000..157420d30eaf --- /dev/null +++ b/tests/wpt/web-platform-tests/css/CSS2/visudet/inline-block-baseline-011.xht @@ -0,0 +1,33 @@ + + + + + + Vertical-align: baseline of an inline-block depends on 'overflow' + + + + + + + + + + + + + +

+ A blue square + + sits on the baseline. +

+ + diff --git a/tests/wpt/web-platform-tests/css/CSS2/visudet/inline-block-baseline-012.xht b/tests/wpt/web-platform-tests/css/CSS2/visudet/inline-block-baseline-012.xht new file mode 100644 index 000000000000..ca37545c2fa6 --- /dev/null +++ b/tests/wpt/web-platform-tests/css/CSS2/visudet/inline-block-baseline-012.xht @@ -0,0 +1,32 @@ + + + + + + Vertical-align: baseline of an inline-block depends on 'overflow' + + + + + + + + + + + + + +

+ A blue square + + sits on the baseline. +

+ + diff --git a/tests/wpt/web-platform-tests/css/CSS2/visudet/inline-block-baseline-013.xht b/tests/wpt/web-platform-tests/css/CSS2/visudet/inline-block-baseline-013.xht new file mode 100644 index 000000000000..4dcaad4629d0 --- /dev/null +++ b/tests/wpt/web-platform-tests/css/CSS2/visudet/inline-block-baseline-013.xht @@ -0,0 +1,32 @@ + + + + + + Vertical-align: baseline of an inline-block depends on 'overflow' + + + + + + + + + + + + + +

+ A blue square + + sits on the baseline. +

+ + diff --git a/tests/wpt/web-platform-tests/css/CSS2/visudet/inline-block-baseline-014.xht b/tests/wpt/web-platform-tests/css/CSS2/visudet/inline-block-baseline-014.xht new file mode 100644 index 000000000000..b087caa47404 --- /dev/null +++ b/tests/wpt/web-platform-tests/css/CSS2/visudet/inline-block-baseline-014.xht @@ -0,0 +1,33 @@ + + + + + + Vertical-align: baseline of an inline-block depends on 'overflow' + + + + + + + + + + + + + +

+ A blue square + + sits on the baseline. +

+ + diff --git a/tests/wpt/web-platform-tests/css/CSS2/visufx/overflow-applies-to-001-ref.xht b/tests/wpt/web-platform-tests/css/CSS2/visufx/overflow-applies-to-001-ref.xht index 2a89acf56fb0..a8c54ab6d62a 100644 --- a/tests/wpt/web-platform-tests/css/CSS2/visufx/overflow-applies-to-001-ref.xht +++ b/tests/wpt/web-platform-tests/css/CSS2/visufx/overflow-applies-to-001-ref.xht @@ -3,7 +3,7 @@ CSS Reference File - + +
+ + diff --git a/tests/wpt/web-platform-tests/css/css-animations/animationevent-types.html b/tests/wpt/web-platform-tests/css/css-animations/animationevent-types.html index d1cb91448816..77f514a297bf 100644 --- a/tests/wpt/web-platform-tests/css/css-animations/animationevent-types.html +++ b/tests/wpt/web-platform-tests/css/css-animations/animationevent-types.html @@ -39,9 +39,11 @@ assert_idl_attribute(evt, "animationName", "animationstart has animationName property"); assert_idl_attribute(evt, "elapsedTime", "animationstart has elapsedTime property"); + assert_idl_attribute(evt, "pseudoElement", "animationstart has pseudoElement property"); assert_equals(evt.animationName, "sample", "animationstart has animationName value"); assert_equals(evt.elapsedTime, 1, "animationstart has elapsedTime value"); + assert_equals(evt.pseudoElement, "", "animaitonstart has correct pseudoElement value"); t.done(); }), true); @@ -53,9 +55,11 @@ assert_idl_attribute(evt, "animationName", "animationend has animationName property"); assert_idl_attribute(evt, "elapsedTime", "animationend has elapsedTime property"); + assert_idl_attribute(evt, "pseudoElement", "animationstart has pseudoElement property"); assert_equals(evt.animationName, "sample", "animationend has animationName value"); assert_equals(evt.elapsedTime, 4, "animationend has elapsedTime value"); + assert_equals(evt.pseudoElement, "", "animaitonstart has correct pseudoElement value"); t.done(); }), true); @@ -67,9 +71,11 @@ assert_idl_attribute(evt, "animationName", "animationiteration has animationName property"); assert_idl_attribute(evt, "elapsedTime", "animationiteration has elapsedTime property"); + assert_idl_attribute(evt, "pseudoElement", "animationstart has pseudoElement property"); assert_equals(evt.animationName, "sample", "animationiteration has animationName value"); assert_equals(evt.elapsedTime, 2, "animationiteration has elapsedTime value"); + assert_equals(evt.pseudoElement, "", "animaitonstart has correct pseudoElement value"); t.done(); }), true); diff --git a/tests/wpt/web-platform-tests/css/css-backgrounds/background-clip-content-box-001.html b/tests/wpt/web-platform-tests/css/css-backgrounds/background-clip-content-box-001.html index a3b8436a7ac0..f0777e88c222 100644 --- a/tests/wpt/web-platform-tests/css/css-backgrounds/background-clip-content-box-001.html +++ b/tests/wpt/web-platform-tests/css/css-backgrounds/background-clip-content-box-001.html @@ -1,36 +1,25 @@ - - - CSS Backgrounds and Borders Test: background-clip Reference - - - - - - - - - - -

Test pass if the green box has a 10px width blue edge

- -
-
- - +CSS Backgrounds and Borders Test: background-clip Reference + + + + +

Test passes if the orange box has a 10px width blue edge.

+ +
+
diff --git a/tests/wpt/web-platform-tests/css/css-backgrounds/background-rounded-image-clip.html b/tests/wpt/web-platform-tests/css/css-backgrounds/background-rounded-image-clip.html new file mode 100644 index 000000000000..1179ba549969 --- /dev/null +++ b/tests/wpt/web-platform-tests/css/css-backgrounds/background-rounded-image-clip.html @@ -0,0 +1,32 @@ + + +Background Clip Follows Rounded Corner + + + +
+
diff --git a/tests/wpt/web-platform-tests/css/css-backgrounds/box-shadow-syntax-001.html b/tests/wpt/web-platform-tests/css/css-backgrounds/box-shadow-syntax-001.html index a66c3b60c2b3..e7c83b3ec227 100644 --- a/tests/wpt/web-platform-tests/css/css-backgrounds/box-shadow-syntax-001.html +++ b/tests/wpt/web-platform-tests/css/css-backgrounds/box-shadow-syntax-001.html @@ -5,7 +5,7 @@ - + + + + diff --git a/tests/wpt/web-platform-tests/css/css-fill-stroke/OWNERS b/tests/wpt/web-platform-tests/css/css-fill-stroke/OWNERS new file mode 100644 index 000000000000..4d8fac449153 --- /dev/null +++ b/tests/wpt/web-platform-tests/css/css-fill-stroke/OWNERS @@ -0,0 +1 @@ +@tabatkins diff --git a/tests/wpt/web-platform-tests/css/css-filter/filtered-block-is-container-ref.html b/tests/wpt/web-platform-tests/css/css-filter/filtered-block-is-container-ref.html new file mode 100644 index 000000000000..fc9467f8717d --- /dev/null +++ b/tests/wpt/web-platform-tests/css/css-filter/filtered-block-is-container-ref.html @@ -0,0 +1,60 @@ + + +CSS Filter: Filtered block establishes a containing block reference. + + + + +
+
+
+
+
+
+
+
+
+
+ + + + + diff --git a/tests/wpt/web-platform-tests/css/css-filter/filtered-block-is-container.html b/tests/wpt/web-platform-tests/css/css-filter/filtered-block-is-container.html new file mode 100644 index 000000000000..6f99f364e638 --- /dev/null +++ b/tests/wpt/web-platform-tests/css/css-filter/filtered-block-is-container.html @@ -0,0 +1,61 @@ + + +CSS Filter: Filtered block establishes a containing block. + + + + + + +
+
+
+
+
+
+
+
+
+
+ + + + diff --git a/tests/wpt/web-platform-tests/css/css-filter/filtered-html-is-not-container-ref.html b/tests/wpt/web-platform-tests/css/css-filter/filtered-html-is-not-container-ref.html new file mode 100644 index 000000000000..c1f179a676a5 --- /dev/null +++ b/tests/wpt/web-platform-tests/css/css-filter/filtered-html-is-not-container-ref.html @@ -0,0 +1,38 @@ + + +CSS Filter: Filtered html element does not establish a containing block. + + + + +
+
+
+ + + + diff --git a/tests/wpt/web-platform-tests/css/css-filter/filtered-html-is-not-container.html b/tests/wpt/web-platform-tests/css/css-filter/filtered-html-is-not-container.html new file mode 100644 index 000000000000..8adc302f31cf --- /dev/null +++ b/tests/wpt/web-platform-tests/css/css-filter/filtered-html-is-not-container.html @@ -0,0 +1,43 @@ + + +CSS Filter: Filtered html element does not establish a containing block. + + + + + + +
+
+
+ + + + diff --git a/tests/wpt/web-platform-tests/css/css-filter/filtered-inline-is-container-ref.html b/tests/wpt/web-platform-tests/css/css-filter/filtered-inline-is-container-ref.html new file mode 100644 index 000000000000..aa6c12e33b5b --- /dev/null +++ b/tests/wpt/web-platform-tests/css/css-filter/filtered-inline-is-container-ref.html @@ -0,0 +1,57 @@ + + +CSS Filter: Filtered inline establishes a containing block. + + + + +
+
+
+
+ a +
+
+
+
+
+
+ + + + diff --git a/tests/wpt/web-platform-tests/css/css-filter/filtered-inline-is-container.html b/tests/wpt/web-platform-tests/css/css-filter/filtered-inline-is-container.html new file mode 100644 index 000000000000..56f1d91ff900 --- /dev/null +++ b/tests/wpt/web-platform-tests/css/css-filter/filtered-inline-is-container.html @@ -0,0 +1,60 @@ + + +CSS Filter: Filtered inline establishes a containing block reference. + + + + + + +
+
+
+
+ a +
+
+
+
+
+
+ + + + diff --git a/tests/wpt/web-platform-tests/css/css-flexbox/flexbox_first-letter.html b/tests/wpt/web-platform-tests/css/css-flexbox/flexbox_first-letter.html new file mode 100644 index 000000000000..dbbb03d524e1 --- /dev/null +++ b/tests/wpt/web-platform-tests/css/css-flexbox/flexbox_first-letter.html @@ -0,0 +1,20 @@ + +flexbox | first-letter + + + + + + + +
Triceratops
+ + diff --git a/tests/wpt/web-platform-tests/css/css-font-loading/OWNERS b/tests/wpt/web-platform-tests/css/css-font-loading/OWNERS new file mode 100644 index 000000000000..404d8d1153db --- /dev/null +++ b/tests/wpt/web-platform-tests/css/css-font-loading/OWNERS @@ -0,0 +1,2 @@ +@tabatkins +@svgeesus diff --git a/tests/wpt/web-platform-tests/css/css-fonts/alternates-order-ref.html b/tests/wpt/web-platform-tests/css/css-fonts/alternates-order-ref.html index ed53a2723b44..fdb477fe168c 100644 --- a/tests/wpt/web-platform-tests/css/css-fonts/alternates-order-ref.html +++ b/tests/wpt/web-platform-tests/css/css-fonts/alternates-order-ref.html @@ -19,6 +19,9 @@ font-feature-settings: "ss05"; /* crossed W */ } +/* tests that should NOT use the feature, due to case-sensitivity of font-feature-values names */ +#test2, #test3 { font-feature-settings: "ss05" off; } + diff --git a/tests/wpt/web-platform-tests/css/css-fonts/alternates-order.html b/tests/wpt/web-platform-tests/css/css-fonts/alternates-order.html index e5310b3aadf6..d47cbce32bb3 100644 --- a/tests/wpt/web-platform-tests/css/css-fonts/alternates-order.html +++ b/tests/wpt/web-platform-tests/css/css-fonts/alternates-order.html @@ -65,13 +65,13 @@ } #test2 { - /* testing case-insensitivity of styleset name */ + /* testing case-sensitivity of styleset name */ font-family: fontB; font-variant-alternates: styleset(altW); } #test3 { - /* testing case-insensitivity of styleset name */ + /* testing case-sensitivity of styleset name */ font-family: fontB; font-variant-alternates: styleset(ALTW); } @@ -79,7 +79,7 @@ #test4 { /* testing escapes in styleset name */ font-family: fontB; - font-variant-alternates: styleset(\41 ltW); + font-variant-alternates: styleset(\41 lTw); } #test5 { diff --git a/tests/wpt/web-platform-tests/css/css-fonts/font-face-unicode-range-2-ref.html b/tests/wpt/web-platform-tests/css/css-fonts/font-face-unicode-range-2-ref.html new file mode 100644 index 000000000000..ff53ab6e6754 --- /dev/null +++ b/tests/wpt/web-platform-tests/css/css-fonts/font-face-unicode-range-2-ref.html @@ -0,0 +1,27 @@ + + +CSS Reference: font-face unicode-range + + +

Test passes if the two lines look the same, with just the ampersand in italic

+
This & That
+
This & That
+ diff --git a/tests/wpt/web-platform-tests/css/css-fonts/font-face-unicode-range-2.html b/tests/wpt/web-platform-tests/css/css-fonts/font-face-unicode-range-2.html index 9be431b1871d..83eab754bb33 100644 --- a/tests/wpt/web-platform-tests/css/css-fonts/font-face-unicode-range-2.html +++ b/tests/wpt/web-platform-tests/css/css-fonts/font-face-unicode-range-2.html @@ -3,6 +3,7 @@ CSS Test: font-face unicode-range + + + +

Test passes if the three lines below are identical, with eight check marks (✓).

+
+

AAAAAAAA

+

AAAAAAAA

+

AAAAAAAA

+
diff --git a/tests/wpt/web-platform-tests/css/css-fonts/font-feature-settings-descriptor-01.html b/tests/wpt/web-platform-tests/css/css-fonts/font-feature-settings-descriptor-01.html new file mode 100644 index 000000000000..8f7c50661a7a --- /dev/null +++ b/tests/wpt/web-platform-tests/css/css-fonts/font-feature-settings-descriptor-01.html @@ -0,0 +1,39 @@ + + + +CSS Test: font-feature-settings descriptor + + + + + + + + +

Test passes if the three lines below are identical, with eight check marks (✓).

+
+

CDGFEJQa

+

CDGFEJQa

+

AAAAAAAA

+
\ No newline at end of file diff --git a/tests/wpt/web-platform-tests/css/css-fonts/font-size-adjust-001-ref.html b/tests/wpt/web-platform-tests/css/css-fonts/font-size-adjust-001-ref.html new file mode 100644 index 000000000000..b608c09c50ca --- /dev/null +++ b/tests/wpt/web-platform-tests/css/css-fonts/font-size-adjust-001-ref.html @@ -0,0 +1,19 @@ + + +CSS Fonts Reference: font-size-adjust - greater than aspect value of font + + +

Test passes if the size of the blue rectangle is greater than the orange rectangle.

+
FillerText
+
FillerText
+ diff --git a/tests/wpt/web-platform-tests/css/css-fonts/font-size-adjust-001.html b/tests/wpt/web-platform-tests/css/css-fonts/font-size-adjust-001.html index d2d1241b97f7..b4b1c75bff24 100644 --- a/tests/wpt/web-platform-tests/css/css-fonts/font-size-adjust-001.html +++ b/tests/wpt/web-platform-tests/css/css-fonts/font-size-adjust-001.html @@ -9,8 +9,9 @@ is greater than the aspect value of font"> -

Test passes if the size of blue rectangle is greater than the black rectangle.

-
FillerText
+

Test passes if the size of the blue rectangle is greater than the orange rectangle.

FillerText
+
FillerText
diff --git a/tests/wpt/web-platform-tests/css/css-fonts/font-size-adjust-002-ref.html b/tests/wpt/web-platform-tests/css/css-fonts/font-size-adjust-002-ref.html new file mode 100644 index 000000000000..175802cd7bb9 --- /dev/null +++ b/tests/wpt/web-platform-tests/css/css-fonts/font-size-adjust-002-ref.html @@ -0,0 +1,19 @@ + + +CSS Fonts Reference: font-size-adjust - less than aspect value of font + + +

Test passes if the size of the blue rectangle is greater than the orange rectangle.

+
FillerText
+
FillerText
+ diff --git a/tests/wpt/web-platform-tests/css/css-fonts/font-size-adjust-002.html b/tests/wpt/web-platform-tests/css/css-fonts/font-size-adjust-002.html index d157f1350c21..e1e4768ed47f 100644 --- a/tests/wpt/web-platform-tests/css/css-fonts/font-size-adjust-002.html +++ b/tests/wpt/web-platform-tests/css/css-fonts/font-size-adjust-002.html @@ -4,21 +4,23 @@ + -

Test passes if the size of blue rectangle is less than the black rectangle.

+

Test passes if the size of the blue rectangle is greater than the orange rectangle.

FillerText
FillerText
diff --git a/tests/wpt/web-platform-tests/css/css-fonts/matching/README.md b/tests/wpt/web-platform-tests/css/css-fonts/matching/README.md index 0d760752059e..653f4d933cd0 100644 --- a/tests/wpt/web-platform-tests/css/css-fonts/matching/README.md +++ b/tests/wpt/web-platform-tests/css/css-fonts/matching/README.md @@ -23,7 +23,7 @@ The **Variable Test Axis Matching** font contains reference glyphs 0-9 to match ### Building reference tests -Using the **Variable Test Axis Matching** font, [reference tests](http://web-platform-tests.org/writing-tests/reftests.html) in this directory are created as follows: +Using the **Variable Test Axis Matching** font, [reference tests](https://web-platform-tests.org/writing-tests/reftests.html) in this directory are created as follows: 1. Define `@font-face`s with range expressions, which trigger variation axes to be applied to the variable font. 2. Use CSS style definitions to request font faces from the set of declared `@font-face`s and use blocks of the glyph sequence MNOP. diff --git a/tests/wpt/web-platform-tests/css/css-fonts/support/fonts/font-feature-settings-rendering-2-expected.html b/tests/wpt/web-platform-tests/css/css-fonts/support/fonts/font-feature-settings-rendering-2-ref.html similarity index 100% rename from tests/wpt/web-platform-tests/css/css-fonts/support/fonts/font-feature-settings-rendering-2-expected.html rename to tests/wpt/web-platform-tests/css/css-fonts/support/fonts/font-feature-settings-rendering-2-ref.html diff --git a/tests/wpt/web-platform-tests/css/css-fonts/variations/at-font-face-descriptors.html b/tests/wpt/web-platform-tests/css/css-fonts/variations/at-font-face-descriptors.html index 9a70d1d8b8b0..ece5b4be9b93 100644 --- a/tests/wpt/web-platform-tests/css/css-fonts/variations/at-font-face-descriptors.html +++ b/tests/wpt/web-platform-tests/css/css-fonts/variations/at-font-face-descriptors.html @@ -118,8 +118,8 @@ // Single value, calc { value: "calc(200.5%)", isValid: true, expectedValue: "200.5%", description: "Simple calc value" }, { value: "calc(50%*2 - 20%)", isValid: true, expectedValue: "80%", description: "Valid calc expression" }, - { value: "calc(-100%)", isValid: false, description: "Negative calc value" }, - { value: "calc(50% - 50%*2)", isValid: false, description: "Negative calc expression" }, + { value: "calc(-100%)", isValid: true, description: "Negative calc value (to be clamped)" }, + { value: "calc(50% - 50%*2)", isValid: true, expectedValue: "calc(-50%)", description: "Negative calc expression (to be clamped)" }, { value: "calc(100)", isValid: false, description: "Unit-less calc value" }, { value: "calc(100px)", isValid: false, description: "Calc value with units" }, diff --git a/tests/wpt/web-platform-tests/css/css-fonts/variations/font-weight-matching-installed-fonts.html b/tests/wpt/web-platform-tests/css/css-fonts/variations/font-weight-matching-installed-fonts.html index 9d08d5b472ea..e00e3172c662 100644 --- a/tests/wpt/web-platform-tests/css/css-fonts/variations/font-weight-matching-installed-fonts.html +++ b/tests/wpt/web-platform-tests/css/css-fonts/variations/font-weight-matching-installed-fonts.html @@ -4,7 +4,6 @@ Testing new font-matching algorithm for font-weight values introduced in CSS Fonts level 4 (for system fonts) - diff --git a/tests/wpt/web-platform-tests/css/css-grid/grid-items/percentage-size-replaced-subitems-001-ref.html b/tests/wpt/web-platform-tests/css/css-grid/grid-items/percentage-size-replaced-subitems-001-ref.html new file mode 100644 index 000000000000..2c21c8c13dc6 --- /dev/null +++ b/tests/wpt/web-platform-tests/css/css-grid/grid-items/percentage-size-replaced-subitems-001-ref.html @@ -0,0 +1,92 @@ + + +CSS Refttest Reference: Percentage size on child of a grid item with margin, border, padding and scrollbar + + + +

The test passes if in the different examples you see scrollbars but there's no overflow, so you cannot actually scroll.

+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
diff --git a/tests/wpt/web-platform-tests/css/css-grid/grid-items/percentage-size-replaced-subitems-001.html b/tests/wpt/web-platform-tests/css/css-grid/grid-items/percentage-size-replaced-subitems-001.html new file mode 100644 index 000000000000..190277a1ed1e --- /dev/null +++ b/tests/wpt/web-platform-tests/css/css-grid/grid-items/percentage-size-replaced-subitems-001.html @@ -0,0 +1,91 @@ + + +CSS Grid Test: Percentage size on replaced child of a grid item with margin, border, padding and scrollbar + + + + + + +

The test passes if in the different examples you see scrollbars but there's no overflow, so you cannot actually scroll.

+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
diff --git a/tests/wpt/web-platform-tests/css/css-grid/layout-algorithm/grid-intrinsic-size-with-orthogonal-items.html b/tests/wpt/web-platform-tests/css/css-grid/layout-algorithm/grid-intrinsic-size-with-orthogonal-items.html new file mode 100644 index 000000000000..9fb0f4ffa1c0 --- /dev/null +++ b/tests/wpt/web-platform-tests/css/css-grid/layout-algorithm/grid-intrinsic-size-with-orthogonal-items.html @@ -0,0 +1,71 @@ + + +CSS Grid Layout Test: Compute the grid's intrinsic size when there are orthogonal items + + + + + + + + + + +
rows: auto
+ +
+
XXX XX X XXX XX X
+
+ +
rows: minmax(100px, 200px)
+ +
+
XXX XX X XXX XX X
+
+ +
rows: minmax(auto, 200px)
+ +
+
XXX XX X XXX XX X
+
+ +
rows: minmax(100px, auto)
+ +
+
XXX XX X XXX XX X
+
+ +
rows: minmax(auto, 100px)
+ +
+
XXX XX X XXX XX X
+
+ +
rows: minmax(100px, fit-content)
+ +
+
XXX XX X XXX XX X
+
+ +
rows: minmax(100px, 1fr)
+ +
+
XXX XX X XXX XX X
+
+ diff --git a/tests/wpt/web-platform-tests/css/css-images/parsing/resources/parsing-testcommon.js b/tests/wpt/web-platform-tests/css/css-images/parsing/resources/parsing-testcommon.js index 9427f53d81bc..b075882f89aa 100644 --- a/tests/wpt/web-platform-tests/css/css-images/parsing/resources/parsing-testcommon.js +++ b/tests/wpt/web-platform-tests/css/css-images/parsing/resources/parsing-testcommon.js @@ -12,18 +12,18 @@ function test_valid_value(property, value, serializedValue) { test(function(){ var div = document.createElement('div'); div.style[property] = value; - assert_not_equals(div.style[property], "", "property should be set"); + assert_not_equals(div.style.getPropertyValue(property), "", "property should be set"); var div = document.createElement('div'); div.style[property] = value; - var readValue = div.style[property]; + var readValue = div.style.getPropertyValue(property); if (serializedValue instanceof Array) - assert_true(serializedValue.includes(readValue), "serialization should be sound"); + assert_in_array(readValue, serializedValue, "serialization should be sound"); else assert_equals(readValue, serializedValue, "serialization should be canonical"); div.style[property] = readValue; - assert_equals(div.style[property], readValue, "serialization should round-trip"); + assert_equals(div.style.getPropertyValue(property), readValue, "serialization should round-trip"); }, "e.style['" + property + "'] = " + stringifiedValue + " should set the property value"); } @@ -34,6 +34,6 @@ function test_invalid_value(property, value) { test(function(){ var div = document.createElement('div'); div.style[property] = value; - assert_equals(div.style[property], ""); + assert_equals(div.style.getPropertyValue(property), ""); }, "e.style['" + property + "'] = " + stringifiedValue + " should not set the property value"); } diff --git a/tests/wpt/web-platform-tests/css/css-masking/parsing/resources/parsing-testcommon.js b/tests/wpt/web-platform-tests/css/css-masking/parsing/resources/parsing-testcommon.js index 9427f53d81bc..b075882f89aa 100644 --- a/tests/wpt/web-platform-tests/css/css-masking/parsing/resources/parsing-testcommon.js +++ b/tests/wpt/web-platform-tests/css/css-masking/parsing/resources/parsing-testcommon.js @@ -12,18 +12,18 @@ function test_valid_value(property, value, serializedValue) { test(function(){ var div = document.createElement('div'); div.style[property] = value; - assert_not_equals(div.style[property], "", "property should be set"); + assert_not_equals(div.style.getPropertyValue(property), "", "property should be set"); var div = document.createElement('div'); div.style[property] = value; - var readValue = div.style[property]; + var readValue = div.style.getPropertyValue(property); if (serializedValue instanceof Array) - assert_true(serializedValue.includes(readValue), "serialization should be sound"); + assert_in_array(readValue, serializedValue, "serialization should be sound"); else assert_equals(readValue, serializedValue, "serialization should be canonical"); div.style[property] = readValue; - assert_equals(div.style[property], readValue, "serialization should round-trip"); + assert_equals(div.style.getPropertyValue(property), readValue, "serialization should round-trip"); }, "e.style['" + property + "'] = " + stringifiedValue + " should set the property value"); } @@ -34,6 +34,6 @@ function test_invalid_value(property, value) { test(function(){ var div = document.createElement('div'); div.style[property] = value; - assert_equals(div.style[property], ""); + assert_equals(div.style.getPropertyValue(property), ""); }, "e.style['" + property + "'] = " + stringifiedValue + " should not set the property value"); } diff --git a/tests/wpt/web-platform-tests/css/css-properties-values-api/OWNERS b/tests/wpt/web-platform-tests/css/css-properties-values-api/OWNERS new file mode 100644 index 000000000000..00afa92246e8 --- /dev/null +++ b/tests/wpt/web-platform-tests/css/css-properties-values-api/OWNERS @@ -0,0 +1,2 @@ +@tabatkins +@astearns diff --git a/tests/wpt/web-platform-tests/css/css-scoping/keyframes-001.html b/tests/wpt/web-platform-tests/css/css-scoping/keyframes-001.html new file mode 100644 index 000000000000..b0a95ac68656 --- /dev/null +++ b/tests/wpt/web-platform-tests/css/css-scoping/keyframes-001.html @@ -0,0 +1,42 @@ + +CSS Test: @keyframes applies in the shadow tree. + + + + + + +
+ diff --git a/tests/wpt/web-platform-tests/css/css-scoping/keyframes-002.html b/tests/wpt/web-platform-tests/css/css-scoping/keyframes-002.html new file mode 100644 index 000000000000..b80b250460be --- /dev/null +++ b/tests/wpt/web-platform-tests/css/css-scoping/keyframes-002.html @@ -0,0 +1,34 @@ + +CSS Test: @keyframes from the document don't apply in the shadow tree. + + + + + + +
+ diff --git a/tests/wpt/web-platform-tests/css/css-scoping/stylesheet-title-001.html b/tests/wpt/web-platform-tests/css/css-scoping/stylesheet-title-001.html new file mode 100644 index 000000000000..a91fca8ce132 --- /dev/null +++ b/tests/wpt/web-platform-tests/css/css-scoping/stylesheet-title-001.html @@ -0,0 +1,24 @@ + + +CSS Test: title attribute in stylesheets not in the document tree is ignored + + + + + +

Test passes if you see a single 100px by 100px green box below.

+
+ diff --git a/tests/wpt/web-platform-tests/css/css-scoping/stylesheet-title-002.html b/tests/wpt/web-platform-tests/css/css-scoping/stylesheet-title-002.html new file mode 100644 index 000000000000..2843ada3eead --- /dev/null +++ b/tests/wpt/web-platform-tests/css/css-scoping/stylesheet-title-002.html @@ -0,0 +1,36 @@ + + +CSS Test: title attribute in stylesheets not in the document tree is ignored + + + + + + +
+ diff --git a/tests/wpt/web-platform-tests/css/css-scroll-anchoring/OWNERS b/tests/wpt/web-platform-tests/css/css-scroll-anchoring/OWNERS new file mode 100644 index 000000000000..4d8fac449153 --- /dev/null +++ b/tests/wpt/web-platform-tests/css/css-scroll-anchoring/OWNERS @@ -0,0 +1 @@ +@tabatkins diff --git a/tests/wpt/web-platform-tests/css/css-scroll-snap/OWNERS b/tests/wpt/web-platform-tests/css/css-scroll-snap/OWNERS new file mode 100644 index 000000000000..4d8fac449153 --- /dev/null +++ b/tests/wpt/web-platform-tests/css/css-scroll-snap/OWNERS @@ -0,0 +1 @@ +@tabatkins diff --git a/tests/wpt/web-platform-tests/css/css-shadow-parts/OWNERS b/tests/wpt/web-platform-tests/css/css-shadow-parts/OWNERS new file mode 100644 index 000000000000..4d8fac449153 --- /dev/null +++ b/tests/wpt/web-platform-tests/css/css-shadow-parts/OWNERS @@ -0,0 +1 @@ +@tabatkins diff --git a/tests/wpt/web-platform-tests/css/css-shapes/parsing/resources/parsing-testcommon.js b/tests/wpt/web-platform-tests/css/css-shapes/parsing/resources/parsing-testcommon.js index 9427f53d81bc..b075882f89aa 100644 --- a/tests/wpt/web-platform-tests/css/css-shapes/parsing/resources/parsing-testcommon.js +++ b/tests/wpt/web-platform-tests/css/css-shapes/parsing/resources/parsing-testcommon.js @@ -12,18 +12,18 @@ function test_valid_value(property, value, serializedValue) { test(function(){ var div = document.createElement('div'); div.style[property] = value; - assert_not_equals(div.style[property], "", "property should be set"); + assert_not_equals(div.style.getPropertyValue(property), "", "property should be set"); var div = document.createElement('div'); div.style[property] = value; - var readValue = div.style[property]; + var readValue = div.style.getPropertyValue(property); if (serializedValue instanceof Array) - assert_true(serializedValue.includes(readValue), "serialization should be sound"); + assert_in_array(readValue, serializedValue, "serialization should be sound"); else assert_equals(readValue, serializedValue, "serialization should be canonical"); div.style[property] = readValue; - assert_equals(div.style[property], readValue, "serialization should round-trip"); + assert_equals(div.style.getPropertyValue(property), readValue, "serialization should round-trip"); }, "e.style['" + property + "'] = " + stringifiedValue + " should set the property value"); } @@ -34,6 +34,6 @@ function test_invalid_value(property, value) { test(function(){ var div = document.createElement('div'); div.style[property] = value; - assert_equals(div.style[property], ""); + assert_equals(div.style.getPropertyValue(property), ""); }, "e.style['" + property + "'] = " + stringifiedValue + " should not set the property value"); } diff --git a/tests/wpt/web-platform-tests/css/css-shapes/shape-outside/shape-image/gradients/shape-outside-linear-gradient-009.html b/tests/wpt/web-platform-tests/css/css-shapes/shape-outside/shape-image/gradients/shape-outside-linear-gradient-009.html new file mode 100644 index 000000000000..eb04734cd5da --- /dev/null +++ b/tests/wpt/web-platform-tests/css/css-shapes/shape-outside/shape-image/gradients/shape-outside-linear-gradient-009.html @@ -0,0 +1,59 @@ + + + + CSS Test: Test float with linear gradient under writing-mode: vertical-rl and text-orientation: sideways + + + + + + + + + + +

+ The test passes if you see a green square. There should be no red. +

+
+
+ x x x x +
+
+
+ x x x x +
+ + diff --git a/tests/wpt/web-platform-tests/css/css-shapes/shape-outside/shape-image/gradients/shape-outside-linear-gradient-010.html b/tests/wpt/web-platform-tests/css/css-shapes/shape-outside/shape-image/gradients/shape-outside-linear-gradient-010.html new file mode 100644 index 000000000000..26335a6b5278 --- /dev/null +++ b/tests/wpt/web-platform-tests/css/css-shapes/shape-outside/shape-image/gradients/shape-outside-linear-gradient-010.html @@ -0,0 +1,59 @@ + + + + CSS Test: Test float with linear gradient under writing-mode: vertical-lr and text-orientation: sideways + + + + + + + + + + +

+ The test passes if you see a green square. There should be no red. +

+
+
+ x x x x +
+
+
+ x x x x +
+ + diff --git a/tests/wpt/web-platform-tests/css/css-shapes/shape-outside/shape-image/gradients/shape-outside-linear-gradient-011.html b/tests/wpt/web-platform-tests/css/css-shapes/shape-outside/shape-image/gradients/shape-outside-linear-gradient-011.html new file mode 100644 index 000000000000..3daa63c497a5 --- /dev/null +++ b/tests/wpt/web-platform-tests/css/css-shapes/shape-outside/shape-image/gradients/shape-outside-linear-gradient-011.html @@ -0,0 +1,61 @@ + + + + CSS Test: Test float with linear gradient under writing-mode: vertical-rl + + + + + + + + + + + +

+ The test passes if you see a green square. There should be no red. +

+
+
+ x x x x +
+
+
+ x x x x +
+ + diff --git a/tests/wpt/web-platform-tests/css/css-shapes/shape-outside/shape-image/gradients/shape-outside-linear-gradient-012.html b/tests/wpt/web-platform-tests/css/css-shapes/shape-outside/shape-image/gradients/shape-outside-linear-gradient-012.html new file mode 100644 index 000000000000..52f5e8a8a271 --- /dev/null +++ b/tests/wpt/web-platform-tests/css/css-shapes/shape-outside/shape-image/gradients/shape-outside-linear-gradient-012.html @@ -0,0 +1,61 @@ + + + + CSS Test: Test float with linear gradient under writing-mode: vertical-lr + + + + + + + + + + + +

+ The test passes if you see a green square. There should be no red. +

+
+
+ x x x x +
+
+
+ x x x x +
+ + diff --git a/tests/wpt/web-platform-tests/css/css-shapes/shape-outside/shape-image/gradients/shape-outside-linear-gradient-013.html b/tests/wpt/web-platform-tests/css/css-shapes/shape-outside/shape-image/gradients/shape-outside-linear-gradient-013.html new file mode 100644 index 000000000000..66a285006406 --- /dev/null +++ b/tests/wpt/web-platform-tests/css/css-shapes/shape-outside/shape-image/gradients/shape-outside-linear-gradient-013.html @@ -0,0 +1,61 @@ + + + + CSS Test: Test float with linear gradient under writing-mode: sideways-rl + + + + + + + + + + + +

+ The test passes if you see a green square. There should be no red. +

+
+
+ x x x x +
+
+
+ x x x x +
+ + diff --git a/tests/wpt/web-platform-tests/css/css-shapes/shape-outside/shape-image/gradients/shape-outside-linear-gradient-014.html b/tests/wpt/web-platform-tests/css/css-shapes/shape-outside/shape-image/gradients/shape-outside-linear-gradient-014.html new file mode 100644 index 000000000000..91ba3efa08a3 --- /dev/null +++ b/tests/wpt/web-platform-tests/css/css-shapes/shape-outside/shape-image/gradients/shape-outside-linear-gradient-014.html @@ -0,0 +1,61 @@ + + + + CSS Test: Test float with linear gradient under writing-mode: sideways-lr + + + + + + + + + + + +

+ The test passes if you see a green square. There should be no red. +

+
+
+ x x x x +
+
+
+ x x x x +
+ + diff --git a/tests/wpt/web-platform-tests/css/css-shapes/shape-outside/shape-image/gradients/shape-outside-linear-gradient-015.html b/tests/wpt/web-platform-tests/css/css-shapes/shape-outside/shape-image/gradients/shape-outside-linear-gradient-015.html new file mode 100644 index 000000000000..382586a9dca6 --- /dev/null +++ b/tests/wpt/web-platform-tests/css/css-shapes/shape-outside/shape-image/gradients/shape-outside-linear-gradient-015.html @@ -0,0 +1,62 @@ + + + + CSS Test: Test float with linear gradient under writing-mode: vertical-rl and text-orientation: sideways + + + + + + + + + + + +

+ The test passes if you see a green square. There should be no red. +

+
+
+ x x x x +
+
+
+ x x x x +
+ + diff --git a/tests/wpt/web-platform-tests/css/css-shapes/shape-outside/shape-image/gradients/shape-outside-linear-gradient-016.html b/tests/wpt/web-platform-tests/css/css-shapes/shape-outside/shape-image/gradients/shape-outside-linear-gradient-016.html new file mode 100644 index 000000000000..fe4524236b1c --- /dev/null +++ b/tests/wpt/web-platform-tests/css/css-shapes/shape-outside/shape-image/gradients/shape-outside-linear-gradient-016.html @@ -0,0 +1,62 @@ + + + + CSS Test: Test float with linear gradient under writing-mode: vertical-lr and text-orientation: sideways + + + + + + + + + + + +

+ The test passes if you see a green square. There should be no red. +

+
+
+ x x x x +
+
+
+ x x x x +
+ + diff --git a/tests/wpt/web-platform-tests/css/css-shapes/shape-outside/shape-image/shape-image-026.html b/tests/wpt/web-platform-tests/css/css-shapes/shape-outside/shape-image/shape-image-026.html new file mode 100644 index 000000000000..40482f8b9702 --- /dev/null +++ b/tests/wpt/web-platform-tests/css/css-shapes/shape-outside/shape-image/shape-image-026.html @@ -0,0 +1,69 @@ + + + + CSS Test: left float, url(png), real offset image + shape-margin (px) + + + + + + + + + + +

+ The test passes if the green rectangle on the right is completely between the two blue lines. + There should be no red. +

+
+ + X
X +
+
+
+
+ + diff --git a/tests/wpt/web-platform-tests/css/css-shapes/shape-outside/supported-shapes/inset/shape-outside-inset-029.html b/tests/wpt/web-platform-tests/css/css-shapes/shape-outside/supported-shapes/inset/shape-outside-inset-029.html index fe30d4371f7a..fdf226ee09cc 100644 --- a/tests/wpt/web-platform-tests/css/css-shapes/shape-outside/supported-shapes/inset/shape-outside-inset-029.html +++ b/tests/wpt/web-platform-tests/css/css-shapes/shape-outside/supported-shapes/inset/shape-outside-inset-029.html @@ -30,7 +30,6 @@ float: right; width: 200px; height: 200px; - background-color: green; shape-margin: 10px; shape-outside: inset(60px 10px 60px 110px round 70px 0px 0px 10px / 10px 0px 0px 20px); } diff --git a/tests/wpt/web-platform-tests/css/css-shapes/shape-outside/supported-shapes/inset/shape-outside-inset-030.html b/tests/wpt/web-platform-tests/css/css-shapes/shape-outside/supported-shapes/inset/shape-outside-inset-030.html new file mode 100644 index 000000000000..0daa382f1544 --- /dev/null +++ b/tests/wpt/web-platform-tests/css/css-shapes/shape-outside/supported-shapes/inset/shape-outside-inset-030.html @@ -0,0 +1,67 @@ + + + + CSS Test: left float, offset inset, px units + + + + + + + + + + +

The test passes if there is a green square and no red.

+
+
+
+
+ XXXXXXXX XXXXXXXX XXXX XXXX XXXX XXXX XXXXXXXX XXXXXXXX +
+
+
+ + diff --git a/tests/wpt/web-platform-tests/css/css-shapes/spec-examples/shape-outside-010.html b/tests/wpt/web-platform-tests/css/css-shapes/spec-examples/shape-outside-010.html index 4c4ce48d0c66..e85e74d6b067 100644 --- a/tests/wpt/web-platform-tests/css/css-shapes/spec-examples/shape-outside-010.html +++ b/tests/wpt/web-platform-tests/css/css-shapes/spec-examples/shape-outside-010.html @@ -30,8 +30,13 @@ + - +

The test passes if the short green horizontal bars are the right of the circle, the long green bar is beneath the circle, and no bars intersect the circle. There @@ -47,8 +52,5 @@ XXXXXXXXXXXXXXX

- diff --git a/tests/wpt/web-platform-tests/css/css-shapes/spec-examples/shape-outside-011.html b/tests/wpt/web-platform-tests/css/css-shapes/spec-examples/shape-outside-011.html index eb4c19d60519..84defc554f1b 100644 --- a/tests/wpt/web-platform-tests/css/css-shapes/spec-examples/shape-outside-011.html +++ b/tests/wpt/web-platform-tests/css/css-shapes/spec-examples/shape-outside-011.html @@ -30,8 +30,13 @@ + - +

The test passes if the green horizontal bars are to the right of the circle, and no bars intersect the circle's shadow. There should be no red. @@ -46,8 +51,5 @@ XXXXXX

- diff --git a/tests/wpt/web-platform-tests/css/css-shapes/spec-examples/shape-outside-012.html b/tests/wpt/web-platform-tests/css/css-shapes/spec-examples/shape-outside-012.html index 1d0b052e909e..1adf86e5832c 100644 --- a/tests/wpt/web-platform-tests/css/css-shapes/spec-examples/shape-outside-012.html +++ b/tests/wpt/web-platform-tests/css/css-shapes/spec-examples/shape-outside-012.html @@ -32,8 +32,13 @@ + - +

The test passes if the short green horizontal bars are the right of the circle, all intersect the shadow, none intersect the circle and the long green bar is beneath the @@ -49,8 +54,5 @@ XXXXXXXXXXXXXXX

- diff --git a/tests/wpt/web-platform-tests/css/css-shapes/spec-examples/shape-outside-013.html b/tests/wpt/web-platform-tests/css/css-shapes/spec-examples/shape-outside-013.html index 35e4499b5309..a5945473b6fc 100644 --- a/tests/wpt/web-platform-tests/css/css-shapes/spec-examples/shape-outside-013.html +++ b/tests/wpt/web-platform-tests/css/css-shapes/spec-examples/shape-outside-013.html @@ -40,8 +40,13 @@ + - +

The test passes if the short green horizontal bars are the right of the circle, the long green bar is beneath the circle, and no bars intersect the circle. There @@ -59,8 +64,5 @@ XXXXXXXXXXXXX

- diff --git a/tests/wpt/web-platform-tests/css/css-shapes/spec-examples/shape-outside-014.html b/tests/wpt/web-platform-tests/css/css-shapes/spec-examples/shape-outside-014.html index 91be9649adaf..307046bb685d 100644 --- a/tests/wpt/web-platform-tests/css/css-shapes/spec-examples/shape-outside-014.html +++ b/tests/wpt/web-platform-tests/css/css-shapes/spec-examples/shape-outside-014.html @@ -44,8 +44,13 @@ + - +

The test passes if the short green horizontal bars are the right of the shape, the long green bar is beneath it, and no bars intersect it. There should be no red. @@ -61,8 +66,5 @@ XXXXXXXXXXXXXXX

- diff --git a/tests/wpt/web-platform-tests/css/css-shapes/spec-examples/shape-outside-015.html b/tests/wpt/web-platform-tests/css/css-shapes/spec-examples/shape-outside-015.html index 7f4a6f70b738..96c48f2bc021 100644 --- a/tests/wpt/web-platform-tests/css/css-shapes/spec-examples/shape-outside-015.html +++ b/tests/wpt/web-platform-tests/css/css-shapes/spec-examples/shape-outside-015.html @@ -32,8 +32,13 @@ + - +

The test passes if the short green horizontal bars are the right of the shape, the long green bar is beneath it, and no bars intersect it. There should be no red. @@ -48,8 +53,5 @@ XXXXXXXXXXXXXXX

- diff --git a/tests/wpt/web-platform-tests/css/css-shapes/spec-examples/shape-outside-016.html b/tests/wpt/web-platform-tests/css/css-shapes/spec-examples/shape-outside-016.html index d3b82f629163..f34b5c4fa4fd 100644 --- a/tests/wpt/web-platform-tests/css/css-shapes/spec-examples/shape-outside-016.html +++ b/tests/wpt/web-platform-tests/css/css-shapes/spec-examples/shape-outside-016.html @@ -32,8 +32,13 @@ + - +

The test passes if the short green horizontal bars are the right of the shape, the long green bar is beneath it, and no bars intersect it. There should be no red. @@ -48,8 +53,5 @@ XXXXXXXXXXXXXXX

- diff --git a/tests/wpt/web-platform-tests/css/css-shapes/spec-examples/shape-outside-017.html b/tests/wpt/web-platform-tests/css/css-shapes/spec-examples/shape-outside-017.html index ae28284c6353..160671c81eee 100644 --- a/tests/wpt/web-platform-tests/css/css-shapes/spec-examples/shape-outside-017.html +++ b/tests/wpt/web-platform-tests/css/css-shapes/spec-examples/shape-outside-017.html @@ -31,8 +31,13 @@ + - +

The test passes if the short green horizontal bars are the right of the shape, the long green bar is beneath it, and no bars intersect it. There should be no red. @@ -47,8 +52,5 @@ XXXXXXXXXXXXXXX

- diff --git a/tests/wpt/web-platform-tests/css/css-shapes/spec-examples/shape-outside-018.html b/tests/wpt/web-platform-tests/css/css-shapes/spec-examples/shape-outside-018.html index ba2c3ffce85e..b95cfd1ce11b 100644 --- a/tests/wpt/web-platform-tests/css/css-shapes/spec-examples/shape-outside-018.html +++ b/tests/wpt/web-platform-tests/css/css-shapes/spec-examples/shape-outside-018.html @@ -37,8 +37,13 @@ + - +

The test passes if the longest green horizontal bar is beneath the triangle and the rest of them are to its right and none intersect it. There should be no red. @@ -54,8 +59,5 @@ XXXXXXXXXXXX

- diff --git a/tests/wpt/web-platform-tests/css/css-shapes/spec-examples/shape-outside-019.html b/tests/wpt/web-platform-tests/css/css-shapes/spec-examples/shape-outside-019.html index 3ef311f4a1a6..5d19b35ad96b 100644 --- a/tests/wpt/web-platform-tests/css/css-shapes/spec-examples/shape-outside-019.html +++ b/tests/wpt/web-platform-tests/css/css-shapes/spec-examples/shape-outside-019.html @@ -39,8 +39,13 @@ + - +

The test passes if the short green horizontal bars are the right of the black edge of circle, the long green bar is beneath it, and no bars intersect the black. @@ -58,8 +63,5 @@ XXXXXXXXXXXXXXX

- diff --git a/tests/wpt/web-platform-tests/css/css-shapes/spec-examples/support/spec-example-utils.js b/tests/wpt/web-platform-tests/css/css-shapes/spec-examples/support/spec-example-utils.js index 9f4a19e4c6d2..c5b0411ca270 100644 --- a/tests/wpt/web-platform-tests/css/css-shapes/spec-examples/support/spec-example-utils.js +++ b/tests/wpt/web-platform-tests/css/css-shapes/spec-examples/support/spec-example-utils.js @@ -1,20 +1,11 @@ function approxShapeTest(testId, linePrefix, epsilon, lineOffsets) { var isPositioned = { 'relative': true, 'fixed': true, 'absolute': true, 'sticky': true }, - loops = 0, testDiv = document.getElementById(testId), testOffset = isPositioned[getComputedStyle(testDiv).position] ? 0 : testDiv.offsetLeft, firstLine = document.getElementById(linePrefix + '0'); function runTest() { - if (firstLine.offsetLeft == testOffset) { - // wait for the shape image to load and layout to happen - if (loops > 100) - assert_unreached("Giving up waiting for shape layout to happen!"); - else - loops++; - window.setTimeout(runTest, 5); - return; - } + assert_not_equals(firstLine.offsetLeft, testOffset, "Shape layout should have happened already."); for (var i = 0; i < lineOffsets.length; i++) { var line = document.getElementById(linePrefix + i); diff --git a/tests/wpt/web-platform-tests/css/css-sizing/intrinsic-percent-non-replaced-004-ref.html b/tests/wpt/web-platform-tests/css/css-sizing/intrinsic-percent-non-replaced-004-ref.html new file mode 100644 index 000000000000..aa735cffdbbd --- /dev/null +++ b/tests/wpt/web-platform-tests/css/css-sizing/intrinsic-percent-non-replaced-004-ref.html @@ -0,0 +1,56 @@ + +Reference + + + + +
+
+
+
+
+
+
+
+
+
+
+
diff --git a/tests/wpt/web-platform-tests/css/css-sizing/intrinsic-percent-non-replaced-004.html b/tests/wpt/web-platform-tests/css/css-sizing/intrinsic-percent-non-replaced-004.html new file mode 100644 index 000000000000..6fc061abff4d --- /dev/null +++ b/tests/wpt/web-platform-tests/css/css-sizing/intrinsic-percent-non-replaced-004.html @@ -0,0 +1,60 @@ + +Percentages of width on non-replaced blocks are ignored for intrinsic sizing and resolved afterwards + + + + + + +
+
+
+
+
+
+
+
+
+
+
+
diff --git a/tests/wpt/web-platform-tests/css/css-sizing/intrinsic-percent-non-replaced-005-ref.html b/tests/wpt/web-platform-tests/css/css-sizing/intrinsic-percent-non-replaced-005-ref.html new file mode 100644 index 000000000000..38f480c0acdb --- /dev/null +++ b/tests/wpt/web-platform-tests/css/css-sizing/intrinsic-percent-non-replaced-005-ref.html @@ -0,0 +1,56 @@ + +Reference + + + + +
+
+
+
+
+
+
+
+
+
+
+
diff --git a/tests/wpt/web-platform-tests/css/css-sizing/intrinsic-percent-non-replaced-005.html b/tests/wpt/web-platform-tests/css/css-sizing/intrinsic-percent-non-replaced-005.html new file mode 100644 index 000000000000..f105d942043c --- /dev/null +++ b/tests/wpt/web-platform-tests/css/css-sizing/intrinsic-percent-non-replaced-005.html @@ -0,0 +1,60 @@ + +Percentages of width on non-replaced blocks are ignored for intrinsic sizing and resolved afterwards + + + + + + +
+
+
+
+
+
+
+
+
+
+
+
diff --git a/tests/wpt/web-platform-tests/css/css-syntax/unicode-range-selector.html b/tests/wpt/web-platform-tests/css/css-syntax/unicode-range-selector.html new file mode 100644 index 000000000000..db09540bb08c --- /dev/null +++ b/tests/wpt/web-platform-tests/css/css-syntax/unicode-range-selector.html @@ -0,0 +1,20 @@ + + +Unicode range is not a token, and doesn't cause confusion in selectors + + + + + + + diff --git a/tests/wpt/web-platform-tests/css/css-transforms/2d-rotate-js.html b/tests/wpt/web-platform-tests/css/css-transforms/2d-rotate-js.html index 3dcfa8c925db..11597fb31995 100644 --- a/tests/wpt/web-platform-tests/css/css-transforms/2d-rotate-js.html +++ b/tests/wpt/web-platform-tests/css/css-transforms/2d-rotate-js.html @@ -3,11 +3,12 @@ JS test: Rotate via javascript must show the correct computed rotation - + + - + + + + +

Should be green

+ diff --git a/tests/wpt/web-platform-tests/css/filter-effects/parsing/resources/parsing-testcommon.js b/tests/wpt/web-platform-tests/css/filter-effects/parsing/resources/parsing-testcommon.js index 70a1c38fb38c..b075882f89aa 100644 --- a/tests/wpt/web-platform-tests/css/filter-effects/parsing/resources/parsing-testcommon.js +++ b/tests/wpt/web-platform-tests/css/filter-effects/parsing/resources/parsing-testcommon.js @@ -1,5 +1,8 @@ 'use strict'; +// serializedValue can be the expected serialization of value, +// or an array of permitted serializations, +// or omitted if value should serialize as value. function test_valid_value(property, value, serializedValue) { if (arguments.length < 3) serializedValue = value; @@ -9,21 +12,20 @@ function test_valid_value(property, value, serializedValue) { test(function(){ var div = document.createElement('div'); div.style[property] = value; - assert_not_equals(div.style[property], ""); - }, "e.style['" + property + "'] = " + stringifiedValue + " should set the property value"); + assert_not_equals(div.style.getPropertyValue(property), "", "property should be set"); - test(function(){ var div = document.createElement('div'); div.style[property] = value; - var readValue = div.style[property]; - - if (Array.isArray(serializedValue)) - assert_true(serializedValue.indexOf(readValue) >= 0, '"' + readValue + '" in ' + JSON.stringify(serializedValue)); + var readValue = div.style.getPropertyValue(property); + if (serializedValue instanceof Array) + assert_in_array(readValue, serializedValue, "serialization should be sound"); else - assert_equals(readValue, serializedValue); + assert_equals(readValue, serializedValue, "serialization should be canonical"); + div.style[property] = readValue; - assert_equals(div.style[property], readValue); - }, "Serialization should round-trip after setting e.style['" + property + "'] = " + stringifiedValue); + assert_equals(div.style.getPropertyValue(property), readValue, "serialization should round-trip"); + + }, "e.style['" + property + "'] = " + stringifiedValue + " should set the property value"); } function test_invalid_value(property, value) { @@ -32,6 +34,6 @@ function test_invalid_value(property, value) { test(function(){ var div = document.createElement('div'); div.style[property] = value; - assert_equals(div.style[property], ""); + assert_equals(div.style.getPropertyValue(property), ""); }, "e.style['" + property + "'] = " + stringifiedValue + " should not set the property value"); } diff --git a/tests/wpt/web-platform-tests/css/mediaqueries/test_media_queries.html b/tests/wpt/web-platform-tests/css/mediaqueries/test_media_queries.html index c7b651d96c3e..57830f4d47fd 100644 --- a/tests/wpt/web-platform-tests/css/mediaqueries/test_media_queries.html +++ b/tests/wpt/web-platform-tests/css/mediaqueries/test_media_queries.html @@ -348,8 +348,16 @@ expression_should_be_parseable(feature + ": 3.0dpi"); expression_should_be_parseable(feature + ": 3.4dpi"); expression_should_be_parseable(feature + "\t: 120dpcm"); + expression_should_be_parseable(feature + ": 1dppx"); + expression_should_be_parseable(feature + ": 1x"); + expression_should_be_parseable(feature + ": 1.5dppx"); + expression_should_be_parseable(feature + ": 1.5x"); + expression_should_be_parseable(feature + ": 2.0dppx"); + // TODO(emilio): Doesn't seem right to exclude 0 here. expression_should_not_be_parseable(feature + ": 0dpi"); expression_should_not_be_parseable(feature + ": -3dpi"); + expression_should_not_be_parseable(feature + ": 0dppx"); + expression_should_not_be_parseable(feature + ": 0x"); } // Find the resolution using max-resolution @@ -370,6 +378,8 @@ if (query_applies("(min-resolution: " + resolution + "dpi)")) { // It's exact! should_apply("(resolution: " + resolution + "dpi)"); + should_apply("(resolution: " + Math.floor(resolution/96) + "dppx)"); + should_apply("(resolution: " + Math.floor(resolution/96) + "x)"); should_not_apply("(resolution: " + (resolution + 1) + "dpi)"); should_not_apply("(resolution: " + (resolution - 1) + "dpi)"); dpi_high = resolution + 1; diff --git a/tests/wpt/web-platform-tests/css/motion/parsing/resources/parsing-testcommon.js b/tests/wpt/web-platform-tests/css/motion/parsing/resources/parsing-testcommon.js index 688356bd0f9d..b075882f89aa 100644 --- a/tests/wpt/web-platform-tests/css/motion/parsing/resources/parsing-testcommon.js +++ b/tests/wpt/web-platform-tests/css/motion/parsing/resources/parsing-testcommon.js @@ -1,5 +1,8 @@ 'use strict'; +// serializedValue can be the expected serialization of value, +// or an array of permitted serializations, +// or omitted if value should serialize as value. function test_valid_value(property, value, serializedValue) { if (arguments.length < 3) serializedValue = value; @@ -9,17 +12,20 @@ function test_valid_value(property, value, serializedValue) { test(function(){ var div = document.createElement('div'); div.style[property] = value; - assert_not_equals(div.style[property], ""); - }, "e.style['" + property + "'] = " + stringifiedValue + " should set the property value"); + assert_not_equals(div.style.getPropertyValue(property), "", "property should be set"); - test(function(){ var div = document.createElement('div'); div.style[property] = value; - var readValue = div.style[property]; - assert_equals(readValue, serializedValue); + var readValue = div.style.getPropertyValue(property); + if (serializedValue instanceof Array) + assert_in_array(readValue, serializedValue, "serialization should be sound"); + else + assert_equals(readValue, serializedValue, "serialization should be canonical"); + div.style[property] = readValue; - assert_equals(div.style[property], readValue); - }, "Serialization should round-trip after setting e.style['" + property + "'] = " + stringifiedValue); + assert_equals(div.style.getPropertyValue(property), readValue, "serialization should round-trip"); + + }, "e.style['" + property + "'] = " + stringifiedValue + " should set the property value"); } function test_invalid_value(property, value) { @@ -28,6 +34,6 @@ function test_invalid_value(property, value) { test(function(){ var div = document.createElement('div'); div.style[property] = value; - assert_equals(div.style[property], ""); + assert_equals(div.style.getPropertyValue(property), ""); }, "e.style['" + property + "'] = " + stringifiedValue + " should not set the property value"); } diff --git a/tests/wpt/web-platform-tests/css/vendor-imports/mozilla/mozilla-central-reftests/shapes1/reftest.list b/tests/wpt/web-platform-tests/css/vendor-imports/mozilla/mozilla-central-reftests/shapes1/reftest.list index eb4d7f498156..fbee28923a48 100644 --- a/tests/wpt/web-platform-tests/css/vendor-imports/mozilla/mozilla-central-reftests/shapes1/reftest.list +++ b/tests/wpt/web-platform-tests/css/vendor-imports/mozilla/mozilla-central-reftests/shapes1/reftest.list @@ -60,6 +60,7 @@ == shape-outside-circle-053.html shape-outside-circle-053-ref.html == shape-outside-circle-054.html shape-outside-circle-054-ref.html == shape-outside-circle-055.html shape-outside-circle-055-ref.html +== shape-outside-circle-056.html shape-outside-circle-056-ref.html # Basic shape: ellipse() == shape-outside-ellipse-032.html shape-outside-ellipse-032-ref.html @@ -82,6 +83,7 @@ == shape-outside-ellipse-049.html shape-outside-ellipse-049-ref.html == shape-outside-ellipse-050.html shape-outside-ellipse-050-ref.html == shape-outside-ellipse-051.html shape-outside-ellipse-051-ref.html +== shape-outside-ellipse-052.html shape-outside-ellipse-052-ref.html # Basic shape: inset() == shape-outside-inset-016.html shape-outside-inset-016-ref.html @@ -112,3 +114,4 @@ == shape-outside-polygon-029.html shape-outside-polygon-027-ref.html == shape-outside-polygon-030.html shape-outside-polygon-030-ref.html == shape-outside-polygon-031.html shape-outside-polygon-031-ref.html +== shape-outside-polygon-032.html shape-outside-polygon-032-ref.html diff --git a/tests/wpt/web-platform-tests/css/vendor-imports/mozilla/mozilla-central-reftests/shapes1/shape-outside-circle-056-ref.html b/tests/wpt/web-platform-tests/css/vendor-imports/mozilla/mozilla-central-reftests/shapes1/shape-outside-circle-056-ref.html new file mode 100644 index 000000000000..f4f21058a666 --- /dev/null +++ b/tests/wpt/web-platform-tests/css/vendor-imports/mozilla/mozilla-central-reftests/shapes1/shape-outside-circle-056-ref.html @@ -0,0 +1,39 @@ + + + + CSS Reference File + + + + +

The test passes if there is a green square to the right of the blue line. There should be no red.

+
+
+
+
+ + + diff --git a/tests/wpt/web-platform-tests/css/vendor-imports/mozilla/mozilla-central-reftests/shapes1/shape-outside-circle-056.html b/tests/wpt/web-platform-tests/css/vendor-imports/mozilla/mozilla-central-reftests/shapes1/shape-outside-circle-056.html new file mode 100644 index 000000000000..056d40b257e0 --- /dev/null +++ b/tests/wpt/web-platform-tests/css/vendor-imports/mozilla/mozilla-central-reftests/shapes1/shape-outside-circle-056.html @@ -0,0 +1,78 @@ + + + + CSS Test: left float, offset circle at top left + margin-box + shape-margin + + + + + + + + + + + +

The test passes if there is a green square to the right of the blue line. There should be no red.

+
+
+
+
+
+ X +
+
+
+
+ + + diff --git a/tests/wpt/web-platform-tests/css/vendor-imports/mozilla/mozilla-central-reftests/shapes1/shape-outside-ellipse-052-ref.html b/tests/wpt/web-platform-tests/css/vendor-imports/mozilla/mozilla-central-reftests/shapes1/shape-outside-ellipse-052-ref.html new file mode 100644 index 000000000000..f4f21058a666 --- /dev/null +++ b/tests/wpt/web-platform-tests/css/vendor-imports/mozilla/mozilla-central-reftests/shapes1/shape-outside-ellipse-052-ref.html @@ -0,0 +1,39 @@ + + + + CSS Reference File + + + + +

The test passes if there is a green square to the right of the blue line. There should be no red.

+
+
+
+
+ + + diff --git a/tests/wpt/web-platform-tests/css/vendor-imports/mozilla/mozilla-central-reftests/shapes1/shape-outside-ellipse-052.html b/tests/wpt/web-platform-tests/css/vendor-imports/mozilla/mozilla-central-reftests/shapes1/shape-outside-ellipse-052.html new file mode 100644 index 000000000000..831b10168a4d --- /dev/null +++ b/tests/wpt/web-platform-tests/css/vendor-imports/mozilla/mozilla-central-reftests/shapes1/shape-outside-ellipse-052.html @@ -0,0 +1,76 @@ + + + + CSS Test: left float, offset ellipse + shape-margin in % units + + + + + + + + + + +

The test passes if there is a green square to the right of the blue line. There should be no red.

+
+
+
+
+
+ X +
+
+
+
+ + + diff --git a/tests/wpt/web-platform-tests/css/vendor-imports/mozilla/mozilla-central-reftests/shapes1/shape-outside-polygon-032-ref.html b/tests/wpt/web-platform-tests/css/vendor-imports/mozilla/mozilla-central-reftests/shapes1/shape-outside-polygon-032-ref.html new file mode 100644 index 000000000000..f1fcdf40d719 --- /dev/null +++ b/tests/wpt/web-platform-tests/css/vendor-imports/mozilla/mozilla-central-reftests/shapes1/shape-outside-polygon-032-ref.html @@ -0,0 +1,24 @@ + + + + CSS Reference File + + + + +

The test passes if there is green square and no red.

+
+ + \ No newline at end of file diff --git a/tests/wpt/web-platform-tests/css/vendor-imports/mozilla/mozilla-central-reftests/shapes1/shape-outside-polygon-032.html b/tests/wpt/web-platform-tests/css/vendor-imports/mozilla/mozilla-central-reftests/shapes1/shape-outside-polygon-032.html new file mode 100644 index 000000000000..126e0b90ae1b --- /dev/null +++ b/tests/wpt/web-platform-tests/css/vendor-imports/mozilla/mozilla-central-reftests/shapes1/shape-outside-polygon-032.html @@ -0,0 +1,86 @@ + + + + CSS Test: right float, offset polygon + margin-box + shape-margin + + + + + + + + + + + +

The test passes if there is green square and no red.

+
+
+
+ XXXXXXXXXXXX XXX XXX XXX XXX XXXXXXX XXXXXX XXXXXX XXXXXX XXXXXXXXXXXX XXXXXXXXXXXX XXXXXXXXXXXX +
+
+
+
+ + diff --git a/tests/wpt/web-platform-tests/device-memory/OWNERS b/tests/wpt/web-platform-tests/device-memory/OWNERS new file mode 100644 index 000000000000..3e7089cf2ccc --- /dev/null +++ b/tests/wpt/web-platform-tests/device-memory/OWNERS @@ -0,0 +1,2 @@ +@tdresser +@npm1 diff --git a/tests/wpt/web-platform-tests/docs/_running-tests/chrome_android.md b/tests/wpt/web-platform-tests/docs/_running-tests/chrome_android.md index 1785a8dd610f..8af8aaed580d 100644 --- a/tests/wpt/web-platform-tests/docs/_running-tests/chrome_android.md +++ b/tests/wpt/web-platform-tests/docs/_running-tests/chrome_android.md @@ -19,7 +19,6 @@ Until we find a better way, we need to root the Android device and update the 127.0.0.1 www2.web-platform.test 127.0.0.1 xn--n8j6ds53lwwkrqhv28a.web-platform.test 127.0.0.1 xn--lve-6lad.web-platform.test -0.0.0.0 nonexistent-origin.web-platform.test ``` ## CA certificate diff --git a/tests/wpt/web-platform-tests/docs/_writing-tests/server-features.md b/tests/wpt/web-platform-tests/docs/_writing-tests/server-features.md index 495426a8e2ac..a3cd4174d271 100644 --- a/tests/wpt/web-platform-tests/docs/_writing-tests/server-features.md +++ b/tests/wpt/web-platform-tests/docs/_writing-tests/server-features.md @@ -14,15 +14,18 @@ generation. This is supported through the ### Tests Involving Multiple Origins -In the test environment, five subdomains are available: `www`, `www1`, -`www2`, `天気の良い日`, and `élève`; there is also -`nonexistent-origin` which is guaranteed not to resolve. In addition, -the HTTP server listens on two ports, and the WebSockets server on -one. These subdomains and ports must be used for cross-origin -tests. Tests must not hardcode the hostname of the server that they -expect to be running on or the port numbers, as these are not -guaranteed by the test environment. Instead they can get this -information in one of two ways: +Our test servers are guaranteed to be accessible through two domains +and five subdomains under each. The 'main' domain is unnamed; the +other is called 'alt'. These subdomains are: `www`, `www1`, `www2`, +`天気の良い日`, and `élève`; there is also `nonexistent` which is +guaranteed not to resolve. In addition, the HTTP server listens on two +ports, and the WebSockets server on one. These subdomains and ports +must be used for cross-origin tests. + +Tests must not hardcode the hostname of the server that they expect to +be running on or the port numbers, as these are not guaranteed by the +test environment. Instead they can get this information in one of two +ways: * From script, using the `location` API. @@ -33,15 +36,19 @@ form `{name}.sub.{ext}` e.g. `example-test.sub.html` or be referenced through a URL containing `pipe=sub` in the query string e.g. `example-test.html?pipe=sub`. The substitution syntax uses `{% raw %}{{ }}{% endraw %}` to delimit items for substitution. For -example to substitute in the host name on which the tests are running, -one would write: `{% raw %}{{host}}{% endraw %}`. - - -As well as the host, one can get full domains, including subdomains -using the `domains` dictionary. For example, `{% raw -%}{{domains[www]}}{% endraw %}` or `{% raw %}{{domains[élève]}}{% -endraw %}` would be replaced by the full qualified domain name of the -respective subdomains. +example to substitute in the main host name, one would write: +`{% raw %}{{host}}{% endraw %}`. + +To get full domains, including subdomains, there is the `hosts` +dictionary, where the first dimension is the name of the domain, and +the second the subdomain. For example, `{% raw %}{{hosts[][www]}}{% +endraw %}` would give the `www` subdomain under the main (unnamed) +domain, and `{% raw %}{{hosts[alt][élève]}}{% endraw %}` would give +the `élève` subdomain under the alt domain. + +For mostly historic reasons, the subdomains of the main domain are +also available under the `domains` dictionary; this is identical to +`hosts[]`. Ports are also available on a per-protocol basis. For example, `{% raw %}{{ports[ws][0]}}{% endraw %}` is replaced with the first (and only) diff --git a/tests/wpt/web-platform-tests/docs/_writing-tests/testdriver-tutorial.md b/tests/wpt/web-platform-tests/docs/_writing-tests/testdriver-tutorial.md new file mode 100644 index 000000000000..0b2165cb1e47 --- /dev/null +++ b/tests/wpt/web-platform-tests/docs/_writing-tests/testdriver-tutorial.md @@ -0,0 +1,317 @@ +# Adding new commands to testdriver.js + +## Assumptions +We assume the following in this writeup: + - You know what web-platform-tests is and you have a working checkout and can run tests + - You know what WebDriver or Selenium is + - Familiarity with JavaScript and Python + +## Introduction! + +Let's implement window resizing. We can do this via the [Set Window Rect](https://w3c.github.io/webdriver/webdriver-spec.html#dfn-set-window-rect) command in WebDriver. + +First, we need to think of what the API will look like a little. We will be using Selenium and Marionette for this, so we can look and see that they take in x, y coordinates, width and height integers. + +The first part of this will be browser agnostic, but later we will need to implement a specific layer for each browser (here we will do Firefox and Chrome). + +## Code! + +### [resources/testdriver.js](resources/testdriver.js) + +This is the main entry point the tests get. Here we need to add a function to the `test_driver` object that will call the `test_driver_internal` object. + +```javascript +window.test_driver = { + + // other commands... + + /** + * Triggers browser window to be resized and relocated + * + * This matches the behaviour of the {@link + * https://w3c.github.io/webdriver/webdriver-spec.html#dfn-set-window-rect|WebDriver + * Set Window Rect command}. + * + * @param {Integer} x - The x coordinate of the top left of the window + * @param {Integer} y - The x coordinate of the top left of the window + * @param {Integer} width - The width of the window + * @param {Integer} height - The width of the window + * @returns {Promise} fulfilled after window rect is set occurs, or rejected in + * the cases the WebDriver command errors + */ + set_window_rect: function(x, y, width, height) { + return window.test_driver_internal.set_element_rect(x, y, width, height); + } +``` + +In the same file, lets add to the internal object. ( do we need to do this?) (make sure to do this if the internal call has different arguments than the external call, especially if it calls multiple internal calls) + +```javascript +window.test_driver_internal = { + + // other commands... + + /** + * Triggers browser window to be resized and relocated + * + * This matches the behaviour of the {@link + * https://w3c.github.io/webdriver/webdriver-spec.html#dfn-set-window-rect|WebDriver + * Set Window Rect command}. + * + * @param {Integer} x - The x coordinate of the top left of the window + * @param {Integer} y - The x coordinate of the top left of the window + * @param {Integer} width - The width of the window + * @param {Integer} height - The width of the window + * @returns {Promise} fulfilled after window rect is set occurs, or rejected in + * the cases the WebDriver command errors + */ + set_window_rect: function(x, y, width, height) { + return Promise.reject(new Error("unimplemented")) + } +``` +We will leave this unimplemented and override it in another file. Lets do that now! + +### [wptrunner/wptrunner/testdriver-extra.js](tools/wptrunner/wptrunner/testdriver-extra.js) + +This will be the default function called when invoking the test driver commands (sometimes it is overridden by testdriver-vendor.js, but this is outside the scope of this writeup). + +```javascript +window.test_driver_internal.set_element_rect = function(x, y, width, height) { + const pending_promise = new Promise(function(resolve, reject) { + pending_resolve = resolve; + pending_reject = reject; + }); + window.opener.postMessage( + {"type": "action", "action": "set_window_rect", "x": x, "y": y, "width": width, "height": height}, "*"); + return pending_promise; +}; +``` +The main thing here is the `postMessage` argument. The first argument is an object with properties + - `type`: this always has to be the string `"action"` + - `action`: the name of the testdriver command this defines (in this case, `set_window_rect`) + - any other things you want to pass to the next point of execution (in this case, the x, y coordinates and the width and height) + + +The pending promise is out of scope of this function and is resolved when the window recieves a completion message from the executor. +This happens here in the same file: + +```javascript + let pending_resolve = null; + let pending_reject = null; + window.addEventListener("message", function(event) { + const data = event.data; + + if (typeof data !== "object" && data !== null) { + return; + } + + if (data.type !== "testdriver-complete") { + return; + } + + if (data.status === "success") { + pending_resolve(); + } else { + pending_reject(); + } + }); +``` + +One limitation this introduces is that only one testdriver call can be made at one time since the `pending_resolve` and `pending_reject` variables are in an outer scope. + +Next, this is passed to the executor and protocol in wptrunner. Time to switch to Python! + +[tools/wptrunner/wptrunner/executors/protocol.py](tools/wptrunner/wptrunner/executors/protocol.py) + +```python +class SetWindowRectProtocolPart(ProtocolPart): + """Protocol part for resizing and changing location of window""" + __metaclass__ = ABCMeta + + name = "set_window_rect" + + @abstractmethod + def set_window_rect(self, x, y, width, height): + """Change the window rect + + :param x: The x coordinate of the top left of the window. + :param y: The y coordinate of the top left of the window. + :param width: The width of the window. + :param height: The height of the window.""" + pass +``` + +Next we change the base executor. + +[tools/wptrunner/wptrunner/executors/base.py](tools/wptrunner/wptrunner/executors/base.py) + +```python +class CallbackHandler(object): + """Handle callbacks from testdriver-using tests. + + The default implementation here makes sense for things that are roughly like + WebDriver. Things that are more different to WebDriver may need to create a + fully custom implementation.""" + + def __init__(self, logger, protocol, test_window): + self.protocol = protocol + self.test_window = test_window + self.logger = logger + self.callbacks = { + "action": self.process_action, + "complete": self.process_complete + } + + self.actions = { + "click": ClickAction(self.logger, self.protocol), + "send_keys": SendKeysAction(self.logger, self.protocol), + {other actions}, + "set_window_rect": SetWindowRectAction(self.logger, self.protocol) # add this! + } +``` + +```python +class SetWindowRectAction(object): + def __init__(self, logger, protocol): + self.logger = logger + self.protocol = protocol + + def __call__(self, payload): + x, y, width, height = payload["x"], payload["y"], payload["width"], payload["height"] + self.logger.debug("Setting window rect to be: x=%s, y=%s, width=%s, height=%s" + .format(x, y, width, height)) + self.protocol.set_window_rect.set_window_rect(x, y, width, height) +``` + +Don't forget to write docs in ```testdriver.md```. +Now we write the browser specific implementations. + +### Chrome + +We will use [executorselenium](tools/wptrunner/wptrunner/executors/executorselenium.py) and use the Selenium API (in the future there are plans to use the WebDriver API directly). + +There isn't too much work to do here, we just need to define a subclass of the protocol part we defined earlier. + +```python +class SeleniumSetWindowRectProtocolPart(SetWindowRectProtocolPart): + def setup(self): + self.webdriver = self.parent.webdriver + + def set_window_rect(self, x, y, width, height): + return self.webdriver.set_window_rect(x, y, width, height) +``` + +Make sure to import the protocol part too! + +```python +from .protocol import (BaseProtocolPart, + TestharnessProtocolPart, + Protocol, + SelectorProtocolPart, + ClickProtocolPart, + SendKeysProtocolPart, + {... other protocol parts} + SetWindowRectProtocolPart, # add this! + TestDriverProtocolPart) +``` + +Here we have the setup method which just redefines the webdriver object at this level. The important part is the `set_window_rect` function (and it's important it is named that since we called it that earlier). This will be call the Selenium API for [set window rect](http://selenium-python.readthedocs.io/api.html#selenium.webdriver.remote.webdriver.WebDriver.set_window_rect) (`self.webdriver` is a Selenium WebDriver instance here). + +Finally, we just need to tell the SeleniumProtocol to implement this part. + +```python +class SeleniumProtocol(Protocol): + implements = [SeleniumBaseProtocolPart, + SeleniumTestharnessProtocolPart, + SeleniumSelectorProtocolPart, + SeleniumClickProtocolPart, + SeleniumSendKeysProtocolPart, + {... other protocol parts} + SeleniumSetWindowRectProtocolPart, + SeleniumTestDriverProtocolPart] +``` + + +### Firefox +We use the [set window rect](http://marionette-client.readthedocs.io/en/master/reference.html#marionette_driver.marionette.Marionette.set_window_rect) Marionette command. + +We will use [executormarionette](tools/wptrunner/wptrunner/executors/executormarionette.py) and use the Marionette Python API. + +We have little actual work to do here! We just need to define a subclass of the protocol part we defined earlier. + +```python +class MarionetteSetWindowRectProtocolPart(SetWindowRectProtocolPart): + def setup(self): + self.marionette = self.parent.marionette + + def set_window_rect(self, x, y, width, height): + return self.marionette.set_window_rect(x, y, width, height) +``` + +Make sure to import the protocol part too! + +```python +from .protocol import (BaseProtocolPart, + TestharnessProtocolPart, + Protocol, + SelectorProtocolPart, + ClickProtocolPart, + SendKeysProtocolPart, + {... other protocol parts} + SetWindowRectProtocolPart, # add this! + TestDriverProtocolPart) +``` + +Here we have the setup method which just redefines the webdriver object at this level. The important part is the `set_window_rect` function (and it's important it is named that since we called it that earlier). This will be call the Marionette API for [set window rect](http://marionette-client.readthedocs.io/en/master/reference.html#marionette_driver.marionette.Marionette.set_window_rect) (`self.marionette` is a marionette instance here). + +Finally, we just need to tell the SeleniumProtocol to implement this part. + +```python +class MarionetteProtocol(Protocol): + implements = [MarionetteBaseProtocolPart, + MarionetteTestharnessProtocolPart, + MarionettePrefsProtocolPart, + MarionetteStorageProtocolPart, + MarionetteSelectorProtocolPart, + MarionetteClickProtocolPart, + MarionetteSendKeysProtocolPart, + {... other protocol parts} + MarionetteSetWindowRectProtocolPart # add this + MarionetteTestDriverProtocolPart] +``` + +### Other Browsers + +Other browsers may also use executorselenium (such as safari), or a completely new executor (such as servo). For these, you must change the executor in the same way as we did with chrome and firefox. + +### Write an infra test + +Make sure to add a test to `infrastructure/testdriver` :) + +Here is some template code! + +```html + + +TestDriver set window rect method + + + + + + +``` +### What about testdriver-vendor.js? + +The file [testdriver-vendor.js](resources/testdriver-vendor.js) is the equivalent to testdriver-extra.js above, except is +run instead of testdriver-extra.js in browser specific test environments. For example, in [Chromium LayoutTests](https://cs.chromium.org/chromium/src/third_party/WebKit/LayoutTests/?q=LayoutTests&sq=package:chromium&dr). + +### What if I need to return a value from my testdriver API? + +We currently don't have this capability, but it is coming soon and will be documented. The bug is [here](https://github.com/w3c/web-platform-tests/issues/10716) + diff --git a/tests/wpt/web-platform-tests/docs/_writing-tests/testharness-api.md b/tests/wpt/web-platform-tests/docs/_writing-tests/testharness-api.md index d750086c6a3a..baa8772b8146 100644 --- a/tests/wpt/web-platform-tests/docs/_writing-tests/testharness-api.md +++ b/tests/wpt/web-platform-tests/docs/_writing-tests/testharness-api.md @@ -668,6 +668,17 @@ or a [`ServiceWorker`](https://slightlyoff.github.io/ServiceWorker/spec/service_ Once called, the containing document fetches all the tests from the worker and behaves as if those tests were running in the containing document itself. +`fetch_tests_from_worker` returns a promise that resolves once all the remote +tests have completed. This is useful if you're importing tests from multiple +workers and want to ensure they run in series: + +```js +(async function() { + await fetch_tests_from_worker(new Worker("worker-1.js")); + await fetch_tests_from_worker(new Worker("worker-2.js")); +})(); +``` + ## List of Assertions ## ### `assert_true(actual, description)` diff --git a/tests/wpt/web-platform-tests/docs/_writing-tests/testharness.md b/tests/wpt/web-platform-tests/docs/_writing-tests/testharness.md index e76d8bdad869..652cf63d7e35 100644 --- a/tests/wpt/web-platform-tests/docs/_writing-tests/testharness.md +++ b/tests/wpt/web-platform-tests/docs/_writing-tests/testharness.md @@ -19,6 +19,44 @@ documented in two sections: See [server features][] for advanced testing features that are commonly used with testharness.js. See also the [general guidelines][] for all test types. +## Variants + +A test file can have multiple variants by including `meta` elements, +for example: + +``` + + +``` + +The test can then do different things based on the URL. + +There is a utility script in `/common/subset-tests.js` that works +well together with variants, where a test that would otherwise have +too many tests to be useful can be split up in ranges of subtests. +For example: + +``` + +Testing variants + + + + +``` + + ## Auto-generated test boilerplate While most JavaScript tests require a certain amount of HTML @@ -121,7 +159,7 @@ can be used to include both the global and a local `utils.js` in a test. Use `// META: timeout=long` at the beginning of the resource. -### Specifying test variants in auto-generated boilerplate tests +### Specifying test [variants](#variants) in auto-generated boilerplate tests Use `// META: variant=url-suffix` at the beginning of the resource. For example, diff --git a/tests/wpt/web-platform-tests/docs/introduction.md b/tests/wpt/web-platform-tests/docs/introduction.md index 4e4932e21b2f..d021663224b6 100644 --- a/tests/wpt/web-platform-tests/docs/introduction.md +++ b/tests/wpt/web-platform-tests/docs/introduction.md @@ -114,10 +114,10 @@ For example, on most UNIX-like systems, you can setup the hosts file with: ./wpt make-hosts-file | sudo tee -a /etc/hosts ``` -And on Windows (note this requires an Administrator privileged shell): +And on Windows (this must be run in a PowerShell session with Administrator privileges): ```bash -python wpt make-hosts-file >> %SystemRoot%\System32\drivers\etc\hosts +python wpt make-hosts-file | Out-File %SystemRoot%\System32\drivers\etc\hosts -Encoding ascii -Append ``` If you are behind a proxy, you also need to make sure the domains above are @@ -130,20 +130,17 @@ The test environment can then be started using This will start HTTP servers on two ports and a websockets server on one port. By default the web servers start on ports 8000 and 8443 and the other ports are randomly-chosen free ports. Tests must be loaded from the -*first* HTTP server in the output. To change the ports, copy the -`config.default.json` file to `config.json` and edit the new file, -replacing the part that reads: +*first* HTTP server in the output. To change the ports, +create a `config.json` file in the wpt root directory, and add +port definitions of your choice e.g.: ``` -"http": [8000, "auto"], -"https":[8443] -``` - -to some ports of your choice e.g. - -``` -"http": [1234, "auto"], -"https":[5678] +{ + "ports": { + "http": [1234, "auto"], + "https":[5678] + } +} ``` After your `hosts` file is configured, the servers will be locally accessible at: diff --git a/tests/wpt/web-platform-tests/dom/OWNERS b/tests/wpt/web-platform-tests/dom/OWNERS index 487f8ddbc0e3..9e0a739c373d 100644 --- a/tests/wpt/web-platform-tests/dom/OWNERS +++ b/tests/wpt/web-platform-tests/dom/OWNERS @@ -1,3 +1,4 @@ @ayg @jdm @zqzhang +@annevk diff --git a/tests/wpt/web-platform-tests/dom/events/relatedTarget.window.js b/tests/wpt/web-platform-tests/dom/events/relatedTarget.window.js index d3632bb9e040..ebc83ceb209a 100644 --- a/tests/wpt/web-platform-tests/dom/events/relatedTarget.window.js +++ b/tests/wpt/web-platform-tests/dom/events/relatedTarget.window.js @@ -21,13 +21,13 @@ test(() => { for (target of [new XMLHttpRequest(), self, host]) { const event = new FocusEvent("demo", { relatedTarget: relatedTarget }); target.dispatchEvent(event); - assert_equals(event.target, null); - assert_equals(event.relatedTarget, null); + assert_equals(event.target, target); + assert_equals(event.relatedTarget, host); } } -}, "Reset if relatedTarget pointed to a shadow tree"); +}, "Retarget a shadow-tree relatedTarget"); -async_test(t => { +test(t => { const shadowChild = shadow.appendChild(document.createElement("div")); shadowChild.addEventListener("demo", t.step_func(() => document.body.appendChild(shadowChild))); const event = new FocusEvent("demo", { relatedTarget: new XMLHttpRequest() }); @@ -36,22 +36,20 @@ async_test(t => { assert_equals(event.target, null); assert_equals(event.relatedTarget, null); shadowChild.remove(); - t.done(); }, "Reset if target pointed to a shadow tree pre-dispatch"); -async_test(t => { +test(t => { const shadowChild = shadow.appendChild(document.createElement("div")); - shadowChild.addEventListener("demo", t.step_func(() => document.body.appendChild(shadowChild))); + document.body.addEventListener("demo", t.step_func(() => document.body.appendChild(shadowChild))); const event = new FocusEvent("demo", { relatedTarget: shadowChild }); document.body.dispatchEvent(event); assert_equals(shadowChild.parentNode, document.body); - assert_equals(event.target, null); - assert_equals(event.relatedTarget, null); + assert_equals(event.target, document.body); + assert_equals(event.relatedTarget, host); shadowChild.remove(); - t.done(); -}, "Reset if relatedTarget pointed to a shadow tree pre-dispatch"); +}, "Retarget a shadow-tree relatedTarget, part 2"); -async_test(t => { +test(t => { const event = new FocusEvent("heya", { relatedTarget: shadow, cancelable: true }), callback = t.unreached_func(); host.addEventListener("heya", callback); @@ -64,10 +62,9 @@ async_test(t => { // Check that the dispatch flag is cleared event.initEvent("x"); assert_equals(event.type, "x"); - t.done(); }, "Reset targets on early return"); -async_test(t => { +test(t => { const input = document.body.appendChild(document.createElement("input")), event = new MouseEvent("click", { relatedTarget: shadow }); let seen = false; @@ -81,5 +78,4 @@ async_test(t => { }); assert_true(input.dispatchEvent(event)); assert_true(seen); - t.done(); }, "Reset targets before activation behavior"); diff --git a/tests/wpt/web-platform-tests/dom/nodes/Node-normalize.html b/tests/wpt/web-platform-tests/dom/nodes/Node-normalize.html index 7598852e60a9..4d455996e553 100644 --- a/tests/wpt/web-platform-tests/dom/nodes/Node-normalize.html +++ b/tests/wpt/web-platform-tests/dom/nodes/Node-normalize.html @@ -51,4 +51,33 @@ div.normalize(); assert_array_equals(div.childNodes, []) }, "Empty text nodes") + +// The specification for normalize is clear that only "exclusive Text +// nodes" are to be modified. This excludes CDATASection nodes, which +// derive from Text. Naïve implementations may fail to skip +// CDATASection nodes, or even worse, try to test textContent or +// nodeValue without taking care to check the node type. They will +// fail this test. +test(function() { + // We create an XML document so that we can create CDATASection. + // Except for the CDATASection the result should be the same for + // an HTML document. (No non-Text node should be touched.) + var doc = new DOMParser().parseFromString("
", "text/xml") + var div = doc.documentElement + var t1 = div.appendChild(doc.createTextNode("a")) + // The first parameter is the "target" of the processing + // instruction, and the 2nd is the text content. + var t2 = div.appendChild(doc.createProcessingInstruction("pi", "")) + var t3 = div.appendChild(doc.createTextNode("b")) + var t4 = div.appendChild(doc.createCDATASection("")) + var t5 = div.appendChild(doc.createTextNode("c")) + var t6 = div.appendChild(doc.createComment("")) + var t7 = div.appendChild(doc.createTextNode("d")) + var t8 = div.appendChild(doc.createElement("el")) + var t9 = div.appendChild(doc.createTextNode("e")) + var expected = [t1, t2, t3, t4, t5, t6, t7, t8, t9] + assert_array_equals(div.childNodes, expected) + div.normalize() + assert_array_equals(div.childNodes, expected) +}, "Non-text nodes with empty textContent values.") diff --git a/tests/wpt/web-platform-tests/dpub-aam/doc-abstract-manual.html b/tests/wpt/web-platform-tests/dpub-aam/doc-abstract-manual.html index c8b39bda0351..b67c7fa424b3 100644 --- a/tests/wpt/web-platform-tests/dpub-aam/doc-abstract-manual.html +++ b/tests/wpt/web-platform-tests/dpub-aam/doc-abstract-manual.html @@ -2,7 +2,6 @@ doc-abstract - diff --git a/tests/wpt/web-platform-tests/dpub-aam/doc-acknowledgments-manual.html b/tests/wpt/web-platform-tests/dpub-aam/doc-acknowledgments-manual.html index e45c462727a5..fad68aea0fde 100644 --- a/tests/wpt/web-platform-tests/dpub-aam/doc-acknowledgments-manual.html +++ b/tests/wpt/web-platform-tests/dpub-aam/doc-acknowledgments-manual.html @@ -2,7 +2,6 @@ doc-acknowledgments - diff --git a/tests/wpt/web-platform-tests/dpub-aam/doc-afterword-manual.html b/tests/wpt/web-platform-tests/dpub-aam/doc-afterword-manual.html index 94cd2d8e9731..2a1f84b19cb2 100644 --- a/tests/wpt/web-platform-tests/dpub-aam/doc-afterword-manual.html +++ b/tests/wpt/web-platform-tests/dpub-aam/doc-afterword-manual.html @@ -2,7 +2,6 @@ doc-afterword - diff --git a/tests/wpt/web-platform-tests/dpub-aam/doc-appendix-manual.html b/tests/wpt/web-platform-tests/dpub-aam/doc-appendix-manual.html index da4bf3c6cf42..c0ec8c815f79 100644 --- a/tests/wpt/web-platform-tests/dpub-aam/doc-appendix-manual.html +++ b/tests/wpt/web-platform-tests/dpub-aam/doc-appendix-manual.html @@ -2,7 +2,6 @@ doc-appendix - diff --git a/tests/wpt/web-platform-tests/dpub-aam/doc-backlink-manual.html b/tests/wpt/web-platform-tests/dpub-aam/doc-backlink-manual.html index 51eb6acc7ca0..fc4b4fac7aef 100644 --- a/tests/wpt/web-platform-tests/dpub-aam/doc-backlink-manual.html +++ b/tests/wpt/web-platform-tests/dpub-aam/doc-backlink-manual.html @@ -2,7 +2,6 @@ doc-backlink - diff --git a/tests/wpt/web-platform-tests/dpub-aam/doc-biblioentry-manual.html b/tests/wpt/web-platform-tests/dpub-aam/doc-biblioentry-manual.html index d97ec2a70c3a..160bf10568ee 100644 --- a/tests/wpt/web-platform-tests/dpub-aam/doc-biblioentry-manual.html +++ b/tests/wpt/web-platform-tests/dpub-aam/doc-biblioentry-manual.html @@ -2,7 +2,6 @@ doc-biblioentry - diff --git a/tests/wpt/web-platform-tests/dpub-aam/doc-bibliography-manual.html b/tests/wpt/web-platform-tests/dpub-aam/doc-bibliography-manual.html index c69a17aa294c..b5eedf1c4477 100644 --- a/tests/wpt/web-platform-tests/dpub-aam/doc-bibliography-manual.html +++ b/tests/wpt/web-platform-tests/dpub-aam/doc-bibliography-manual.html @@ -2,7 +2,6 @@ doc-bibliography - diff --git a/tests/wpt/web-platform-tests/dpub-aam/doc-biblioref-manual.html b/tests/wpt/web-platform-tests/dpub-aam/doc-biblioref-manual.html index 29ea65fe2162..860f1efc4c90 100644 --- a/tests/wpt/web-platform-tests/dpub-aam/doc-biblioref-manual.html +++ b/tests/wpt/web-platform-tests/dpub-aam/doc-biblioref-manual.html @@ -2,7 +2,6 @@ doc-biblioref - diff --git a/tests/wpt/web-platform-tests/dpub-aam/doc-chapter-manual.html b/tests/wpt/web-platform-tests/dpub-aam/doc-chapter-manual.html index 3a080ae755cf..1a4e95e87bbc 100644 --- a/tests/wpt/web-platform-tests/dpub-aam/doc-chapter-manual.html +++ b/tests/wpt/web-platform-tests/dpub-aam/doc-chapter-manual.html @@ -2,7 +2,6 @@ doc-chapter - diff --git a/tests/wpt/web-platform-tests/dpub-aam/doc-colophon-manual.html b/tests/wpt/web-platform-tests/dpub-aam/doc-colophon-manual.html index b7cdb5ad9f4b..78ae8edae7cb 100644 --- a/tests/wpt/web-platform-tests/dpub-aam/doc-colophon-manual.html +++ b/tests/wpt/web-platform-tests/dpub-aam/doc-colophon-manual.html @@ -2,7 +2,6 @@ doc-colophon - diff --git a/tests/wpt/web-platform-tests/dpub-aam/doc-conclusion-manual.html b/tests/wpt/web-platform-tests/dpub-aam/doc-conclusion-manual.html index c1786c8dbfb4..6ad672ef0030 100644 --- a/tests/wpt/web-platform-tests/dpub-aam/doc-conclusion-manual.html +++ b/tests/wpt/web-platform-tests/dpub-aam/doc-conclusion-manual.html @@ -2,7 +2,6 @@ doc-conclusion - diff --git a/tests/wpt/web-platform-tests/dpub-aam/doc-cover-manual.html b/tests/wpt/web-platform-tests/dpub-aam/doc-cover-manual.html index c09931fbde6a..4c2da2f9bdae 100644 --- a/tests/wpt/web-platform-tests/dpub-aam/doc-cover-manual.html +++ b/tests/wpt/web-platform-tests/dpub-aam/doc-cover-manual.html @@ -2,7 +2,6 @@ doc-cover - diff --git a/tests/wpt/web-platform-tests/dpub-aam/doc-credit-manual.html b/tests/wpt/web-platform-tests/dpub-aam/doc-credit-manual.html index f23baa5bc64d..a3774d39edf4 100644 --- a/tests/wpt/web-platform-tests/dpub-aam/doc-credit-manual.html +++ b/tests/wpt/web-platform-tests/dpub-aam/doc-credit-manual.html @@ -2,7 +2,6 @@ doc-credit - diff --git a/tests/wpt/web-platform-tests/dpub-aam/doc-credits-manual.html b/tests/wpt/web-platform-tests/dpub-aam/doc-credits-manual.html index 5562c5d9dab8..f0eb11109e34 100644 --- a/tests/wpt/web-platform-tests/dpub-aam/doc-credits-manual.html +++ b/tests/wpt/web-platform-tests/dpub-aam/doc-credits-manual.html @@ -2,7 +2,6 @@ doc-credits - diff --git a/tests/wpt/web-platform-tests/dpub-aam/doc-dedication-manual.html b/tests/wpt/web-platform-tests/dpub-aam/doc-dedication-manual.html index 9c95d9298907..20d83487cd04 100644 --- a/tests/wpt/web-platform-tests/dpub-aam/doc-dedication-manual.html +++ b/tests/wpt/web-platform-tests/dpub-aam/doc-dedication-manual.html @@ -2,7 +2,6 @@ doc-dedication - diff --git a/tests/wpt/web-platform-tests/dpub-aam/doc-endnote-manual.html b/tests/wpt/web-platform-tests/dpub-aam/doc-endnote-manual.html index 63320c96cad8..43dd4b529ba1 100644 --- a/tests/wpt/web-platform-tests/dpub-aam/doc-endnote-manual.html +++ b/tests/wpt/web-platform-tests/dpub-aam/doc-endnote-manual.html @@ -2,7 +2,6 @@ doc-endnote - diff --git a/tests/wpt/web-platform-tests/dpub-aam/doc-endnotes-manual.html b/tests/wpt/web-platform-tests/dpub-aam/doc-endnotes-manual.html index 040b6e9c56c8..11365c0645ad 100644 --- a/tests/wpt/web-platform-tests/dpub-aam/doc-endnotes-manual.html +++ b/tests/wpt/web-platform-tests/dpub-aam/doc-endnotes-manual.html @@ -2,7 +2,6 @@ doc-endnotes - diff --git a/tests/wpt/web-platform-tests/dpub-aam/doc-epigraph-manual.html b/tests/wpt/web-platform-tests/dpub-aam/doc-epigraph-manual.html index 26b5d638bbb4..7e1e0386494b 100644 --- a/tests/wpt/web-platform-tests/dpub-aam/doc-epigraph-manual.html +++ b/tests/wpt/web-platform-tests/dpub-aam/doc-epigraph-manual.html @@ -2,7 +2,6 @@ doc-epigraph - diff --git a/tests/wpt/web-platform-tests/dpub-aam/doc-epilogue-manual.html b/tests/wpt/web-platform-tests/dpub-aam/doc-epilogue-manual.html index 059e7c3cea8d..f00613c64116 100644 --- a/tests/wpt/web-platform-tests/dpub-aam/doc-epilogue-manual.html +++ b/tests/wpt/web-platform-tests/dpub-aam/doc-epilogue-manual.html @@ -2,7 +2,6 @@ doc-epilogue - diff --git a/tests/wpt/web-platform-tests/dpub-aam/doc-errata-manual.html b/tests/wpt/web-platform-tests/dpub-aam/doc-errata-manual.html index 759fb6ca6e45..e37fe92bdb80 100644 --- a/tests/wpt/web-platform-tests/dpub-aam/doc-errata-manual.html +++ b/tests/wpt/web-platform-tests/dpub-aam/doc-errata-manual.html @@ -2,7 +2,6 @@ doc-errata - diff --git a/tests/wpt/web-platform-tests/dpub-aam/doc-example-manual.html b/tests/wpt/web-platform-tests/dpub-aam/doc-example-manual.html index df11392abff9..32c32d812cc8 100644 --- a/tests/wpt/web-platform-tests/dpub-aam/doc-example-manual.html +++ b/tests/wpt/web-platform-tests/dpub-aam/doc-example-manual.html @@ -2,7 +2,6 @@ doc-example - diff --git a/tests/wpt/web-platform-tests/dpub-aam/doc-footnote-manual.html b/tests/wpt/web-platform-tests/dpub-aam/doc-footnote-manual.html index ad5f1f7116e4..c865fa101613 100644 --- a/tests/wpt/web-platform-tests/dpub-aam/doc-footnote-manual.html +++ b/tests/wpt/web-platform-tests/dpub-aam/doc-footnote-manual.html @@ -2,7 +2,6 @@ doc-footnote - diff --git a/tests/wpt/web-platform-tests/dpub-aam/doc-foreword-manual.html b/tests/wpt/web-platform-tests/dpub-aam/doc-foreword-manual.html index c56d31446223..2774b50ef979 100644 --- a/tests/wpt/web-platform-tests/dpub-aam/doc-foreword-manual.html +++ b/tests/wpt/web-platform-tests/dpub-aam/doc-foreword-manual.html @@ -2,7 +2,6 @@ doc-foreword - diff --git a/tests/wpt/web-platform-tests/dpub-aam/doc-glossary-manual.html b/tests/wpt/web-platform-tests/dpub-aam/doc-glossary-manual.html index b22e3be66c5e..8a5baeef63ba 100644 --- a/tests/wpt/web-platform-tests/dpub-aam/doc-glossary-manual.html +++ b/tests/wpt/web-platform-tests/dpub-aam/doc-glossary-manual.html @@ -2,7 +2,6 @@ doc-glossary - diff --git a/tests/wpt/web-platform-tests/dpub-aam/doc-glossref-manual.html b/tests/wpt/web-platform-tests/dpub-aam/doc-glossref-manual.html index 6a03b871c329..99b8edd2172b 100644 --- a/tests/wpt/web-platform-tests/dpub-aam/doc-glossref-manual.html +++ b/tests/wpt/web-platform-tests/dpub-aam/doc-glossref-manual.html @@ -2,7 +2,6 @@ doc-glossref - diff --git a/tests/wpt/web-platform-tests/dpub-aam/doc-index-manual.html b/tests/wpt/web-platform-tests/dpub-aam/doc-index-manual.html index b24abfa29385..39491e031341 100644 --- a/tests/wpt/web-platform-tests/dpub-aam/doc-index-manual.html +++ b/tests/wpt/web-platform-tests/dpub-aam/doc-index-manual.html @@ -2,7 +2,6 @@ doc-index - diff --git a/tests/wpt/web-platform-tests/dpub-aam/doc-introduction-manual.html b/tests/wpt/web-platform-tests/dpub-aam/doc-introduction-manual.html index e720f74c48ea..fadf2d97f5b9 100644 --- a/tests/wpt/web-platform-tests/dpub-aam/doc-introduction-manual.html +++ b/tests/wpt/web-platform-tests/dpub-aam/doc-introduction-manual.html @@ -2,7 +2,6 @@ doc-introduction - diff --git a/tests/wpt/web-platform-tests/dpub-aam/doc-noteref-manual.html b/tests/wpt/web-platform-tests/dpub-aam/doc-noteref-manual.html index f78af805eafa..3f053bce693a 100644 --- a/tests/wpt/web-platform-tests/dpub-aam/doc-noteref-manual.html +++ b/tests/wpt/web-platform-tests/dpub-aam/doc-noteref-manual.html @@ -2,7 +2,6 @@ doc-noteref - diff --git a/tests/wpt/web-platform-tests/dpub-aam/doc-notice-manual.html b/tests/wpt/web-platform-tests/dpub-aam/doc-notice-manual.html index d3135a763166..0656b539d661 100644 --- a/tests/wpt/web-platform-tests/dpub-aam/doc-notice-manual.html +++ b/tests/wpt/web-platform-tests/dpub-aam/doc-notice-manual.html @@ -2,7 +2,6 @@ doc-notice - diff --git a/tests/wpt/web-platform-tests/dpub-aam/doc-pagebreak-manual.html b/tests/wpt/web-platform-tests/dpub-aam/doc-pagebreak-manual.html index 1bafd77cbeb2..239094831814 100644 --- a/tests/wpt/web-platform-tests/dpub-aam/doc-pagebreak-manual.html +++ b/tests/wpt/web-platform-tests/dpub-aam/doc-pagebreak-manual.html @@ -2,7 +2,6 @@ doc-pagebreak - diff --git a/tests/wpt/web-platform-tests/dpub-aam/doc-pagelist-manual.html b/tests/wpt/web-platform-tests/dpub-aam/doc-pagelist-manual.html index 24bd42e0c24f..33993fe84776 100644 --- a/tests/wpt/web-platform-tests/dpub-aam/doc-pagelist-manual.html +++ b/tests/wpt/web-platform-tests/dpub-aam/doc-pagelist-manual.html @@ -2,7 +2,6 @@ doc-pagelist - diff --git a/tests/wpt/web-platform-tests/dpub-aam/doc-part-manual.html b/tests/wpt/web-platform-tests/dpub-aam/doc-part-manual.html index bc06f0ef43a8..997be1e4a8ee 100644 --- a/tests/wpt/web-platform-tests/dpub-aam/doc-part-manual.html +++ b/tests/wpt/web-platform-tests/dpub-aam/doc-part-manual.html @@ -2,7 +2,6 @@ doc-part - diff --git a/tests/wpt/web-platform-tests/dpub-aam/doc-preface-manual.html b/tests/wpt/web-platform-tests/dpub-aam/doc-preface-manual.html index 0a2bdbfe6a00..8ed5d3b15371 100644 --- a/tests/wpt/web-platform-tests/dpub-aam/doc-preface-manual.html +++ b/tests/wpt/web-platform-tests/dpub-aam/doc-preface-manual.html @@ -2,7 +2,6 @@ doc-preface - diff --git a/tests/wpt/web-platform-tests/dpub-aam/doc-prologue-manual.html b/tests/wpt/web-platform-tests/dpub-aam/doc-prologue-manual.html index 077cfb832e0d..b806c2e9650f 100644 --- a/tests/wpt/web-platform-tests/dpub-aam/doc-prologue-manual.html +++ b/tests/wpt/web-platform-tests/dpub-aam/doc-prologue-manual.html @@ -2,7 +2,6 @@ doc-prologue - diff --git a/tests/wpt/web-platform-tests/dpub-aam/doc-pullquote-manual.html b/tests/wpt/web-platform-tests/dpub-aam/doc-pullquote-manual.html index 543c4ed90356..b52c970df76c 100644 --- a/tests/wpt/web-platform-tests/dpub-aam/doc-pullquote-manual.html +++ b/tests/wpt/web-platform-tests/dpub-aam/doc-pullquote-manual.html @@ -2,7 +2,6 @@ doc-pullquote - diff --git a/tests/wpt/web-platform-tests/dpub-aam/doc-qna-manual.html b/tests/wpt/web-platform-tests/dpub-aam/doc-qna-manual.html index 8b9c4666d148..a334d64939ae 100644 --- a/tests/wpt/web-platform-tests/dpub-aam/doc-qna-manual.html +++ b/tests/wpt/web-platform-tests/dpub-aam/doc-qna-manual.html @@ -2,7 +2,6 @@ doc-qna - diff --git a/tests/wpt/web-platform-tests/dpub-aam/doc-subtitle-manual.html b/tests/wpt/web-platform-tests/dpub-aam/doc-subtitle-manual.html index 551891983d5e..217f61284c76 100644 --- a/tests/wpt/web-platform-tests/dpub-aam/doc-subtitle-manual.html +++ b/tests/wpt/web-platform-tests/dpub-aam/doc-subtitle-manual.html @@ -2,7 +2,6 @@ doc-subtitle - diff --git a/tests/wpt/web-platform-tests/dpub-aam/doc-tip-manual.html b/tests/wpt/web-platform-tests/dpub-aam/doc-tip-manual.html index ec59b0f0b5c0..dda02b679859 100644 --- a/tests/wpt/web-platform-tests/dpub-aam/doc-tip-manual.html +++ b/tests/wpt/web-platform-tests/dpub-aam/doc-tip-manual.html @@ -2,7 +2,6 @@ doc-tip - diff --git a/tests/wpt/web-platform-tests/dpub-aam/doc-toc-manual.html b/tests/wpt/web-platform-tests/dpub-aam/doc-toc-manual.html index c3969e232205..a06a58dfa654 100644 --- a/tests/wpt/web-platform-tests/dpub-aam/doc-toc-manual.html +++ b/tests/wpt/web-platform-tests/dpub-aam/doc-toc-manual.html @@ -2,7 +2,6 @@ doc-toc - diff --git a/tests/wpt/web-platform-tests/dpub-aria/inuse-manual.html b/tests/wpt/web-platform-tests/dpub-aria/inuse-manual.html index 1609337468ad..cd6af1e7358b 100644 --- a/tests/wpt/web-platform-tests/dpub-aria/inuse-manual.html +++ b/tests/wpt/web-platform-tests/dpub-aria/inuse-manual.html @@ -2,7 +2,6 @@ Check for Dpub Vocabulary Role Usage - + + + + +
+

Spacers below to make page scrollable

+
+
+
+

EOF

+ + diff --git a/tests/wpt/web-platform-tests/feature-policy/resources/picture-in-picture.js b/tests/wpt/web-platform-tests/feature-policy/resources/picture-in-picture.js index 7ccd0f8837fa..6bdb7e5e49f5 100644 --- a/tests/wpt/web-platform-tests/feature-policy/resources/picture-in-picture.js +++ b/tests/wpt/web-platform-tests/feature-policy/resources/picture-in-picture.js @@ -1,13 +1,16 @@ function isPictureInPictureAllowed() { - return new Promise((resolve, reject) => { - const video = document.createElement('video'); - video.requestPictureInPicture() - .then(() => resolve(document.pictureInPictureEnabled)) - .catch(e => { - if (e.name == 'NotAllowedError') - resolve(document.pictureInPictureEnabled); - else - resolve(false); - }); + return new Promise(resolve => { + let video = document.createElement('video'); + video.src = '/media/movie_5.ogv'; + video.onloadedmetadata = () => { + video.requestPictureInPicture() + .then(() => resolve(document.pictureInPictureEnabled)) + .catch(e => { + if (e.name == 'NotAllowedError') + resolve(document.pictureInPictureEnabled); + else + resolve(false); + }); + }; }); } \ No newline at end of file diff --git a/tests/wpt/web-platform-tests/fetch/api/abort/serviceworker-intercepted.https.html b/tests/wpt/web-platform-tests/fetch/api/abort/serviceworker-intercepted.https.html index 6df6aef2cdaa..623036d46639 100644 --- a/tests/wpt/web-platform-tests/fetch/api/abort/serviceworker-intercepted.https.html +++ b/tests/wpt/web-platform-tests/fetch/api/abort/serviceworker-intercepted.https.html @@ -13,25 +13,18 @@ const SCOPE = '../resources/basic.html'; const BODY_METHODS = ['arrayBuffer', 'blob', 'formData', 'json', 'text']; - async function cleanup() { - for (const iframe of document.querySelectorAll('.test-iframe')) { - iframe.parentNode.removeChild(iframe); - } - - const reg = await navigator.serviceWorker.getRegistration(SCOPE); - if (reg) await reg.unregister(); - } - - async function setupRegistration(t) { - await cleanup(); - const reg = await navigator.serviceWorker.register('../resources/sw-intercept.js', { scope: SCOPE }); + async function setupRegistration(t, scope) { + const reg = await navigator.serviceWorker.register('../resources/sw-intercept.js', { scope }); await wait_for_state(t, reg.installing, 'activated'); + add_completion_callback(_ => reg.unregister()); return reg; } promise_test(async t => { - await setupRegistration(t); - const iframe = await with_iframe(SCOPE); + const scope = SCOPE + "?q=aborted-not-intercepted"; + await setupRegistration(t, scope); + const iframe = await with_iframe(scope); + add_completion_callback(_ => iframe.remove()); const w = iframe.contentWindow; const controller = new w.AbortController(); @@ -56,8 +49,10 @@ for (const bodyMethod of BODY_METHODS) { promise_test(async t => { - await setupRegistration(t); - const iframe = await with_iframe(SCOPE); + const scope = SCOPE + "?q=aborted-" + bodyMethod + "-rejects"; + await setupRegistration(t, scope); + const iframe = await with_iframe(scope); + add_completion_callback(_ => iframe.remove()); const w = iframe.contentWindow; const controller = new w.AbortController(); @@ -82,8 +77,10 @@ } promise_test(async t => { - await setupRegistration(t); - const iframe = await with_iframe(SCOPE); + const scope = SCOPE + "?q=aborted-stream-errors"; + await setupRegistration(t, scope); + const iframe = await with_iframe(scope); + add_completion_callback(_ => iframe.remove()); const w = iframe.contentWindow; const controller = new w.AbortController(); diff --git a/tests/wpt/web-platform-tests/fetch/api/cors/cors-expose-star-worker.html b/tests/wpt/web-platform-tests/fetch/api/cors/cors-expose-star-worker.html deleted file mode 100644 index db9b94320cfe..000000000000 --- a/tests/wpt/web-platform-tests/fetch/api/cors/cors-expose-star-worker.html +++ /dev/null @@ -1,14 +0,0 @@ - - - - - Fetch in worker: Access-Control-Expose-Headers: * - - - - - - - diff --git a/tests/wpt/web-platform-tests/fetch/api/cors/cors-expose-star.html b/tests/wpt/web-platform-tests/fetch/api/cors/cors-expose-star.html deleted file mode 100644 index 37223bdaaa64..000000000000 --- a/tests/wpt/web-platform-tests/fetch/api/cors/cors-expose-star.html +++ /dev/null @@ -1,13 +0,0 @@ - - - - - Fetch: Access-Control-Expose-Headers: * - - - - - - - - diff --git a/tests/wpt/web-platform-tests/fetch/api/cors/cors-expose-star.js b/tests/wpt/web-platform-tests/fetch/api/cors/cors-expose-star.sub.any.js similarity index 93% rename from tests/wpt/web-platform-tests/fetch/api/cors/cors-expose-star.js rename to tests/wpt/web-platform-tests/fetch/api/cors/cors-expose-star.sub.any.js index edf4d4241796..340e99ab5f99 100644 --- a/tests/wpt/web-platform-tests/fetch/api/cors/cors-expose-star.js +++ b/tests/wpt/web-platform-tests/fetch/api/cors/cors-expose-star.sub.any.js @@ -1,7 +1,4 @@ -if (this.document === undefined) { - importScripts("/resources/testharness.js"); - importScripts("../resources/utils.js"); -} +// META: script=../resources/utils.js const url = "http://{{host}}:{{ports[http][1]}}" + dirname(location.pathname) + RESOURCES_DIR + "top.txt", sharedHeaders = "?pipe=header(Access-Control-Expose-Headers,*)|header(Test,X)|header(Set-Cookie,X)|header(*,whoa)|" diff --git a/tests/wpt/web-platform-tests/fetch/api/cors/cors-filtering-worker.html b/tests/wpt/web-platform-tests/fetch/api/cors/cors-filtering-worker.html deleted file mode 100644 index f15566fc509d..000000000000 --- a/tests/wpt/web-platform-tests/fetch/api/cors/cors-filtering-worker.html +++ /dev/null @@ -1,18 +0,0 @@ - - - - - Fetch in worker: filtered headers in CORS response - - - - - - - - - - - \ No newline at end of file diff --git a/tests/wpt/web-platform-tests/fetch/api/cors/cors-filtering.html b/tests/wpt/web-platform-tests/fetch/api/cors/cors-filtering.html deleted file mode 100644 index b7500ad16d44..000000000000 --- a/tests/wpt/web-platform-tests/fetch/api/cors/cors-filtering.html +++ /dev/null @@ -1,17 +0,0 @@ - - - - - Fetch: filtered headers in CORS response - - - - - - - - - - - - \ No newline at end of file diff --git a/tests/wpt/web-platform-tests/fetch/api/cors/cors-filtering.js b/tests/wpt/web-platform-tests/fetch/api/cors/cors-filtering.sub.any.js similarity index 92% rename from tests/wpt/web-platform-tests/fetch/api/cors/cors-filtering.js rename to tests/wpt/web-platform-tests/fetch/api/cors/cors-filtering.sub.any.js index 1feaa5924f6a..a26eaccf2a5c 100644 --- a/tests/wpt/web-platform-tests/fetch/api/cors/cors-filtering.js +++ b/tests/wpt/web-platform-tests/fetch/api/cors/cors-filtering.sub.any.js @@ -1,7 +1,4 @@ -if (this.document === undefined) { - importScripts("/resources/testharness.js"); - importScripts("../resources/utils.js"); -} +// META: script=../resources/utils.js function corsFilter(corsUrl, headerName, headerValue, isFiltered) { var url = corsUrl + "?pipe=header(" + headerName + "," + encodeURIComponent(headerValue) +")|header(Access-Control-Allow-Origin,*)"; @@ -52,18 +49,17 @@ corsFilter(url, "Content-Type", "text/html", false); corsFilter(url, "Expires","04 May 1988 22:22:22 GMT" , false); corsFilter(url, "Last-Modified", "04 May 1988 22:22:22 GMT", false); corsFilter(url, "Pragma", "no-cache", false); +corsFilter(url, "Content-Length", "3" , false); // top.txt contains "top" corsFilter(url, "Age", "27", true); corsFilter(url, "Server", "wptServe" , true); corsFilter(url, "Warning", "Mind the gap" , true); -corsFilter(url, "Content-Length", "3" , true); // top.txt contains "top" corsFilter(url, "Set-Cookie", "name=value" , true); corsFilter(url, "Set-Cookie2", "name=value" , true); corsExposeFilter(url, "Age", "27", false); corsExposeFilter(url, "Server", "wptServe" , false); corsExposeFilter(url, "Warning", "Mind the gap" , false); -corsExposeFilter(url, "Content-Length", "3" , false); corsExposeFilter(url, "Set-Cookie", "name=value" , true); corsExposeFilter(url, "Set-Cookie2", "name=value" , true); diff --git a/tests/wpt/web-platform-tests/fetch/api/cors/cors-multiple-origins-worker.html b/tests/wpt/web-platform-tests/fetch/api/cors/cors-multiple-origins-worker.html deleted file mode 100644 index a8e50573278d..000000000000 --- a/tests/wpt/web-platform-tests/fetch/api/cors/cors-multiple-origins-worker.html +++ /dev/null @@ -1,19 +0,0 @@ - - - - - Fetch in worker: check multiple Access-Control-Allow-Origin header management - - - - - - - - - - - - \ No newline at end of file diff --git a/tests/wpt/web-platform-tests/fetch/api/cors/cors-multiple-origins.html b/tests/wpt/web-platform-tests/fetch/api/cors/cors-multiple-origins.html deleted file mode 100644 index 9b12b05064b0..000000000000 --- a/tests/wpt/web-platform-tests/fetch/api/cors/cors-multiple-origins.html +++ /dev/null @@ -1,18 +0,0 @@ - - - - - Fetch: check multiple Access-Control-Allow-Origin header management - - - - - - - - - - - - - \ No newline at end of file diff --git a/tests/wpt/web-platform-tests/fetch/api/cors/cors-multiple-origins.js b/tests/wpt/web-platform-tests/fetch/api/cors/cors-multiple-origins.js deleted file mode 100644 index e4cf7245dcfa..000000000000 --- a/tests/wpt/web-platform-tests/fetch/api/cors/cors-multiple-origins.js +++ /dev/null @@ -1,32 +0,0 @@ -if (this.document === undefined) { - importScripts("/resources/testharness.js"); - importScripts("../resources/utils.js"); -} - -function corsMultipleOrigins(desc, originList, shouldPass) { - var urlParameters = "?origin=" + encodeURIComponent(originList.join(", ")); - var url = "http://{{host}}:{{ports[http][1]}}" + dirname(location.pathname) + RESOURCES_DIR + "preflight.py"; - - if (shouldPass) { - promise_test(function(test) { - return fetch(url + urlParameters).then(function(resp) { - assert_equals(resp.status, 200, "Response's status is 200"); - }); - }, desc); - } else { - promise_test(function(test) { - return promise_rejects(test, new TypeError(), fetch(url + urlParameters)); - }, desc); - } -} -/* Actual origin */ -var origin = "http://{{host}}:{{ports[http][0]}}"; - -corsMultipleOrigins("3 origins allowed, match the 3rd (" + origin + ")", ["\"\"", "http://example.com", origin], true); -corsMultipleOrigins("3 origins allowed, match the 3rd (\"*\")", ["\"\"", "http://example.com", "*"], true); -corsMultipleOrigins("3 origins allowed, match twice (" + origin + ")", ["\"\"", origin, origin], true); -corsMultipleOrigins("3 origins allowed, match twice (\"*\")", ["*", "http://example.com", "*"], true); -corsMultipleOrigins("3 origins allowed, match twice (\"*\" and " + origin + ")", ["*", "http://example.com", origin], true); -corsMultipleOrigins("3 origins allowed, no match", ["", "http://example.com", "https://example2.com"], false); - -done(); diff --git a/tests/wpt/web-platform-tests/fetch/api/cors/cors-multiple-origins.sub.any.js b/tests/wpt/web-platform-tests/fetch/api/cors/cors-multiple-origins.sub.any.js new file mode 100644 index 000000000000..f32b387022be --- /dev/null +++ b/tests/wpt/web-platform-tests/fetch/api/cors/cors-multiple-origins.sub.any.js @@ -0,0 +1,21 @@ +// META: script=../resources/utils.js + +function corsMultipleOrigins(originList) { + var urlParameters = "?origin=" + encodeURIComponent(originList.join(", ")); + var url = "http://{{host}}:{{ports[http][1]}}" + dirname(location.pathname) + RESOURCES_DIR + "preflight.py"; + + promise_test(function(test) { + return promise_rejects(test, new TypeError(), fetch(url + urlParameters)); + }, "Listing multiple origins is illegal: " + originList); +} +/* Actual origin */ +var origin = "http://{{host}}:{{ports[http][0]}}"; + +corsMultipleOrigins(["\"\"", "http://example.com", origin]); +corsMultipleOrigins(["\"\"", "http://example.com", "*"]); +corsMultipleOrigins(["\"\"", origin, origin]); +corsMultipleOrigins(["*", "http://example.com", "*"]); +corsMultipleOrigins(["*", "http://example.com", origin]); +corsMultipleOrigins(["", "http://example.com", "https://example2.com"]); + +done(); diff --git a/tests/wpt/web-platform-tests/fetch/api/redirect/redirect-count-worker.html b/tests/wpt/web-platform-tests/fetch/api/redirect/redirect-count-worker.html deleted file mode 100644 index 0f624e82626a..000000000000 --- a/tests/wpt/web-platform-tests/fetch/api/redirect/redirect-count-worker.html +++ /dev/null @@ -1,17 +0,0 @@ - - - - - Fetch in worker: rediraction loop - - - - - - - - - - diff --git a/tests/wpt/web-platform-tests/fetch/api/redirect/redirect-count.js b/tests/wpt/web-platform-tests/fetch/api/redirect/redirect-count.any.js similarity index 89% rename from tests/wpt/web-platform-tests/fetch/api/redirect/redirect-count.js rename to tests/wpt/web-platform-tests/fetch/api/redirect/redirect-count.any.js index 0103280f6e23..7fa6dd1d0ed5 100644 --- a/tests/wpt/web-platform-tests/fetch/api/redirect/redirect-count.js +++ b/tests/wpt/web-platform-tests/fetch/api/redirect/redirect-count.any.js @@ -1,8 +1,5 @@ -if (this.document === undefined) { - importScripts("/resources/testharness.js"); - importScripts("../resources/utils.js"); - importScripts("/common/utils.js"); -} +// META: script=../resources/utils.js +// META: script=/common/utils.js function redirectCount(desc, redirectUrl, redirectLocation, redirectStatus, maxCount, shouldPass) { var uuid_token = token(); diff --git a/tests/wpt/web-platform-tests/fetch/api/redirect/redirect-count.html b/tests/wpt/web-platform-tests/fetch/api/redirect/redirect-count.html deleted file mode 100644 index d6a66e6eb9e2..000000000000 --- a/tests/wpt/web-platform-tests/fetch/api/redirect/redirect-count.html +++ /dev/null @@ -1,17 +0,0 @@ - - - - - Fetch: redirection loop - - - - - - - - - - - - diff --git a/tests/wpt/web-platform-tests/fetch/api/redirect/redirect-empty-location-worker.html b/tests/wpt/web-platform-tests/fetch/api/redirect/redirect-empty-location-worker.html deleted file mode 100644 index 7dce98cad0c3..000000000000 --- a/tests/wpt/web-platform-tests/fetch/api/redirect/redirect-empty-location-worker.html +++ /dev/null @@ -1,15 +0,0 @@ - - - - - Fetch in worker: handling empty Location header during redirection - - - - - - - - diff --git a/tests/wpt/web-platform-tests/fetch/api/redirect/redirect-empty-location.js b/tests/wpt/web-platform-tests/fetch/api/redirect/redirect-empty-location.any.js similarity index 81% rename from tests/wpt/web-platform-tests/fetch/api/redirect/redirect-empty-location.js rename to tests/wpt/web-platform-tests/fetch/api/redirect/redirect-empty-location.any.js index a9d03c5ca6e9..ace8f221c09a 100644 --- a/tests/wpt/web-platform-tests/fetch/api/redirect/redirect-empty-location.js +++ b/tests/wpt/web-platform-tests/fetch/api/redirect/redirect-empty-location.any.js @@ -1,11 +1,8 @@ +// META: script=../resources/utils.js + // Tests receiving a redirect response with a Location header with an empty // value. -if (this.document === undefined) { - importScripts("/resources/testharness.js"); - importScripts("../resources/utils.js"); -} - const url = RESOURCES_DIR + 'redirect-empty-location.py'; promise_test(t => { diff --git a/tests/wpt/web-platform-tests/fetch/api/redirect/redirect-empty-location.html b/tests/wpt/web-platform-tests/fetch/api/redirect/redirect-empty-location.html deleted file mode 100644 index afb033bdf9de..000000000000 --- a/tests/wpt/web-platform-tests/fetch/api/redirect/redirect-empty-location.html +++ /dev/null @@ -1,14 +0,0 @@ - - - - - Fetch: handling empty Location header during redirection - - - - - - - - - diff --git a/tests/wpt/web-platform-tests/fetch/api/redirect/redirect-location-worker.html b/tests/wpt/web-platform-tests/fetch/api/redirect/redirect-location-worker.html deleted file mode 100644 index e2970811c071..000000000000 --- a/tests/wpt/web-platform-tests/fetch/api/redirect/redirect-location-worker.html +++ /dev/null @@ -1,16 +0,0 @@ - - - - - Fetch in worker: handling Location header during redirection - - - - - - - - - \ No newline at end of file diff --git a/tests/wpt/web-platform-tests/fetch/api/redirect/redirect-location.js b/tests/wpt/web-platform-tests/fetch/api/redirect/redirect-location.any.js similarity index 95% rename from tests/wpt/web-platform-tests/fetch/api/redirect/redirect-location.js rename to tests/wpt/web-platform-tests/fetch/api/redirect/redirect-location.any.js index 5b9a4fe454ab..27baefc91587 100644 --- a/tests/wpt/web-platform-tests/fetch/api/redirect/redirect-location.js +++ b/tests/wpt/web-platform-tests/fetch/api/redirect/redirect-location.any.js @@ -1,7 +1,4 @@ -if (this.document === undefined) { - importScripts("/resources/testharness.js"); - importScripts("../resources/utils.js"); -} +// META: script=../resources/utils.js function redirectLocation(desc, redirectUrl, redirectLocation, redirectStatus, redirectMode, shouldPass) { var url = redirectUrl; diff --git a/tests/wpt/web-platform-tests/fetch/api/redirect/redirect-location.html b/tests/wpt/web-platform-tests/fetch/api/redirect/redirect-location.html deleted file mode 100644 index ac35dea54c47..000000000000 --- a/tests/wpt/web-platform-tests/fetch/api/redirect/redirect-location.html +++ /dev/null @@ -1,15 +0,0 @@ - - - - - Fetch: handling Location header during redirection - - - - - - - - - - \ No newline at end of file diff --git a/tests/wpt/web-platform-tests/fetch/api/redirect/redirect-method-worker.html b/tests/wpt/web-platform-tests/fetch/api/redirect/redirect-method-worker.html deleted file mode 100644 index fc0bc5e529dd..000000000000 --- a/tests/wpt/web-platform-tests/fetch/api/redirect/redirect-method-worker.html +++ /dev/null @@ -1,16 +0,0 @@ - - - - - Fetch in worker: request method handling when redirected - - - - - - - - - \ No newline at end of file diff --git a/tests/wpt/web-platform-tests/fetch/api/redirect/redirect-method.js b/tests/wpt/web-platform-tests/fetch/api/redirect/redirect-method.any.js similarity index 96% rename from tests/wpt/web-platform-tests/fetch/api/redirect/redirect-method.js rename to tests/wpt/web-platform-tests/fetch/api/redirect/redirect-method.any.js index 0a7f2df2c2bd..056ccf847bbe 100644 --- a/tests/wpt/web-platform-tests/fetch/api/redirect/redirect-method.js +++ b/tests/wpt/web-platform-tests/fetch/api/redirect/redirect-method.any.js @@ -1,7 +1,4 @@ -if (this.document === undefined) { - importScripts("/resources/testharness.js"); - importScripts("../resources/utils.js"); -} +// META: script=../resources/utils.js // Creates a promise_test that fetches a URL that returns a redirect response. // diff --git a/tests/wpt/web-platform-tests/fetch/api/redirect/redirect-method.html b/tests/wpt/web-platform-tests/fetch/api/redirect/redirect-method.html deleted file mode 100644 index 028842dbe07d..000000000000 --- a/tests/wpt/web-platform-tests/fetch/api/redirect/redirect-method.html +++ /dev/null @@ -1,15 +0,0 @@ - - - - - Fetch: request method handling when redirected - - - - - - - - - - \ No newline at end of file diff --git a/tests/wpt/web-platform-tests/fetch/api/redirect/redirect-mode-worker.html b/tests/wpt/web-platform-tests/fetch/api/redirect/redirect-mode-worker.html deleted file mode 100644 index 32d219f7678d..000000000000 --- a/tests/wpt/web-platform-tests/fetch/api/redirect/redirect-mode-worker.html +++ /dev/null @@ -1,17 +0,0 @@ - - - - - Fetch in worker: redirect mode handling - - - - - - - - - - \ No newline at end of file diff --git a/tests/wpt/web-platform-tests/fetch/api/redirect/redirect-mode.js b/tests/wpt/web-platform-tests/fetch/api/redirect/redirect-mode.any.js similarity index 94% rename from tests/wpt/web-platform-tests/fetch/api/redirect/redirect-mode.js rename to tests/wpt/web-platform-tests/fetch/api/redirect/redirect-mode.any.js index 969047d96c2e..7d34fa61a96b 100644 --- a/tests/wpt/web-platform-tests/fetch/api/redirect/redirect-mode.js +++ b/tests/wpt/web-platform-tests/fetch/api/redirect/redirect-mode.any.js @@ -1,7 +1,4 @@ -if (this.document === undefined) { - importScripts("/resources/testharness.js"); - importScripts("/common/get-host-info.sub.js") -} +// META: script=/common/get-host-info.sub.js var redirectLocation = "cors-top.txt"; diff --git a/tests/wpt/web-platform-tests/fetch/api/redirect/redirect-mode.html b/tests/wpt/web-platform-tests/fetch/api/redirect/redirect-mode.html deleted file mode 100644 index 20a0cd68a6cf..000000000000 --- a/tests/wpt/web-platform-tests/fetch/api/redirect/redirect-mode.html +++ /dev/null @@ -1,16 +0,0 @@ - - - - - Fetch: redirect mode handling - - - - - - - - - - - diff --git a/tests/wpt/web-platform-tests/fetch/api/redirect/redirect-origin-worker.html b/tests/wpt/web-platform-tests/fetch/api/redirect/redirect-origin-worker.html deleted file mode 100644 index fdb542237d9d..000000000000 --- a/tests/wpt/web-platform-tests/fetch/api/redirect/redirect-origin-worker.html +++ /dev/null @@ -1,17 +0,0 @@ - - - - - Fetch in worker: redirect mode handling - - - - - - - - - - diff --git a/tests/wpt/web-platform-tests/fetch/api/redirect/redirect-origin.js b/tests/wpt/web-platform-tests/fetch/api/redirect/redirect-origin.any.js similarity index 90% rename from tests/wpt/web-platform-tests/fetch/api/redirect/redirect-origin.js rename to tests/wpt/web-platform-tests/fetch/api/redirect/redirect-origin.any.js index 77f841e94b58..3edb1bd03e89 100644 --- a/tests/wpt/web-platform-tests/fetch/api/redirect/redirect-origin.js +++ b/tests/wpt/web-platform-tests/fetch/api/redirect/redirect-origin.any.js @@ -1,9 +1,6 @@ -if (this.document === undefined) { - importScripts("/common/utils.js"); - importScripts("/resources/testharness.js"); - importScripts("../resources/utils.js"); - importScripts("/common/get-host-info.sub.js"); -} +// META: script=/common/utils.js +// META: script=../resources/utils.js +// META: script=/common/get-host-info.sub.js function testOriginAfterRedirection(desc, redirectUrl, redirectLocation, redirectStatus, expectedOrigin) { var uuid_token = token(); diff --git a/tests/wpt/web-platform-tests/fetch/api/redirect/redirect-origin.html b/tests/wpt/web-platform-tests/fetch/api/redirect/redirect-origin.html deleted file mode 100644 index 4cbe1c07d002..000000000000 --- a/tests/wpt/web-platform-tests/fetch/api/redirect/redirect-origin.html +++ /dev/null @@ -1,18 +0,0 @@ - - - - - Fetch: redirect mode handling - - - - - - - - - - - - - diff --git a/tests/wpt/web-platform-tests/fetch/api/redirect/redirect-referrer-worker.html b/tests/wpt/web-platform-tests/fetch/api/redirect/redirect-referrer-worker.html deleted file mode 100644 index 6e5cd45b85ae..000000000000 --- a/tests/wpt/web-platform-tests/fetch/api/redirect/redirect-referrer-worker.html +++ /dev/null @@ -1,17 +0,0 @@ - - - - - Fetch in worker: redirect referrer handling - - - - - - - - - - diff --git a/tests/wpt/web-platform-tests/fetch/api/redirect/redirect-referrer.js b/tests/wpt/web-platform-tests/fetch/api/redirect/redirect-referrer.any.js similarity index 96% rename from tests/wpt/web-platform-tests/fetch/api/redirect/redirect-referrer.js rename to tests/wpt/web-platform-tests/fetch/api/redirect/redirect-referrer.any.js index fabeceaef4f9..92f0b9be515b 100644 --- a/tests/wpt/web-platform-tests/fetch/api/redirect/redirect-referrer.js +++ b/tests/wpt/web-platform-tests/fetch/api/redirect/redirect-referrer.any.js @@ -1,9 +1,6 @@ -if (this.document === undefined) { - importScripts("/common/utils.js"); - importScripts("/resources/testharness.js"); - importScripts("../resources/utils.js"); - importScripts("/common/get-host-info.sub.js"); -} +// META: script=/common/utils.js +// META: script=../resources/utils.js +// META: script=/common/get-host-info.sub.js function testReferrerAfterRedirection(desc, redirectUrl, redirectLocation, referrerPolicy, redirectReferrerPolicy, expectedReferrer) { var url = redirectUrl; diff --git a/tests/wpt/web-platform-tests/fetch/api/redirect/redirect-referrer.html b/tests/wpt/web-platform-tests/fetch/api/redirect/redirect-referrer.html deleted file mode 100644 index 473b5e6471bc..000000000000 --- a/tests/wpt/web-platform-tests/fetch/api/redirect/redirect-referrer.html +++ /dev/null @@ -1,18 +0,0 @@ - - - - - Fetch: redirect referrer handling - - - - - - - - - - - - - diff --git a/tests/wpt/web-platform-tests/fetch/api/redirect/redirect-to-dataurl-worker.html b/tests/wpt/web-platform-tests/fetch/api/redirect/redirect-to-dataurl-worker.html deleted file mode 100644 index 428f5135e948..000000000000 --- a/tests/wpt/web-platform-tests/fetch/api/redirect/redirect-to-dataurl-worker.html +++ /dev/null @@ -1,14 +0,0 @@ - - - - - Fetch in worker: data URL loading after redirections - - - - - - - diff --git a/tests/wpt/web-platform-tests/fetch/api/redirect/redirect-to-dataurl.js b/tests/wpt/web-platform-tests/fetch/api/redirect/redirect-to-dataurl.any.js similarity index 89% rename from tests/wpt/web-platform-tests/fetch/api/redirect/redirect-to-dataurl.js rename to tests/wpt/web-platform-tests/fetch/api/redirect/redirect-to-dataurl.any.js index c3bae3f6bb08..68ff2c5bcf2d 100644 --- a/tests/wpt/web-platform-tests/fetch/api/redirect/redirect-to-dataurl.js +++ b/tests/wpt/web-platform-tests/fetch/api/redirect/redirect-to-dataurl.any.js @@ -1,7 +1,4 @@ -if (this.document === undefined) { - importScripts("/common/get-host-info.sub.js") - importScripts("/resources/testharness.js"); -} +// META: script=/common/get-host-info.sub.js var dataURL = "data:text/plain;base64,cmVzcG9uc2UncyBib2R5"; var body = "response's body"; diff --git a/tests/wpt/web-platform-tests/fetch/api/redirect/redirect-to-dataurl.html b/tests/wpt/web-platform-tests/fetch/api/redirect/redirect-to-dataurl.html deleted file mode 100644 index ed7159f4121c..000000000000 --- a/tests/wpt/web-platform-tests/fetch/api/redirect/redirect-to-dataurl.html +++ /dev/null @@ -1,13 +0,0 @@ - - - - - Fetch: data URL loading after redirections - - - - - - - - diff --git a/tests/wpt/web-platform-tests/fetch/api/response/response-stream-disturbed-6.html b/tests/wpt/web-platform-tests/fetch/api/response/response-stream-disturbed-6.html index 15c8dfd477d7..30492d472fee 100644 --- a/tests/wpt/web-platform-tests/fetch/api/response/response-stream-disturbed-6.html +++ b/tests/wpt/web-platform-tests/fetch/api/response/response-stream-disturbed-6.html @@ -65,7 +65,7 @@ const reader = stream.getReader(); assert_false(response.bodyUsed, "After getting a reader"); - reader.read(); + reader.read().then(() => { }, () => { }); assert_true(response.bodyUsed, "After calling stream.read()"); }, "An errored stream on which read() has been called"); @@ -81,7 +81,7 @@ const reader = stream.getReader(); assert_false(response.bodyUsed, "After getting a reader"); - reader.cancel(); + reader.cancel().then(() => { }, () => { }); assert_true(response.bodyUsed, "After calling stream.cancel()"); }, "An errored stream on which cancel() has been called"); diff --git a/tests/wpt/web-platform-tests/fetch/api/response/response-stream-with-broken-then.any.js b/tests/wpt/web-platform-tests/fetch/api/response/response-stream-with-broken-then.any.js new file mode 100644 index 000000000000..35b984c9f6da --- /dev/null +++ b/tests/wpt/web-platform-tests/fetch/api/response/response-stream-with-broken-then.any.js @@ -0,0 +1,75 @@ +// META: script=../resources/utils.js + +promise_test(async () => { + add_completion_callback(() => delete Object.prototype.then); + const hello = new TextEncoder().encode('hello'); + const bye = new TextEncoder().encode('bye'); + const rs = new ReadableStream({ + start(controller) { + controller.enqueue(hello); + controller.close(); + } + }); + const resp = new Response(rs); + Object.prototype.then = (onFulfilled) => { + delete Object.prototype.then; + onFulfilled({done: false, value: bye}); + }; + const text = await resp.text(); + assert_equals(text, 'bye', 'The valud should be replaced with "bye".'); +}, 'Inject {done: false, value: bye} via Object.prototype.then.'); + +promise_test(async (t) => { + add_completion_callback(() => delete Object.prototype.then); + const hello = new TextEncoder().encode('hello'); + const rs = new ReadableStream({ + start(controller) { + controller.enqueue(hello); + controller.close(); + } + }); + const resp = new Response(rs); + Object.prototype.then = (onFulfilled) => { + delete Object.prototype.then; + onFulfilled({done: false, value: undefined}); + }; + promise_rejects(t, TypeError(), resp.text(), + 'The value should be replaced with undefined.'); +}, 'Inject {done: false, value: undefined} via Object.prototype.then.'); + +promise_test(async (t) => { + add_completion_callback(() => delete Object.prototype.then); + const hello = new TextEncoder().encode('hello'); + const rs = new ReadableStream({ + start(controller) { + controller.enqueue(hello); + controller.close(); + } + }); + const resp = new Response(rs); + Object.prototype.then = (onFulfilled) => { + delete Object.prototype.then; + onFulfilled(undefined); + }; + promise_rejects(t, TypeError(), resp.text(), + 'The read result should be replaced with undefined.'); +}, 'Inject undefined via Object.prototype.then.'); + +promise_test(async (t) => { + add_completion_callback(() => delete Object.prototype.then); + const hello = new TextEncoder().encode('hello'); + const rs = new ReadableStream({ + start(controller) { + controller.enqueue(hello); + controller.close(); + } + }); + const resp = new Response(rs); + Object.prototype.then = (onFulfilled) => { + delete Object.prototype.then; + onFulfilled(8.2); + }; + promise_rejects(t, TypeError(), resp.text(), + 'The read result should be replaced with a number.'); +}, 'Inject 8.2 via Object.prototype.then.'); + diff --git a/tests/wpt/web-platform-tests/http/content_length.html b/tests/wpt/web-platform-tests/fetch/content-length/content-length.html similarity index 100% rename from tests/wpt/web-platform-tests/http/content_length.html rename to tests/wpt/web-platform-tests/fetch/content-length/content-length.html diff --git a/tests/wpt/web-platform-tests/http/content_length.html.headers b/tests/wpt/web-platform-tests/fetch/content-length/content-length.html.headers similarity index 100% rename from tests/wpt/web-platform-tests/http/content_length.html.headers rename to tests/wpt/web-platform-tests/fetch/content-length/content-length.html.headers diff --git a/tests/wpt/web-platform-tests/fetch/corb/README.md b/tests/wpt/web-platform-tests/fetch/corb/README.md index 04c5b8a8f3d0..48fc4ad6871c 100644 --- a/tests/wpt/web-platform-tests/fetch/corb/README.md +++ b/tests/wpt/web-platform-tests/fetch/corb/README.md @@ -21,7 +21,7 @@ sure that CORB doesn't change the existing web behavior) and therefore are valuable independently from CORB's standardization efforts. Tests that cover behavior that is changed by CORB have to be marked as -[tentative](http://web-platform-tests.org/writing-tests/file-names.html) +[tentative](https://web-platform-tests.org/writing-tests/file-names.html) (using `.tentative` substring in their filename) until CORB is included in the official [Fetch spec](https://fetch.spec.whatwg.org/). Such tests may fail unless diff --git a/tests/wpt/web-platform-tests/fetch/corb/img-html-correctly-labeled.sub-expected.html b/tests/wpt/web-platform-tests/fetch/corb/img-html-correctly-labeled.sub-ref.html similarity index 100% rename from tests/wpt/web-platform-tests/fetch/corb/img-html-correctly-labeled.sub-expected.html rename to tests/wpt/web-platform-tests/fetch/corb/img-html-correctly-labeled.sub-ref.html diff --git a/tests/wpt/web-platform-tests/fetch/corb/img-html-correctly-labeled.sub.html b/tests/wpt/web-platform-tests/fetch/corb/img-html-correctly-labeled.sub.html index b2612b43293d..78fc09f9b7fd 100644 --- a/tests/wpt/web-platform-tests/fetch/corb/img-html-correctly-labeled.sub.html +++ b/tests/wpt/web-platform-tests/fetch/corb/img-html-correctly-labeled.sub.html @@ -6,6 +6,6 @@ --> - + diff --git a/tests/wpt/web-platform-tests/fetch/corb/img-mime-types-coverage.tentative.sub.html b/tests/wpt/web-platform-tests/fetch/corb/img-mime-types-coverage.tentative.sub.html index 7ccc41b4b5f3..65c5b846d534 100644 --- a/tests/wpt/web-platform-tests/fetch/corb/img-mime-types-coverage.tentative.sub.html +++ b/tests/wpt/web-platform-tests/fetch/corb/img-mime-types-coverage.tentative.sub.html @@ -19,6 +19,7 @@ // MIME-types not protected by CORB "image/gif", "image/png", "image/png;blah", "image/svg+xml", "application/javascript", "application/jsonp", + "image/gif;HI=THERE", // MIME types that may seem to be JSON or XML, but really aren't - i.e. // these MIME types are not covered by: @@ -39,7 +40,8 @@ "text/json", "application/json", "text/xml", "application/xml", "application/blah+json", "text/blah+json", "application/blah+xml", "text/blah+xml", - "TEXT/HTML", "TEXT/JSON", "TEXT/BLAH+JSON", "APPLICATION/BLAH+XML"] + "TEXT/HTML", "TEXT/JSON", "TEXT/BLAH+JSON", "APPLICATION/BLAH+XML", + "text/json;does=it;matter", "text/HTML;NO=it;does=NOT"] const get_url = (mime) => { // www1 is cross-origin, so the HTTP response is CORB-eligible --> diff --git a/tests/wpt/web-platform-tests/fetch/corb/img-png-mislabeled-as-html-nosniff.tentative.sub-expected.html b/tests/wpt/web-platform-tests/fetch/corb/img-png-mislabeled-as-html-nosniff.tentative.sub-ref.html similarity index 100% rename from tests/wpt/web-platform-tests/fetch/corb/img-png-mislabeled-as-html-nosniff.tentative.sub-expected.html rename to tests/wpt/web-platform-tests/fetch/corb/img-png-mislabeled-as-html-nosniff.tentative.sub-ref.html diff --git a/tests/wpt/web-platform-tests/fetch/corb/img-png-mislabeled-as-html-nosniff.tentative.sub.html b/tests/wpt/web-platform-tests/fetch/corb/img-png-mislabeled-as-html-nosniff.tentative.sub.html index 19d29b20488c..a4e519d94fc1 100644 --- a/tests/wpt/web-platform-tests/fetch/corb/img-png-mislabeled-as-html-nosniff.tentative.sub.html +++ b/tests/wpt/web-platform-tests/fetch/corb/img-png-mislabeled-as-html-nosniff.tentative.sub.html @@ -6,6 +6,6 @@ --> - + diff --git a/tests/wpt/web-platform-tests/fetch/corb/img-png-mislabeled-as-html.sub-expected.html b/tests/wpt/web-platform-tests/fetch/corb/img-png-mislabeled-as-html.sub-ref.html similarity index 100% rename from tests/wpt/web-platform-tests/fetch/corb/img-png-mislabeled-as-html.sub-expected.html rename to tests/wpt/web-platform-tests/fetch/corb/img-png-mislabeled-as-html.sub-ref.html diff --git a/tests/wpt/web-platform-tests/fetch/corb/img-png-mislabeled-as-html.sub.html b/tests/wpt/web-platform-tests/fetch/corb/img-png-mislabeled-as-html.sub.html index 85d444d79995..1ae4cfcaa7ca 100644 --- a/tests/wpt/web-platform-tests/fetch/corb/img-png-mislabeled-as-html.sub.html +++ b/tests/wpt/web-platform-tests/fetch/corb/img-png-mislabeled-as-html.sub.html @@ -5,6 +5,6 @@ --> - + diff --git a/tests/wpt/web-platform-tests/fetch/corb/resources/html-js-polyglot.js b/tests/wpt/web-platform-tests/fetch/corb/resources/html-js-polyglot.js new file mode 100644 index 000000000000..5b048d336443 --- /dev/null +++ b/tests/wpt/web-platform-tests/fetch/corb/resources/html-js-polyglot.js @@ -0,0 +1,9 @@ + diff --git a/tests/wpt/web-platform-tests/fetch/corb/resources/html-js-polyglot.js.headers b/tests/wpt/web-platform-tests/fetch/corb/resources/html-js-polyglot.js.headers new file mode 100644 index 000000000000..156209f9c81f --- /dev/null +++ b/tests/wpt/web-platform-tests/fetch/corb/resources/html-js-polyglot.js.headers @@ -0,0 +1 @@ +Content-Type: text/html diff --git a/tests/wpt/web-platform-tests/fetch/corb/resources/html-js-polyglot2.js b/tests/wpt/web-platform-tests/fetch/corb/resources/html-js-polyglot2.js new file mode 100644 index 000000000000..9443f8ed6c35 --- /dev/null +++ b/tests/wpt/web-platform-tests/fetch/corb/resources/html-js-polyglot2.js @@ -0,0 +1,10 @@ + diff --git a/tests/wpt/web-platform-tests/fetch/corb/resources/html-js-polyglot2.js.headers b/tests/wpt/web-platform-tests/fetch/corb/resources/html-js-polyglot2.js.headers new file mode 100644 index 000000000000..156209f9c81f --- /dev/null +++ b/tests/wpt/web-platform-tests/fetch/corb/resources/html-js-polyglot2.js.headers @@ -0,0 +1 @@ +Content-Type: text/html diff --git a/tests/wpt/web-platform-tests/fetch/corb/script-html-correctly-labeled.tentative.sub.html b/tests/wpt/web-platform-tests/fetch/corb/script-html-correctly-labeled.tentative.sub.html index 76a8fadd335c..8f4d7679e3d7 100644 --- a/tests/wpt/web-platform-tests/fetch/corb/script-html-correctly-labeled.tentative.sub.html +++ b/tests/wpt/web-platform-tests/fetch/corb/script-html-correctly-labeled.tentative.sub.html @@ -26,5 +26,5 @@ // www1 is cross-origin, so the HTTP response is CORB-eligible. script.src = 'http://{{domains[www1]}}:{{ports[http][0]}}/fetch/corb/resources/html-correctly-labeled.html'; document.body.appendChild(script) -}); +}, "CORB-blocked script has no syntax errors"); diff --git a/tests/wpt/web-platform-tests/fetch/corb/script-html-js-polyglot.sub.html b/tests/wpt/web-platform-tests/fetch/corb/script-html-js-polyglot.sub.html new file mode 100644 index 000000000000..ec4103771fb2 --- /dev/null +++ b/tests/wpt/web-platform-tests/fetch/corb/script-html-js-polyglot.sub.html @@ -0,0 +1,32 @@ + + + + + +
+ diff --git a/tests/wpt/web-platform-tests/fetch/data-urls/README.md b/tests/wpt/web-platform-tests/fetch/data-urls/README.md index 64c3d7e95215..1ce5b18b5382 100644 --- a/tests/wpt/web-platform-tests/fetch/data-urls/README.md +++ b/tests/wpt/web-platform-tests/fetch/data-urls/README.md @@ -1,10 +1,10 @@ -== data: URLs == +## data: URLs `resources/data-urls.json` contains `data:` URL tests. The tests are encoded as a JSON array. Each value in the array is an array of two or three values. The first value describes the input, the second value describes the expected MIME type, null if the input is expected to fail somehow, or the empty string if the expected value is `text/plain;charset=US-ASCII`. The third value, if present, describes the expected body as an array of integers representing bytes. These tests are used for `data:` URLs in this directory (see `processing.any.js`). -== Forgiving-base64 decode == +## Forgiving-base64 decode `resources/base64.json` contains [forgiving-base64 decode](https://infra.spec.whatwg.org/#forgiving-base64-decode) tests. The tests are encoded as a JSON array. Each value in the array is an array of two values. The first value describes the input, the second value describes the output as an array of integers representing bytes or null if the input cannot be decoded. diff --git a/tests/wpt/web-platform-tests/http/basic-auth-cache-test-ref.html b/tests/wpt/web-platform-tests/fetch/http-cache/basic-auth-cache-test-ref.html similarity index 100% rename from tests/wpt/web-platform-tests/http/basic-auth-cache-test-ref.html rename to tests/wpt/web-platform-tests/fetch/http-cache/basic-auth-cache-test-ref.html diff --git a/tests/wpt/web-platform-tests/http/basic-auth-cache-test.html b/tests/wpt/web-platform-tests/fetch/http-cache/basic-auth-cache-test.html similarity index 79% rename from tests/wpt/web-platform-tests/http/basic-auth-cache-test.html rename to tests/wpt/web-platform-tests/fetch/http-cache/basic-auth-cache-test.html index 0d3895b8048a..a8979baf548d 100644 --- a/tests/wpt/web-platform-tests/http/basic-auth-cache-test.html +++ b/tests/wpt/web-platform-tests/fetch/http-cache/basic-auth-cache-test.html @@ -9,12 +9,12 @@ diff --git a/tests/wpt/web-platform-tests/graphics-aam/graphics-document_on_svg_element-manual.html b/tests/wpt/web-platform-tests/graphics-aam/graphics-document_on_svg_element-manual.html index 4984bc353eb3..1b6144674a3c 100644 --- a/tests/wpt/web-platform-tests/graphics-aam/graphics-document_on_svg_element-manual.html +++ b/tests/wpt/web-platform-tests/graphics-aam/graphics-document_on_svg_element-manual.html @@ -3,7 +3,6 @@ graphics-document on SVG element - diff --git a/tests/wpt/web-platform-tests/graphics-aam/graphics-object_on_html_element-manual.html b/tests/wpt/web-platform-tests/graphics-aam/graphics-object_on_html_element-manual.html index 19979b2f3253..074fe51939f1 100644 --- a/tests/wpt/web-platform-tests/graphics-aam/graphics-object_on_html_element-manual.html +++ b/tests/wpt/web-platform-tests/graphics-aam/graphics-object_on_html_element-manual.html @@ -3,7 +3,6 @@ graphics-object on HTML element - diff --git a/tests/wpt/web-platform-tests/graphics-aam/graphics-object_on_svg_element-manual.html b/tests/wpt/web-platform-tests/graphics-aam/graphics-object_on_svg_element-manual.html index 5c2cf28e4478..d326ec5b649a 100644 --- a/tests/wpt/web-platform-tests/graphics-aam/graphics-object_on_svg_element-manual.html +++ b/tests/wpt/web-platform-tests/graphics-aam/graphics-object_on_svg_element-manual.html @@ -3,7 +3,6 @@ graphics-object on SVG element - diff --git a/tests/wpt/web-platform-tests/graphics-aam/graphics-symbol_on_html_element-manual.html b/tests/wpt/web-platform-tests/graphics-aam/graphics-symbol_on_html_element-manual.html index 3b9c77fffdc4..913a7d130dc7 100644 --- a/tests/wpt/web-platform-tests/graphics-aam/graphics-symbol_on_html_element-manual.html +++ b/tests/wpt/web-platform-tests/graphics-aam/graphics-symbol_on_html_element-manual.html @@ -3,7 +3,6 @@ graphics-symbol on HTML element - diff --git a/tests/wpt/web-platform-tests/graphics-aam/graphics-symbol_on_svg_element-manual.html b/tests/wpt/web-platform-tests/graphics-aam/graphics-symbol_on_svg_element-manual.html index 6663225f82cc..78848269d224 100644 --- a/tests/wpt/web-platform-tests/graphics-aam/graphics-symbol_on_svg_element-manual.html +++ b/tests/wpt/web-platform-tests/graphics-aam/graphics-symbol_on_svg_element-manual.html @@ -3,7 +3,6 @@ graphics-symbol on SVG element - diff --git a/tests/wpt/web-platform-tests/gyroscope/Gyroscope-disabled-by-feature-policy.https.html b/tests/wpt/web-platform-tests/gyroscope/Gyroscope-disabled-by-feature-policy.https.html index de4aee2dacc8..02cc44ec78b0 100644 --- a/tests/wpt/web-platform-tests/gyroscope/Gyroscope-disabled-by-feature-policy.https.html +++ b/tests/wpt/web-platform-tests/gyroscope/Gyroscope-disabled-by-feature-policy.https.html @@ -8,6 +8,6 @@ diff --git a/tests/wpt/web-platform-tests/gyroscope/Gyroscope-enabled-by-feature-policy-attribute-redirect-on-load.https.html b/tests/wpt/web-platform-tests/gyroscope/Gyroscope-enabled-by-feature-policy-attribute-redirect-on-load.https.html index 3c831bb7c7ee..e1aa0f944a80 100644 --- a/tests/wpt/web-platform-tests/gyroscope/Gyroscope-enabled-by-feature-policy-attribute-redirect-on-load.https.html +++ b/tests/wpt/web-platform-tests/gyroscope/Gyroscope-enabled-by-feature-policy-attribute-redirect-on-load.https.html @@ -8,6 +8,6 @@ diff --git a/tests/wpt/web-platform-tests/gyroscope/Gyroscope-enabled-by-feature-policy-attribute.https.html b/tests/wpt/web-platform-tests/gyroscope/Gyroscope-enabled-by-feature-policy-attribute.https.html index 46473c3a9d03..17e5b27e1ad5 100644 --- a/tests/wpt/web-platform-tests/gyroscope/Gyroscope-enabled-by-feature-policy-attribute.https.html +++ b/tests/wpt/web-platform-tests/gyroscope/Gyroscope-enabled-by-feature-policy-attribute.https.html @@ -8,6 +8,6 @@ diff --git a/tests/wpt/web-platform-tests/gyroscope/Gyroscope-enabled-by-feature-policy.https.html b/tests/wpt/web-platform-tests/gyroscope/Gyroscope-enabled-by-feature-policy.https.html index 95eee330b394..9bcced92b7e5 100644 --- a/tests/wpt/web-platform-tests/gyroscope/Gyroscope-enabled-by-feature-policy.https.html +++ b/tests/wpt/web-platform-tests/gyroscope/Gyroscope-enabled-by-feature-policy.https.html @@ -8,6 +8,6 @@ diff --git a/tests/wpt/web-platform-tests/gyroscope/Gyroscope-enabled-on-self-origin-by-feature-policy.https.html b/tests/wpt/web-platform-tests/gyroscope/Gyroscope-enabled-on-self-origin-by-feature-policy.https.html index ae5a63d14843..76d1c5e7291a 100644 --- a/tests/wpt/web-platform-tests/gyroscope/Gyroscope-enabled-on-self-origin-by-feature-policy.https.html +++ b/tests/wpt/web-platform-tests/gyroscope/Gyroscope-enabled-on-self-origin-by-feature-policy.https.html @@ -8,6 +8,6 @@ diff --git a/tests/wpt/web-platform-tests/gyroscope/Gyroscope.https.html b/tests/wpt/web-platform-tests/gyroscope/Gyroscope.https.html index 81cdfddee7ba..0c3f08f5f47c 100644 --- a/tests/wpt/web-platform-tests/gyroscope/Gyroscope.https.html +++ b/tests/wpt/web-platform-tests/gyroscope/Gyroscope.https.html @@ -9,6 +9,6 @@
diff --git a/tests/wpt/web-platform-tests/gyroscope/Gyroscope_onerror-manual.https.html b/tests/wpt/web-platform-tests/gyroscope/Gyroscope_onerror-manual.https.html index f0126151a24a..b63448bfc88c 100644 --- a/tests/wpt/web-platform-tests/gyroscope/Gyroscope_onerror-manual.https.html +++ b/tests/wpt/web-platform-tests/gyroscope/Gyroscope_onerror-manual.https.html @@ -15,6 +15,6 @@

Precondition

diff --git a/tests/wpt/web-platform-tests/html/browsers/browsing-the-web/navigating-across-documents/refresh/README.md b/tests/wpt/web-platform-tests/html/browsers/browsing-the-web/navigating-across-documents/refresh/README.md new file mode 100644 index 000000000000..52548db65649 --- /dev/null +++ b/tests/wpt/web-platform-tests/html/browsers/browsing-the-web/navigating-across-documents/refresh/README.md @@ -0,0 +1 @@ +See `/html/semantics/document-metadata/the-meta-element/pragma-directives/attr-meta-http-equiv-refresh/parsing.html` for more detailed parsing tests (shared with ``). diff --git a/tests/wpt/web-platform-tests/http/refresh/navigate.window.js b/tests/wpt/web-platform-tests/html/browsers/browsing-the-web/navigating-across-documents/refresh/navigate.window.js similarity index 100% rename from tests/wpt/web-platform-tests/http/refresh/navigate.window.js rename to tests/wpt/web-platform-tests/html/browsers/browsing-the-web/navigating-across-documents/refresh/navigate.window.js diff --git a/tests/wpt/web-platform-tests/http/refresh/resources/multiple.asis b/tests/wpt/web-platform-tests/html/browsers/browsing-the-web/navigating-across-documents/refresh/resources/multiple.asis similarity index 100% rename from tests/wpt/web-platform-tests/http/refresh/resources/multiple.asis rename to tests/wpt/web-platform-tests/html/browsers/browsing-the-web/navigating-across-documents/refresh/resources/multiple.asis diff --git a/tests/wpt/web-platform-tests/http/refresh/resources/refresh.py b/tests/wpt/web-platform-tests/html/browsers/browsing-the-web/navigating-across-documents/refresh/resources/refresh.py similarity index 100% rename from tests/wpt/web-platform-tests/http/refresh/resources/refresh.py rename to tests/wpt/web-platform-tests/html/browsers/browsing-the-web/navigating-across-documents/refresh/resources/refresh.py diff --git a/tests/wpt/web-platform-tests/http/refresh/resources/refreshed.txt b/tests/wpt/web-platform-tests/html/browsers/browsing-the-web/navigating-across-documents/refresh/resources/refreshed.txt similarity index 100% rename from tests/wpt/web-platform-tests/http/refresh/resources/refreshed.txt rename to tests/wpt/web-platform-tests/html/browsers/browsing-the-web/navigating-across-documents/refresh/resources/refreshed.txt diff --git a/tests/wpt/web-platform-tests/http/refresh/subresource.any.js b/tests/wpt/web-platform-tests/html/browsers/browsing-the-web/navigating-across-documents/refresh/subresource.any.js similarity index 100% rename from tests/wpt/web-platform-tests/http/refresh/subresource.any.js rename to tests/wpt/web-platform-tests/html/browsers/browsing-the-web/navigating-across-documents/refresh/subresource.any.js diff --git a/tests/wpt/web-platform-tests/html/browsers/history/the-history-interface/history_pushstate_url.html b/tests/wpt/web-platform-tests/html/browsers/history/the-history-interface/history_pushstate_url.html new file mode 100644 index 000000000000..cfbca35bfdfb --- /dev/null +++ b/tests/wpt/web-platform-tests/html/browsers/history/the-history-interface/history_pushstate_url.html @@ -0,0 +1,24 @@ + + + + +History pushState sets the url + + + + +
+ + + diff --git a/tests/wpt/web-platform-tests/html/browsers/origin/origin-of-data-document.html b/tests/wpt/web-platform-tests/html/browsers/origin/origin-of-data-document.html index 345a3a6b73bb..d6b6d533a221 100644 --- a/tests/wpt/web-platform-tests/html/browsers/origin/origin-of-data-document.html +++ b/tests/wpt/web-platform-tests/html/browsers/origin/origin-of-data-document.html @@ -20,16 +20,7 @@ assert_throws("SecurityError", function () { var couldAccessCrossOriginProperty = e.source.location.href; }, "The 'data:' frame should be cross-origin: 'window.location.href'"); - - // Try to access contentDocument of the 'data: ' frame. Some browsers - // (i.e. Firefox, Safari) will return |null| and some (i.e. Chrome) - // will throw an exception. - var dataFrameContentDocument = null; - try { - dataFrameContentDocument = i.contentDocument; - } catch (ex) { - } - assert_equals(dataFrameContentDocument, null, "The 'data:' iframe should be unable to access its contentDocument."); + assert_equals(i.contentDocument, null, "The 'data:' iframe should be unable to access its contentDocument."); })); document.body.appendChild(i); diff --git a/tests/wpt/web-platform-tests/html/browsers/origin/relaxing-the-same-origin-restriction/document_domain_setter.html b/tests/wpt/web-platform-tests/html/browsers/origin/relaxing-the-same-origin-restriction/document_domain_setter.html index bf5b0bc84fd5..6ffea4fe32aa 100644 --- a/tests/wpt/web-platform-tests/html/browsers/origin/relaxing-the-same-origin-restriction/document_domain_setter.html +++ b/tests/wpt/web-platform-tests/html/browsers/origin/relaxing-the-same-origin-restriction/document_domain_setter.html @@ -15,7 +15,7 @@ var SUFFIX_HOST = ORIGINAL_HOST.substring(ORIGINAL_HOST.lastIndexOf('.') + 1); // e.g. "test" var PREFIX_HOST = "www1." + ORIGINAL_HOST; // e.g. "www1.web-platform.test" var iframe = document.getElementById("iframe"); - var iframe_url = new URL("document_domain_setter_iframe.html", document.location); + var iframe_url = new URL("support/document_domain_setter_iframe.html", document.location); iframe_url.hostname = PREFIX_HOST; iframe.src = iframe_url; test(function() { @@ -25,11 +25,11 @@ assert_throws("SecurityError", function() { document.domain = "example.com"; }); }, "failed setting of document.domain"); async_test(function(t) { - iframe.addEventListener("load", t.step_func(function() { + iframe.addEventListener("load", t.step_func_done(function() { // Before setting document.domain, the iframe is not // same-origin-domain, so security checks fail. assert_equals(iframe.contentDocument, null); - assert_equals(iframe.contentWindow.frameElement, null); + assert_throws("SecurityError", () => iframe.contentWindow.frameElement); assert_throws("SecurityError", function() { iframe.contentWindow.location.origin; }); assert_throws("SecurityError", function() { iframe.contentWindow.location.href; }); assert_throws("SecurityError", function() { iframe.contentWindow.location.protocol; }); @@ -45,8 +45,8 @@ // After setting document.domain, the iframe is // same-origin-domain, so security checks pass. assert_equals(iframe.contentDocument.domain, document.domain); - assert_equals(iframe.contentWindow.frameElement, iframe) - assert_equals(iframe.contentWindow.origin, window.origin); + assert_equals(iframe.contentWindow.frameElement, iframe); + assert_equals(iframe.contentWindow.origin, iframe_url.origin); assert_equals(iframe.contentWindow.location.href, iframe_url.href); assert_equals(iframe.contentWindow.location.protocol, iframe_url.protocol); assert_equals(iframe.contentWindow.location.host, iframe_url.host); @@ -60,7 +60,6 @@ // document.open checks for same-origin, not same-origin-domain, // https://github.com/whatwg/html/issues/2282 assert_throws("SecurityError", function() { iframe.contentDocument.open(); }); - t.done(); })); }, "same-origin-domain iframe"); diff --git a/tests/wpt/web-platform-tests/html/browsers/origin/relaxing-the-same-origin-restriction/document_domain_setter_iframe.html b/tests/wpt/web-platform-tests/html/browsers/origin/relaxing-the-same-origin-restriction/support/document_domain_setter_iframe.html similarity index 100% rename from tests/wpt/web-platform-tests/html/browsers/origin/relaxing-the-same-origin-restriction/document_domain_setter_iframe.html rename to tests/wpt/web-platform-tests/html/browsers/origin/relaxing-the-same-origin-restriction/support/document_domain_setter_iframe.html diff --git a/tests/wpt/web-platform-tests/html/dom/dynamic-markup-insertion/document-write/contentType.window.js b/tests/wpt/web-platform-tests/html/dom/dynamic-markup-insertion/document-write/contentType.window.js new file mode 100644 index 000000000000..dbabb1b19b4b --- /dev/null +++ b/tests/wpt/web-platform-tests/html/dom/dynamic-markup-insertion/document-write/contentType.window.js @@ -0,0 +1,28 @@ +// META: script=/common/media.js + +const videoURL = getVideoURI("/images/pattern"), + videoMIMEType = getMediaContentType(videoURL); + +[ + [videoURL, videoMIMEType, "video"], + ["/images/red.png", "image/png", "image"], + ["/common/text-plain.txt", "text/plain", "text"], + ["/common/blank.html", "text/html", "HTML"] +].forEach(val => { + async_test(t => { + const frame = document.body.appendChild(document.createElement("iframe")); + t.add_cleanup(() => frame.remove()); + frame.src = val[0]; + frame.onload = t.step_func_done(() => { + assert_equals(frame.contentDocument.contentType, val[1]); + frame.contentDocument.write("Heya"); + assert_equals(frame.contentDocument.body.firstChild.localName, "b"); + assert_equals(frame.contentDocument.body.firstChild.textContent, "Heya"); + assert_equals(frame.contentDocument.contentType, val[1]); + + // Make sure a load event is fired across browsers + // https://github.com/w3c/web-platform-tests/pull/10239 + frame.contentDocument.close(); + }); + }, "document.write(): " + val[2] + " document"); +}); diff --git a/tests/wpt/web-platform-tests/html/dom/dynamic-markup-insertion/opening-the-input-stream/encoding.window.js b/tests/wpt/web-platform-tests/html/dom/dynamic-markup-insertion/opening-the-input-stream/encoding.window.js new file mode 100644 index 000000000000..a610ce9e1d17 --- /dev/null +++ b/tests/wpt/web-platform-tests/html/dom/dynamic-markup-insertion/opening-the-input-stream/encoding.window.js @@ -0,0 +1,12 @@ +async_test(t => { + const frame = document.body.appendChild(document.createElement("iframe")); + frame.src = "resources/encoding-frame.html"; + frame.onload = t.step_func_done(t => { + // Using toLowerCase() to avoid an Edge bug + assert_equals(frame.contentDocument.characterSet.toLowerCase(), "shift_jis", "precondition"); + frame.contentDocument.open(); + assert_equals(frame.contentDocument.characterSet.toLowerCase(), "shift_jis", "actual test"); + frame.contentDocument.close(); + assert_equals(frame.contentDocument.characterSet.toLowerCase(), "shift_jis", "might as well"); + }); +}, "doucment.open() and the document's encoding"); diff --git a/tests/wpt/web-platform-tests/html/dom/dynamic-markup-insertion/opening-the-input-stream/event-listeners.window.js b/tests/wpt/web-platform-tests/html/dom/dynamic-markup-insertion/opening-the-input-stream/event-listeners.window.js new file mode 100644 index 000000000000..97334ce1bab8 --- /dev/null +++ b/tests/wpt/web-platform-tests/html/dom/dynamic-markup-insertion/opening-the-input-stream/event-listeners.window.js @@ -0,0 +1,42 @@ +test(t => { + const frame = document.body.appendChild(document.createElement("iframe")), + body = frame.contentDocument.body; + t.add_cleanup(() => frame.remove()); + frame.contentDocument.addEventListener("x", t.unreached_func("document event listener not removed")); + body.addEventListener("x", t.unreached_func("body event listener not removed")); + frame.contentDocument.open(); + frame.contentDocument.dispatchEvent(new Event("x")); + body.dispatchEvent(new Event("x")); + frame.contentDocument.close(); +}, "Event listeners are to be removed"); + +test(t => { + const frame = document.body.appendChild(document.createElement("iframe")); + t.add_cleanup(() => frame.remove()); + let once = false; + frame.contentDocument.addEventListener("x", () => { + frame.contentDocument.open(); + once = true; + }); + frame.contentDocument.addEventListener("x", t.unreached_func("second event listener not removed")); + frame.contentDocument.dispatchEvent(new Event("x")); + assert_true(once); + frame.contentDocument.close(); +}, "Event listeners are to be removed with immediate effect"); + +test(t => { + const frame = document.body.appendChild(document.createElement("iframe")), + shadow = frame.contentDocument.body.attachShadow({ mode: "closed" }), + shadowChild = shadow.appendChild(document.createElement("div")), + shadowShadow = shadowChild.attachShadow({ mode: "open" }), + nodes = [shadow, shadowChild, shadowShadow]; + t.add_cleanup(() => frame.remove()); + nodes.forEach(node => { + node.addEventListener("x", t.unreached_func(node + "'s event listener not removed")); + }); + frame.contentDocument.open(); + nodes.forEach(node => { + node.dispatchEvent(new Event("x")); + }); + frame.contentDocument.close(); +}, "Event listeners are to be removed from shadow trees as well"); diff --git a/tests/wpt/web-platform-tests/html/dom/dynamic-markup-insertion/opening-the-input-stream/resources/encoding-frame.html b/tests/wpt/web-platform-tests/html/dom/dynamic-markup-insertion/opening-the-input-stream/resources/encoding-frame.html new file mode 100644 index 000000000000..843c3a2c7988 --- /dev/null +++ b/tests/wpt/web-platform-tests/html/dom/dynamic-markup-insertion/opening-the-input-stream/resources/encoding-frame.html @@ -0,0 +1,3 @@ + + +

Encoded in Shift_JIS.

diff --git a/tests/wpt/web-platform-tests/html/editing/dnd/datastore/015-manual.html b/tests/wpt/web-platform-tests/html/editing/dnd/datastore/015-manual.html index 6bb3cad3aeec..604c1d43709b 100644 --- a/tests/wpt/web-platform-tests/html/editing/dnd/datastore/015-manual.html +++ b/tests/wpt/web-platform-tests/html/editing/dnd/datastore/015-manual.html @@ -9,6 +9,7 @@ blockquote + div { clear: left; } + + diff --git a/tests/wpt/web-platform-tests/html/editing/dnd/events/events-file-suite-manual.html b/tests/wpt/web-platform-tests/html/editing/dnd/events/events-file-suite-manual.html index 380247b8a1bc..22a66f5e9a68 100644 --- a/tests/wpt/web-platform-tests/html/editing/dnd/events/events-file-suite-manual.html +++ b/tests/wpt/web-platform-tests/html/editing/dnd/events/events-file-suite-manual.html @@ -1,6 +1,7 @@ drag & drop - event sequence for file drops + + + + + + + +
+ diff --git a/tests/wpt/web-platform-tests/html/infrastructure/urls/resolving-urls/query-encoding/resources/resolve-url.js b/tests/wpt/web-platform-tests/html/infrastructure/urls/resolving-urls/query-encoding/resources/resolve-url.js index 769b41bcc27f..0d14fe70f073 100644 --- a/tests/wpt/web-platform-tests/html/infrastructure/urls/resolving-urls/query-encoding/resources/resolve-url.js +++ b/tests/wpt/web-platform-tests/html/infrastructure/urls/resolving-urls/query-encoding/resources/resolve-url.js @@ -1,3 +1,6 @@ +// NOTE: this file needs to be split up rather than expanded. See ../location.sub.html for some +// extracted tests. Tracked by https://github.com/w3c/web-platform-tests/issues/4934. + setup({explicit_done:true}); onload = function() { var encoding = '{{GET[encoding]}}'; @@ -35,7 +38,7 @@ onload = function() { // page and the test timing out test_obj.force_timeout(); } - step_timeout(poll, 200); + test_obj.step_timeout(poll, 200); } else { assert_equals(xhr.response, expected); test_obj.done(); @@ -43,7 +46,7 @@ onload = function() { }); xhr.send(); }) - step_timeout(poll, 200); + test_obj.step_timeout(poll, 200); } // background attribute, check with getComputedStyle @@ -505,55 +508,6 @@ onload = function() { }, 'window.open()', {help:'https://html.spec.whatwg.org/multipage/#dom-open'}); - // location - function test_location(func, desc) { - async_test(function() { - var iframe = document.createElement('iframe'); - document.body.appendChild(iframe); - this.add_cleanup(function() { - document.body.removeChild(iframe); - }); - func(iframe.contentWindow, input_url_html); - iframe.onload = this.step_func(function() { - var got = iframe.contentDocument.body.textContent; - if (got != '') { - assert_equals(got, expected_current); - this.done(); - } - }); - }, desc, - {help:'https://html.spec.whatwg.org/multipage/#the-location-interface'}); - } - [[function(win, input) { win.location = input; }, "location [PutForwards]"], - [function(win, input) { win.location.assign(input); }, "location.assign()"], - [function(win, input) { win.location.replace(input); }, "location.replace()"], - [function(win, input) { win.location.href = input; }, "location.href"]].forEach(function(arr) { - test_location(arr[0], arr[1]); - }); - - // location.search - async_test(function() { - var iframe = document.createElement('iframe'); - iframe.src = input_url_html; - document.body.appendChild(iframe); - this.add_cleanup(function() { - document.body.removeChild(iframe); - }); - var i = 0; - iframe.onload = this.step_func(function() { - i++; - if (i == 1) { - iframe.contentWindow.location.search = '?' + input_url_html.split('?')[1] + '&other=foobar'; - } else { - var got = iframe.contentDocument.body.textContent; - assert_equals(got, expected_current); - this.done(); - } - }); - }, 'location.search', - {help:['https://html.spec.whatwg.org/multipage/#the-location-interface', - 'http://url.spec.whatwg.org/#dom-url-search']}); - // a.search, area.search function test_hyperlink_search(tag) { test(function() { diff --git a/tests/wpt/web-platform-tests/html/rendering/replaced-elements/embedded-content/video-controls-vertical-writing-mode-ref.html b/tests/wpt/web-platform-tests/html/rendering/replaced-elements/embedded-content/video-controls-vertical-writing-mode-ref.html new file mode 100644 index 000000000000..9a2d1d064139 --- /dev/null +++ b/tests/wpt/web-platform-tests/html/rendering/replaced-elements/embedded-content/video-controls-vertical-writing-mode-ref.html @@ -0,0 +1,4 @@ + +
+
diff --git a/tests/wpt/web-platform-tests/html/rendering/replaced-elements/embedded-content/video-controls-vertical-writing-mode.html b/tests/wpt/web-platform-tests/html/rendering/replaced-elements/embedded-content/video-controls-vertical-writing-mode.html new file mode 100644 index 000000000000..d124396ab2c0 --- /dev/null +++ b/tests/wpt/web-platform-tests/html/rendering/replaced-elements/embedded-content/video-controls-vertical-writing-mode.html @@ -0,0 +1,8 @@ + + +Video controls rendering in vertical-lr + + +
+
diff --git a/tests/wpt/web-platform-tests/html/semantics/document-metadata/the-link-element/link-rel-attribute.html b/tests/wpt/web-platform-tests/html/semantics/document-metadata/the-link-element/link-rel-attribute.html index 4492f88bbb5e..14d06227ac86 100644 --- a/tests/wpt/web-platform-tests/html/semantics/document-metadata/the-link-element/link-rel-attribute.html +++ b/tests/wpt/web-platform-tests/html/semantics/document-metadata/the-link-element/link-rel-attribute.html @@ -16,11 +16,6 @@
diff --git a/tests/wpt/web-platform-tests/html/user-activation/activation-thru-contextmenu-event-manual.html b/tests/wpt/web-platform-tests/html/user-activation/activation-thru-contextmenu-event-manual.html new file mode 100644 index 000000000000..96d17e27c892 --- /dev/null +++ b/tests/wpt/web-platform-tests/html/user-activation/activation-thru-contextmenu-event-manual.html @@ -0,0 +1,58 @@ + + + + User activation with 'contextmenu' event + + + + + + + + + +

User activation with 'contextmenu' event

+

Tests that a 'contextmenu' event is treated like a user activation.

+
    +
  1. Right-click or long-press on green.
  2. +
  3. Click or tap on Done.
  4. +
+
+ + + diff --git a/tests/wpt/web-platform-tests/html/webappapis/structured-clone/structured-clone-battery-of-tests-harness.js b/tests/wpt/web-platform-tests/html/webappapis/structured-clone/structured-clone-battery-of-tests-harness.js new file mode 100644 index 000000000000..624f98344c8b --- /dev/null +++ b/tests/wpt/web-platform-tests/html/webappapis/structured-clone/structured-clone-battery-of-tests-harness.js @@ -0,0 +1,39 @@ +/** + * Runs a collection of tests that determine if an API implements structured clone + * correctly. + * + * The `runner` parameter has the following properties: + * - `setup()`: An optional function run once before testing starts + * - `teardown()`: An option function run once after all tests are done + * - `preTest()`: An optional, async function run before a test + * - `postTest()`: An optional, async function run after a test is done + * - `structuredClone(obj, transferList)`: Required function that somehow + * structurally clones an object. + * - `noTransferTests`: When true, disables tests with transferables + */ + +function runStructuredCloneBatteryOfTests(runner) { + const defaultRunner = { + setup() {}, + preTest() {}, + postTest() {}, + teardown() {} + }; + runner = Object.assign({}, defaultRunner, runner); + + let setupPromise = runner.setup(); + const allTests = structuredCloneBatteryOfTests.map(test => { + + return new Promise(resolve => { + promise_test(async _ => { + test = await test; + await setupPromise; + await runner.preTest(test); + await test.f(runner) + await runner.postTest(test); + resolve(); + }, test.description); + }).catch(_ => {}); + }); + Promise.all(allTests).then(_ => runner.teardown()); +} diff --git a/tests/wpt/web-platform-tests/html/webappapis/structured-clone/structured-clone-battery-of-tests-with-transferables.js b/tests/wpt/web-platform-tests/html/webappapis/structured-clone/structured-clone-battery-of-tests-with-transferables.js new file mode 100644 index 000000000000..744f11681960 --- /dev/null +++ b/tests/wpt/web-platform-tests/html/webappapis/structured-clone/structured-clone-battery-of-tests-with-transferables.js @@ -0,0 +1,22 @@ +structuredCloneBatteryOfTests.push({ + description: 'ArrayBuffer', + async f(runner) { + const buffer = new Uint8Array([1]).buffer; + const copy = await runner.structuredClone(buffer, [buffer]); + assert_equals(buffer.byteLength, 0); + assert_equals(copy.byteLength, 1); + } +}); + +structuredCloneBatteryOfTests.push({ + description: 'MessagePort', + async f(runner) { + const {port1, port2} = new MessageChannel(); + const copy = await runner.structuredClone(port2, [port2]); + const msg = new Promise(resolve => port1.onmessage = resolve); + copy.postMessage('ohai'); + assert_equals((await msg).data, 'ohai'); + } +}); + +// TODO: ImageBitmap diff --git a/tests/wpt/web-platform-tests/workers/semantics/structured-clone/common.js b/tests/wpt/web-platform-tests/html/webappapis/structured-clone/structured-clone-battery-of-tests.js similarity index 73% rename from tests/wpt/web-platform-tests/workers/semantics/structured-clone/common.js rename to tests/wpt/web-platform-tests/html/webappapis/structured-clone/structured-clone-battery-of-tests.js index 56c2a3004018..40bcd8031b22 100644 --- a/tests/wpt/web-platform-tests/workers/semantics/structured-clone/common.js +++ b/tests/wpt/web-platform-tests/html/webappapis/structured-clone/structured-clone-battery-of-tests.js @@ -1,22 +1,23 @@ -function createWorker(msg) { - // `type` is defined in the test case itself - if (type == 'dedicated') - return new Worker('dedicated.js#'+encodeURIComponent(msg)); - else if (type == 'shared') - return (new SharedWorker('shared.js#'+encodeURIComponent(msg))).port; - else - assert_unreached('invalid or missing `type`'); -} - -function check(msg, input, callback, test_obj) { - if (!test_obj) - test_obj = async_test(msg); - test_obj.step(function() { - var w = createWorker(msg); - if (typeof input === 'function') - input = this.step(input); - w.postMessage(input); - w.onmessage = this.step_func(function(ev) { callback(ev.data, input, this); }); +/* This file is mostly a remix of @zcorpan’s web worker test suite */ + +structuredCloneBatteryOfTests = []; + +function check(description, input, callback) { + testObjMock = { + done() {}, + step_func(f) {return _ => f()}, + }; + + structuredCloneBatteryOfTests.push({ + description, + async f(runner) { + let newInput = input; + if (typeof input === 'function') { + newInput = input(); + } + const copy = await runner.structuredClone(newInput); + await callback(copy, newInput, testObjMock); + } }); } @@ -261,7 +262,7 @@ check('Object RegExp object, RegExp empty', {'x':new RegExp('')}, compare_Object check('Object RegExp object, RegExp slash', {'x':new RegExp('/')}, compare_Object(enumerate_props(compare_RegExp('\\/')))); check('Object RegExp object, RegExp new line', {'x':new RegExp('\n')}, compare_Object(enumerate_props(compare_RegExp('\\n')))); -function compare_Blob(actual, input, test_obj, expect_File) { +async function compare_Blob(actual, input, test_obj, expect_File) { if (typeof actual === 'string') assert_unreached(actual); assert_true(actual instanceof Blob, 'instanceof Blob'); @@ -270,31 +271,14 @@ function compare_Blob(actual, input, test_obj, expect_File) { assert_equals(actual.size, input.size, 'size'); assert_equals(actual.type, input.type, 'type'); assert_not_equals(actual, input); - var ev_reader = new FileReader(); - var input_reader = new FileReader(); - var read_count = 0; - var read_done = test_obj.step_func(function() { - read_count++; - if (read_count == 2) { - var ev_result = ev_reader.result; - var input_result = input_reader.result; - assert_equals(ev_result.byteLength, input_result.byteLength, 'byteLength'); - var ev_view = new DataView(ev_result); - var input_view = new DataView(input_result); - for (var i = 0; i < ev_result.byteLength; ++i) { - assert_equals(ev_view.getUint8(i), input_view.getUint8(i), 'getUint8('+i+')'); - } - if (test_obj) - test_obj.done(); - } - }); - var read_error = test_obj.step_func(function() { assert_unreached('FileReader error'); }); - ev_reader.readAsArrayBuffer(actual); - ev_reader.onload = read_done; - ev_reader.onabort = ev_reader.onerror = read_error; - input_reader.readAsArrayBuffer(input); - input_reader.onload = read_done; - input_reader.onabort = input_reader.onerror = read_error; + const ab1 = new Response(actual).arrayBuffer(); + const ab2 = new Response(input).arrayBuffer(); + assert_equals(ab1.btyeLength, ab2.byteLength, 'byteLength'); + const ta1 = new Uint8Array(ab1); + const ta2 = new Uint8Array(ab2); + for(let i = 0; i < ta1.size; i++) { + assert_equals(ta1[i], ta2[i]); + } } function func_Blob_basic() { return new Blob(['foo'], {type:'text/x-bar'}); @@ -338,43 +322,19 @@ function func_Blob_NUL() { } check('Blob NUL', func_Blob_NUL, compare_Blob); -async_test(function(test_obj) { - check(test_obj.name, [test_obj.step(func_Blob_basic)], compare_Array(enumerate_props(compare_Blob, test_obj), true), test_obj); -}, 'Array Blob object, Blob basic'); -async_test(function(test_obj) { - check(test_obj.name, [test_obj.step(func_Blob_bytes([0xD800]))], compare_Array(enumerate_props(compare_Blob, test_obj), true), test_obj); -}, 'Array Blob object, Blob unpaired high surrogate (invalid utf-8)'); -async_test(function(test_obj) { - check(test_obj.name, [test_obj.step(func_Blob_bytes([0xDC00]))], compare_Array(enumerate_props(compare_Blob, test_obj), true), test_obj); -}, 'Array Blob object, Blob unpaired low surrogate (invalid utf-8)'); -async_test(function(test_obj) { - check(test_obj.name, [test_obj.step(func_Blob_bytes([0xD800, 0xDC00]))], compare_Array(enumerate_props(compare_Blob, test_obj), true), test_obj); -}, 'Array Blob object, Blob paired surrogates (invalid utf-8)'); -async_test(function(test_obj) { - check(test_obj.name, [test_obj.step(func_Blob_empty)], compare_Array(enumerate_props(compare_Blob, test_obj), true), test_obj); -}, 'Array Blob object, Blob empty'); -async_test(function(test_obj) { - check(test_obj.name, [test_obj.step(func_Blob_NUL)], compare_Array(enumerate_props(compare_Blob, test_obj), true), test_obj); -}, 'Array Blob object, Blob NUL'); - -async_test(function(test_obj) { - check(test_obj.name, {'x':test_obj.step(func_Blob_basic)}, compare_Object(enumerate_props(compare_Blob, test_obj), true), test_obj); -}, 'Object Blob object, Blob basic'); -async_test(function(test_obj) { - check(test_obj.name, {'x':test_obj.step(func_Blob_bytes([0xD800]))}, compare_Object(enumerate_props(compare_Blob, test_obj), true), test_obj); -}, 'Object Blob object, Blob unpaired high surrogate (invalid utf-8)'); -async_test(function(test_obj) { - check(test_obj.name, {'x':test_obj.step(func_Blob_bytes([0xDC00]))}, compare_Object(enumerate_props(compare_Blob, test_obj), true), test_obj); -}, 'Object Blob object, Blob unpaired low surrogate (invalid utf-8)'); -async_test(function(test_obj) { - check(test_obj.name, {'x':test_obj.step(func_Blob_bytes([0xD800, 0xDC00]))}, compare_Object(enumerate_props(compare_Blob, test_obj), true), test_obj); -}, 'Object Blob object, Blob paired surrogates (invalid utf-8)'); -async_test(function(test_obj) { - check(test_obj.name, {'x':test_obj.step(func_Blob_empty)}, compare_Object(enumerate_props(compare_Blob, test_obj), true), test_obj); -}, 'Object Blob object, Blob empty'); -async_test(function(test_obj) { - check(test_obj.name, {'x':test_obj.step(func_Blob_NUL)}, compare_Object(enumerate_props(compare_Blob, test_obj), true), test_obj); -}, 'Object Blob object, Blob NUL'); +check('Array Blob object, Blob basic', [func_Blob_basic()], compare_Array(enumerate_props(compare_Blob), true)); +check('Array Blob object, Blob unpaired high surrogate (invalid utf-8)', [func_Blob_bytes([0xD800])()], compare_Array(enumerate_props(compare_Blob), true)); +check('Array Blob object, Blob unpaired low surrogate (invalid utf-8)', [func_Blob_bytes([0xDC00])()], compare_Array(enumerate_props(compare_Blob), true)); +check('Array Blob object, Blob paired surrogates (invalid utf-8)', [func_Blob_bytes([0xD800, 0xDC00])()], compare_Array(enumerate_props(compare_Blob), true)); +check('Array Blob object, Blob empty', [func_Blob_empty()], compare_Array(enumerate_props(compare_Blob), true)); +check('Array Blob object, Blob NUL', [func_Blob_NUL()], compare_Array(enumerate_props(compare_Blob), true)); + +check('Object Blob object, Blob basic', {'x':func_Blob_basic()}, compare_Object(enumerate_props(compare_Blob), true)); +check('Object Blob object, Blob unpaired high surrogate (invalid utf-8)', {'x':func_Blob_bytes([0xD800])()}, compare_Object(enumerate_props(compare_Blob), true)); +check('Object Blob object, Blob unpaired low surrogate (invalid utf-8)', {'x':func_Blob_bytes([0xDC00])()}, compare_Object(enumerate_props(compare_Blob), true)); +check('Object Blob object, Blob paired surrogates (invalid utf-8)', {'x':func_Blob_bytes([0xD800, 0xDC00])() }, compare_Object(enumerate_props(compare_Blob), true)); +check('Object Blob object, Blob empty', {'x':func_Blob_empty()}, compare_Object(enumerate_props(compare_Blob), true)); +check('Object Blob object, Blob NUL', {'x':func_Blob_NUL()}, compare_Object(enumerate_props(compare_Blob), true)); function compare_File(actual, input, test_obj) { assert_true(actual instanceof File, 'instanceof File'); @@ -404,8 +364,8 @@ function func_FileList_empty() { return input.files; } check('FileList empty', func_FileList_empty, compare_FileList); -check('Array FileList object, FileList empty', [func_FileList_empty], compare_Array(enumerate_props(compare_FileList))); -check('Object FileList object, FileList empty', {'x':func_FileList_empty}, compare_Object(enumerate_props(compare_FileList))); +check('Array FileList object, FileList empty', [func_FileList_empty()], compare_Array(enumerate_props(compare_FileList))); +check('Object FileList object, FileList empty', {'x':func_FileList_empty()}, compare_Object(enumerate_props(compare_FileList))); function compare_ArrayBufferView(view) { var Type = window[view]; @@ -449,72 +409,11 @@ function func_ImageData_1x1_non_transparent_non_black() { return imagedata; } check('ImageData 1x1 non-transparent non-black', func_ImageData_1x1_non_transparent_non_black, compare_ImageData); -async_test(function(test_obj) { - check(test_obj.name, [test_obj.step(func_ImageData_1x1_transparent_black)], compare_Array(enumerate_props(compare_ImageData)), test_obj); -}, 'Array ImageData object, ImageData 1x1 transparent black'); -async_test(function(test_obj) { - check(test_obj.name, [test_obj.step(func_ImageData_1x1_non_transparent_non_black)], compare_Array(enumerate_props(compare_ImageData)), test_obj); -}, 'Array ImageData object, ImageData 1x1 non-transparent non-black'); -async_test(function(test_obj) { - check(test_obj.name, {'x':test_obj.step(func_ImageData_1x1_transparent_black)}, compare_Object(enumerate_props(compare_ImageData)), test_obj); -}, 'Object ImageData object, ImageData 1x1 transparent black'); -async_test(function(test_obj) { - check(test_obj.name, {'x':test_obj.step(func_ImageData_1x1_non_transparent_non_black)}, compare_Object(enumerate_props(compare_ImageData)), test_obj); -}, 'Object ImageData object, ImageData 1x1 non-transparent non-black'); - -function compare_ImageBitmap(actual, input, test_obj) { - if (typeof actual === 'string') - assert_unreached(actual); - assert_equals(actual instanceof ImageBitmap, 'instanceof ImageBitmap'); - assert_not_equals(actual, input); - // XXX paint the ImageBitmap on a canvas and check the data - if (test_obj) - test_obj.done(); -} -function get_canvas_1x1_transparent_black() { - var canvas = document.createElement('canvas'); - canvas.width = 1; - canvas.height = 1; - return canvas; -} -async_test(function(test_obj) { - var canvas = get_canvas_1x1_transparent_black(); - createImageBitmap(canvas, function(image) { check(test_obj.name, image, compare_ImageBitmap, test_obj); }); -}, 'ImageBitmap 1x1 transparent black'); -function get_canvas_1x1_non_transparent_non_black() { - var canvas = document.createElement('canvas'); - canvas.width = 1; - canvas.height = 1; - var ctx = canvas.getContext('2d'); - var imagedata = ctx.getImageData(0, 0, 1, 1); - imagedata.data[0] = 100; - imagedata.data[1] = 101; - imagedata.data[2] = 102; - imagedata.data[3] = 103; - return canvas; -} -async_test(function(test_obj) { - var canvas = get_canvas_1x1_non_transparent_non_black(); - createImageBitmap(canvas, function(image) { check(test_obj.name, image, compare_ImageBitmap, test_obj); }); -}, 'ImageBitmap 1x1 non-transparent non-black'); - -async_test(function(test_obj) { - var canvas = get_canvas_1x1_transparent_black(); - createImageBitmap(canvas, function(image) { check(test_obj.name, [image], compare_Array(enumerate_props(compare_ImageBitmap)), test_obj); }); -}, 'Array ImageBitmap object, ImageBitmap 1x1 transparent black'); -async_test(function(test_obj) { - var canvas = get_canvas_1x1_non_transparent_non_black(); - createImageBitmap(canvas, function(image) { check(test_obj.name, [image], compare_Array(enumerate_props(compare_ImageBitmap)), test_obj); }); -}, 'Array ImageBitmap object, ImageBitmap 1x1 non-transparent non-black'); - -async_test(function(test_obj) { - var canvas = get_canvas_1x1_transparent_black(); - createImageBitmap(canvas, function(image) { check(test_obj.name, {'x':image}, compare_Object(enumerate_props(compare_ImageBitmap)), test_obj); }); -}, 'Object ImageBitmap object, ImageBitmap 1x1 transparent black'); -async_test(function(test_obj) { - var canvas = get_canvas_1x1_non_transparent_non_black(); - createImageBitmap(canvas, function(image) { check(test_obj.name, {'x':image}, compare_Object(enumerate_props(compare_ImageBitmap)), test_obj); }); -}, 'Object ImageBitmap object, ImageBitmap 1x1 non-transparent non-black'); +check('Array ImageData object, ImageData 1x1 transparent black', [func_ImageData_1x1_transparent_black()], compare_Array(enumerate_props(compare_ImageData))); +check('Array ImageData object, ImageData 1x1 non-transparent non-black', [func_ImageData_1x1_non_transparent_non_black()], compare_Array(enumerate_props(compare_ImageData))); +check('Object ImageData object, ImageData 1x1 transparent black', {'x':func_ImageData_1x1_transparent_black()}, compare_Object(enumerate_props(compare_ImageData))); +check('Object ImageData object, ImageData 1x1 non-transparent non-black', {'x':func_ImageData_1x1_non_transparent_non_black()}, compare_Object(enumerate_props(compare_ImageData))); + check('Array sparse', new Array(10), compare_Array(enumerate_props(compare_primitive))); check('Array with non-index property', function() { @@ -594,3 +493,94 @@ check('Object with non-configurable property', function() { Object.defineProperty(rv, 'foo', {value:'bar', enumerable:true, writable:true, configurable:false}); return rv; }, compare_Object(check_configurable_property('foo'))); + +/* The tests below are inspired by @zcorpan’s work but got some +more substantial changed due to their previous async setup */ + +function get_canvas_1x1_transparent_black() { + var canvas = document.createElement('canvas'); + canvas.width = 1; + canvas.height = 1; + return canvas; +} + +function get_canvas_1x1_non_transparent_non_black() { + var canvas = document.createElement('canvas'); + canvas.width = 1; + canvas.height = 1; + var ctx = canvas.getContext('2d'); + var imagedata = ctx.getImageData(0, 0, 1, 1); + imagedata.data[0] = 100; + imagedata.data[1] = 101; + imagedata.data[2] = 102; + imagedata.data[3] = 103; + return canvas; +} + +function compare_ImageBitmap(actual, input) { + if (typeof actual === 'string') + assert_unreached(actual); + assert_true(actual instanceof ImageBitmap, 'instanceof ImageBitmap'); + assert_not_equals(actual, input); + // XXX paint the ImageBitmap on a canvas and check the data +} + +structuredCloneBatteryOfTests.push({ + description: 'ImageBitmap 1x1 transparent black', + async f(runner) { + var canvas = get_canvas_1x1_transparent_black(); + const bm = await createImageBitmap(canvas); + const copy = await runner.structuredClone(bm); + compare_ImageBitmap(bm, copy); + } +}); + +structuredCloneBatteryOfTests.push({ + description: 'ImageBitmap 1x1 non-transparent non-black', + async f(runner) { + var canvas = get_canvas_1x1_non_transparent_non_black(); + const bm = await createImageBitmap(canvas); + const copy = await runner.structuredClone(bm); + compare_ImageBitmap(bm, copy); + } +}); + +structuredCloneBatteryOfTests.push({ + description: 'Array ImageBitmap object, ImageBitmap 1x1 transparent black', + async f(runner) { + var canvas = get_canvas_1x1_transparent_black(); + const bm = [await createImageBitmap(canvas)]; + const copy = await runner.structuredClone(bm); + compare_Array(enumerate_props(compare_ImageBitmap))(bm, copy); + } +}); + +structuredCloneBatteryOfTests.push({ + description: 'Array ImageBitmap object, ImageBitmap 1x1 transparent non-black', + async f(runner) { + var canvas = get_canvas_1x1_non_transparent_non_black(); + const bm = [await createImageBitmap(canvas)]; + const copy = await runner.structuredClone(bm); + compare_Array(enumerate_props(compare_ImageBitmap))(bm, copy); + } +}); + +structuredCloneBatteryOfTests.push({ + description: 'Object ImageBitmap object, ImageBitmap 1x1 transparent black', + async f(runner) { + var canvas = get_canvas_1x1_transparent_black(); + const bm = {x: await createImageBitmap(canvas)}; + const copy = await runner.structuredClone(bm); + compare_Object(enumerate_props(compare_ImageBitmap))(bm, copy); + } +}); + +structuredCloneBatteryOfTests.push({ + description: 'Object ImageBitmap object, ImageBitmap 1x1 transparent non-black', + async f(runner) { + var canvas = get_canvas_1x1_non_transparent_non_black(); + const bm = {x: await createImageBitmap(canvas)}; + const copy = await runner.structuredClone(bm); + compare_Object(enumerate_props(compare_ImageBitmap))(bm, copy); + } +}); diff --git a/tests/wpt/web-platform-tests/html/webappapis/timers/missing-timeout-setinterval.any.js b/tests/wpt/web-platform-tests/html/webappapis/timers/missing-timeout-setinterval.any.js new file mode 100644 index 000000000000..33a1cc073c8c --- /dev/null +++ b/tests/wpt/web-platform-tests/html/webappapis/timers/missing-timeout-setinterval.any.js @@ -0,0 +1,34 @@ +function timeout_trampoline(t, timeout, message) { + t.step_timeout(function() { + // Yield in case we managed to be called before the second interval callback. + t.step_timeout(function() { + assert_unreached(message); + }, timeout); + }, timeout); +} + +async_test(function(t) { + let ctr = 0; + let h = setInterval(t.step_func(function() { + if (++ctr == 2) { + clearInterval(h); + t.done(); + return; + } + }) /* no interval */); + + timeout_trampoline(t, 100, "Expected setInterval callback to be called two times"); +}, "Calling setInterval with no interval should be the same as if called with 0 interval"); + +async_test(function(t) { + let ctr = 0; + let h = setInterval(t.step_func(function() { + if (++ctr == 2) { + clearInterval(h); + t.done(); + return; + } + }), undefined); + + timeout_trampoline(t, 100, "Expected setInterval callback to be called two times"); +}, "Calling setInterval with undefined interval should be the same as if called with 0 interval"); diff --git a/tests/wpt/web-platform-tests/http/OWNERS b/tests/wpt/web-platform-tests/http/OWNERS deleted file mode 100644 index cb2fb6623ee3..000000000000 --- a/tests/wpt/web-platform-tests/http/OWNERS +++ /dev/null @@ -1,2 +0,0 @@ -@annevk -@mnot diff --git a/tests/wpt/web-platform-tests/http/refresh/README.md b/tests/wpt/web-platform-tests/http/refresh/README.md deleted file mode 100644 index bad9833250a7..000000000000 --- a/tests/wpt/web-platform-tests/http/refresh/README.md +++ /dev/null @@ -1 +0,0 @@ -See `../../html/semantics/document-metadata/the-meta-element/pragma-directives/attr-meta-http-equiv-refresh/parsing.html` for more detailed parsing tests (shared with ``). diff --git a/tests/wpt/web-platform-tests/imagebitmap-renderingcontext/OWNERS b/tests/wpt/web-platform-tests/imagebitmap-renderingcontext/OWNERS new file mode 100644 index 000000000000..3bb6edf248aa --- /dev/null +++ b/tests/wpt/web-platform-tests/imagebitmap-renderingcontext/OWNERS @@ -0,0 +1,5 @@ +@AmeliaBR +@annevk +@kenrussell +@jdashg +@fserb diff --git a/tests/wpt/web-platform-tests/infrastructure/browsers/firefox/prefs.html b/tests/wpt/web-platform-tests/infrastructure/browsers/firefox/prefs.html index 64a985a4d1bb..51f9f994ac50 100644 --- a/tests/wpt/web-platform-tests/infrastructure/browsers/firefox/prefs.html +++ b/tests/wpt/web-platform-tests/infrastructure/browsers/firefox/prefs.html @@ -3,5 +3,6 @@

This should be green

diff --git a/tests/wpt/web-platform-tests/infrastructure/expected-fail/timeout.html b/tests/wpt/web-platform-tests/infrastructure/expected-fail/timeout.html new file mode 100644 index 000000000000..29ff348a9af6 --- /dev/null +++ b/tests/wpt/web-platform-tests/infrastructure/expected-fail/timeout.html @@ -0,0 +1,8 @@ + + +Test that should time out + + + diff --git a/tests/wpt/web-platform-tests/infrastructure/metadata/infrastructure/expected-fail/timeout.html.ini b/tests/wpt/web-platform-tests/infrastructure/metadata/infrastructure/expected-fail/timeout.html.ini new file mode 100644 index 000000000000..53b281f8358c --- /dev/null +++ b/tests/wpt/web-platform-tests/infrastructure/metadata/infrastructure/expected-fail/timeout.html.ini @@ -0,0 +1,4 @@ +[timeout.html] + expected: TIMEOUT + [Test that should time out] + expected: NOTRUN diff --git a/tests/wpt/web-platform-tests/infrastructure/server/wpt-server-http.sub.html b/tests/wpt/web-platform-tests/infrastructure/server/wpt-server-http.sub.html index 438a6e651391..8099b9d9c680 100644 --- a/tests/wpt/web-platform-tests/infrastructure/server/wpt-server-http.sub.html +++ b/tests/wpt/web-platform-tests/infrastructure/server/wpt-server-http.sub.html @@ -120,6 +120,22 @@ })); }, 'HTTP protocol, punycode subdomain #2, port #2'); +async_test(function(t) { + check('http', 'nonexistent.{{domains[]}}', {{ports[http][0]}}, t.step_func(function(result) { + assert_false(result); + + t.done(); + })); +}, 'HTTP protocol, non-existent domain, port #1'); + +async_test(function(t) { + check('http', 'nonexistent.{{domains[]}}', {{ports[http][1]}}, t.step_func(function(result) { + assert_false(result); + + t.done(); + })); +}, 'HTTP protocol, non-existent domain, port #2'); + async_test(function(t) { check('https', '{{browser_host}}', {{ports[https][0]}}, t.step_func(function(result) { assert_true(result); @@ -167,6 +183,22 @@ t.done(); })); }, 'HTTPS protocol, punycode subdomain #2'); + +async_test(function(t) { + check('https', 'nonexistent.{{domains[]}}', {{ports[http][0]}}, t.step_func(function(result) { + assert_false(result); + + t.done(); + })); +}, 'HTTPS protocol, non-existent domain, port #1'); + +async_test(function(t) { + check('https', 'nonexistent.{{domains[]}}', {{ports[http][1]}}, t.step_func(function(result) { + assert_false(result); + + t.done(); + })); +}, 'HTTPS protocol, non-existent domain, port #2'); diff --git a/tests/wpt/web-platform-tests/interfaces/cookie-store.idl b/tests/wpt/web-platform-tests/interfaces/cookie-store.idl index 6d4f35973cb5..b38f61e749d0 100644 --- a/tests/wpt/web-platform-tests/interfaces/cookie-store.idl +++ b/tests/wpt/web-platform-tests/interfaces/cookie-store.idl @@ -13,13 +13,26 @@ dictionary CookieChangeEventInit : EventInit { }; [ - Exposed=(ServiceWorker,Window), + Exposed=Window, Constructor(DOMString type, optional CookieChangeEventInit eventInitDict) ] interface CookieChangeEvent : Event { readonly attribute CookieList changed; readonly attribute CookieList deleted; }; +dictionary ExtendableCookieChangeEventInit : ExtendableEventInit { + CookieList changed; + CookieList deleted; +}; + +[ + Exposed=ServiceWorker, + Constructor(DOMString type, optional ExtendableCookieChangeEventInit eventInitDict) +] interface ExtendableCookieChangeEvent : ExtendableEvent { + readonly attribute CookieList changed; + readonly attribute CookieList deleted; +}; + enum CookieMatchType { "equals", "startsWith" @@ -59,7 +72,11 @@ dictionary CookieStoreSetOptions { Promise delete(USVString name, optional CookieStoreSetOptions options); Promise delete(CookieStoreSetOptions options); - attribute EventHandler onchange; + [Exposed=ServiceWorker] Promise subscribeToChanges(sequence subscriptions); + + [Exposed=ServiceWorker] Promise> getChangeSubscriptions(); + + [Exposed=Window] attribute EventHandler onchange; }; partial interface Window { diff --git a/tests/wpt/web-platform-tests/interfaces/cssom.idl b/tests/wpt/web-platform-tests/interfaces/cssom.idl index bbbd9272a08b..b99bbc7a3c60 100644 --- a/tests/wpt/web-platform-tests/interfaces/cssom.idl +++ b/tests/wpt/web-platform-tests/interfaces/cssom.idl @@ -118,8 +118,6 @@ interface CSSStyleDeclaration { CSSOMString getPropertyValue(CSSOMString property); CSSOMString getPropertyPriority(CSSOMString property); [CEReactions] void setProperty(CSSOMString property, [TreatNullAs=EmptyString] CSSOMString value, [TreatNullAs=EmptyString] optional CSSOMString priority = ""); - [CEReactions] void setPropertyValue(CSSOMString property, [TreatNullAs=EmptyString] CSSOMString value); - [CEReactions] void setPropertyPriority(CSSOMString property, [TreatNullAs=EmptyString] CSSOMString priority); [CEReactions] CSSOMString removeProperty(CSSOMString property); readonly attribute CSSRule? parentRule; [CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString cssFloat; diff --git a/tests/wpt/web-platform-tests/interfaces/html.idl b/tests/wpt/web-platform-tests/interfaces/html.idl index 8552ae4ed30d..8d9cb2fea53b 100644 --- a/tests/wpt/web-platform-tests/interfaces/html.idl +++ b/tests/wpt/web-platform-tests/interfaces/html.idl @@ -116,6 +116,7 @@ dictionary FocusOptions { HTMLElement includes GlobalEventHandlers; HTMLElement includes DocumentAndElementEventHandlers; HTMLElement includes ElementContentEditable; +HTMLElement includes HTMLOrSVGElement; // Note: intentionally not [HTMLConstructor] interface HTMLUnknownElement : HTMLElement { }; @@ -128,8 +129,6 @@ interface mixin HTMLOrSVGElement { void focus(optional FocusOptions options); void blur(); }; -HTMLElement includes HTMLOrSVGElement; -SVGElement includes HTMLOrSVGElement; [Exposed=Window, OverrideBuiltins] diff --git a/tests/wpt/web-platform-tests/interfaces/keyboard-map.idl b/tests/wpt/web-platform-tests/interfaces/keyboard-map.idl new file mode 100644 index 000000000000..e2f2c32736d0 --- /dev/null +++ b/tests/wpt/web-platform-tests/interfaces/keyboard-map.idl @@ -0,0 +1,11 @@ +partial interface Navigator { + [SecureContext, SameObject] readonly attribute Keyboard keyboard; +}; + +interface KeyboardLayoutMap { + readonly maplike; +}; + +[SecureContext, Exposed=Window] interface Keyboard { + Promise getLayoutMap(); +}; diff --git a/tests/wpt/web-platform-tests/intersection-observer/isIntersecting-change-events.html b/tests/wpt/web-platform-tests/intersection-observer/isIntersecting-change-events.html new file mode 100644 index 000000000000..f9362c3024c2 --- /dev/null +++ b/tests/wpt/web-platform-tests/intersection-observer/isIntersecting-change-events.html @@ -0,0 +1,112 @@ + + + + + + + +
+
+
+
+
+ + diff --git a/tests/wpt/web-platform-tests/intersection-observer/resources/intersection-observer-test-utils.js b/tests/wpt/web-platform-tests/intersection-observer/resources/intersection-observer-test-utils.js index 48ccbb1991b7..5ad811932f06 100644 --- a/tests/wpt/web-platform-tests/intersection-observer/resources/intersection-observer-test-utils.js +++ b/tests/wpt/web-platform-tests/intersection-observer/resources/intersection-observer-test-utils.js @@ -120,3 +120,8 @@ function checkJsonEntries(actual, expected, description) { checkJsonEntry(actual[i], expected[i]); }, description); } + +function checkIsIntersecting(entries, i, expected) { + assert_equals(entries[i].isIntersecting, expected, + 'entries[' + i + '].target.isIntersecting equals ' + expected); +} \ No newline at end of file diff --git a/tests/wpt/web-platform-tests/keyboard-lock/OWNERS b/tests/wpt/web-platform-tests/keyboard-lock/OWNERS new file mode 100644 index 000000000000..9e83dd91ab24 --- /dev/null +++ b/tests/wpt/web-platform-tests/keyboard-lock/OWNERS @@ -0,0 +1,2 @@ +@garykac +@joedow-42 diff --git a/tests/wpt/web-platform-tests/keyboard-lock/navigator-keyboard-lock-blocked-from-cross-origin-iframe.https.html b/tests/wpt/web-platform-tests/keyboard-lock/navigator-keyboard-lock-blocked-from-cross-origin-iframe.https.html new file mode 100644 index 000000000000..ef79c0c80afa --- /dev/null +++ b/tests/wpt/web-platform-tests/keyboard-lock/navigator-keyboard-lock-blocked-from-cross-origin-iframe.https.html @@ -0,0 +1,29 @@ + + + + + + diff --git a/tests/wpt/web-platform-tests/keyboard-lock/navigator-keyboard-lock-blocked-from-iframe.https.html b/tests/wpt/web-platform-tests/keyboard-lock/navigator-keyboard-lock-blocked-from-iframe.https.html new file mode 100644 index 000000000000..a01f6a2fc75e --- /dev/null +++ b/tests/wpt/web-platform-tests/keyboard-lock/navigator-keyboard-lock-blocked-from-iframe.https.html @@ -0,0 +1,28 @@ + + + + + diff --git a/tests/wpt/web-platform-tests/keyboard-lock/resources/iframe-lock-helper.html b/tests/wpt/web-platform-tests/keyboard-lock/resources/iframe-lock-helper.html new file mode 100644 index 000000000000..3950802f8e12 --- /dev/null +++ b/tests/wpt/web-platform-tests/keyboard-lock/resources/iframe-lock-helper.html @@ -0,0 +1,20 @@ + + diff --git a/tests/wpt/web-platform-tests/keyboard-map/idlharness.https.html b/tests/wpt/web-platform-tests/keyboard-map/idlharness.https.html new file mode 100644 index 000000000000..05d687d7fb10 --- /dev/null +++ b/tests/wpt/web-platform-tests/keyboard-map/idlharness.https.html @@ -0,0 +1,31 @@ + + + +Keyboard Map IDL tests + + + + + + diff --git a/tests/wpt/web-platform-tests/keyboard-map/keyboard-map-https.html b/tests/wpt/web-platform-tests/keyboard-map/keyboard-map-https.html new file mode 100644 index 000000000000..97a50dde8876 --- /dev/null +++ b/tests/wpt/web-platform-tests/keyboard-map/keyboard-map-https.html @@ -0,0 +1,30 @@ + + +Keyboard Map basic tests + + + diff --git a/tests/wpt/web-platform-tests/lint.whitelist b/tests/wpt/web-platform-tests/lint.whitelist index e7e1af829010..ce825bfa0217 100644 --- a/tests/wpt/web-platform-tests/lint.whitelist +++ b/tests/wpt/web-platform-tests/lint.whitelist @@ -10,18 +10,13 @@ INDENT TABS: .gitmodules INDENT TABS: conformance-checkers/* INDENT TABS: content-security-policy/* -INDENT TABS: custom-elements/* -INDENT TABS: old-tests/* INDENT TABS: pointerlock/* INDENT TABS: shadow-dom/* -INDENT TABS: tools/* -INDENT TABS: web-animations/* INDENT TABS: webaudio/* INDENT TABS: webvtt/* INDENT TABS: encoding/legacy*/* TRAILING WHITESPACE: 2dcontext/tools/current-work-canvas.xhtml -TRAILING WHITESPACE: battery-status/* TRAILING WHITESPACE: conformance-checkers/* TRAILING WHITESPACE: content-security-policy/* TRAILING WHITESPACE: custom-elements/* @@ -29,11 +24,9 @@ TRAILING WHITESPACE: html-longdesc/* TRAILING WHITESPACE: old-tests/* TRAILING WHITESPACE: pointerevents/* TRAILING WHITESPACE: shadow-dom/* -TRAILING WHITESPACE: tools/* TRAILING WHITESPACE: webaudio/* TRAILING WHITESPACE: WebIDL/* TRAILING WHITESPACE: webvtt/* -TRAILING WHITESPACE: encoding/legacy*/* TRAILING WHITESPACE: server-timing/resources/parsing/*.sub.headers ## File types that should never be checked ## @@ -77,9 +70,6 @@ WEB-PLATFORM.TEST:docs/* ## Helper scripts ## -W3C-TEST.ORG: tools/* -PRINT STATEMENT: tools/* -W3C-TEST.ORG: */tools/* PRINT STATEMENT: */tools/* ## Deliberate copies of Ahem ## @@ -101,7 +91,6 @@ CR AT EOL: html/form-elements/the-textarea-element/multiline-placeholder-cr.html CR AT EOL: html/form-elements/the-textarea-element/multiline-placeholder-crlf.html CR AT EOL: html/input/the-placeholder-attribute/multiline-cr.html CR AT EOL: html/input/the-placeholder-attribute/multiline-crlf.html -CR AT EOL: html/semantics/embedded-content/the-canvas-element/size.attributes.parse.whitespace.html CR AT EOL: webvtt/parsing/file-parsing/tests/support/newlines.vtt # Intentional use of tabs @@ -139,7 +128,6 @@ PARSE-FAILED: dom/nodes/Document-createElement-namespace-tests/minimal_html.xml # setTimeout usage (should probably mostly be fixed) SET TIMEOUT: *-manual.* -SET TIMEOUT: 2dcontext/* SET TIMEOUT: annotation-model/scripts/ajv.min.js SET TIMEOUT: apng/animated-png-timeout.html SET TIMEOUT: cookies/resources/testharness-helpers.js @@ -181,18 +169,13 @@ SET TIMEOUT: mixed-content/generic/sanity-checker.js SET TIMEOUT: navigation-timing/* SET TIMEOUT: offscreen-canvas/the-offscreen-canvas/* SET TIMEOUT: old-tests/submission/Microsoft/history/history_000.htm -SET TIMEOUT: page-visibility/resources/pagevistestharness.js SET TIMEOUT: paint-timing/resources/subframe-painting.html SET TIMEOUT: payment-request/allowpaymentrequest/setting-allowpaymentrequest-timing.https.sub.html -SET TIMEOUT: payment-request/payment-request-response-id.html -SET TIMEOUT: pointerevents/pointerevent_support.js SET TIMEOUT: preload/single-download-preload.html SET TIMEOUT: resize-observer/resources/iframe.html SET TIMEOUT: resource-timing/resource-timing.js SET TIMEOUT: resource-timing/single-entry-per-resource.html -SET TIMEOUT: screen-orientation/lock-bad-argument.html SET TIMEOUT: screen-orientation/onchange-event.html -SET TIMEOUT: screen-orientation/resources/sandboxed-iframe-locking.html SET TIMEOUT: secure-contexts/basic-popup-and-iframe-tests.https.js SET TIMEOUT: service-workers/cache-storage/script-tests/cache-abort.js SET TIMEOUT: service-workers/service-worker/activation.https.html @@ -208,12 +191,10 @@ SET TIMEOUT: service-workers/service-worker/resources/opaque-response-being-prel SET TIMEOUT: service-workers/service-worker/resources/opaque-response-preloaded-xhr.html SET TIMEOUT: service-workers/service-worker/resources/performance-timeline-worker.js SET TIMEOUT: service-workers/service-worker/resources/resource-timing-worker.js -SET TIMEOUT: service-workers/service-worker/resources/register-foreign-fetch-errors-worker.js SET TIMEOUT: shadow-dom/Document-prototype-currentScript.html SET TIMEOUT: shadow-dom/scroll-to-the-fragment-in-shadow-tree.html SET TIMEOUT: shadow-dom/slotchange-event.html SET TIMEOUT: shadow-dom/untriaged/html-elements-in-shadow-trees/html-forms/test-003.html -SET TIMEOUT: shadow-dom/untriaged/html-elements-in-shadow-trees/inert-html-elements/test-001.html SET TIMEOUT: streams/piping/close-propagation-forward.js SET TIMEOUT: streams/piping/error-propagation-backward.js SET TIMEOUT: streams/piping/error-propagation-forward.js @@ -222,12 +203,10 @@ SET TIMEOUT: streams/readable-streams/cancel.js SET TIMEOUT: streams/resources/rs-utils.js SET TIMEOUT: streams/writable-streams/byte-length-queuing-strategy.js SET TIMEOUT: user-timing/* -SET TIMEOUT: webaudio/js/lodash.js SET TIMEOUT: webaudio/the-audio-api/the-mediaelementaudiosourcenode-interface/mediaElementAudioSourceToScriptProcessorTest.html SET TIMEOUT: webauthn/*timeout.https.html SET TIMEOUT: webdriver/* SET TIMEOUT: webmessaging/* -SET TIMEOUT: websockets/* SET TIMEOUT: webstorage/eventTestHarness.js SET TIMEOUT: webvtt/* SET TIMEOUT: workers/* @@ -250,17 +229,13 @@ GENERATE_TESTS: css/css-tables/fixed-layout-2.html GENERATE_TESTS: css/css-tables/height-distribution/computing-row-measure-0.html GENERATE_TESTS: css/css-tables/height-distribution/computing-row-measure-1.html GENERATE_TESTS: css/css-tables/height-distribution/percentage-sizing-of-table-cell-children.html -GENERATE_TESTS: css/css-tables/height-distribution/percentage-sizing-of-table-cell-children.html GENERATE_TESTS: css/css-tables/html-to-css-mapping-1.html GENERATE_TESTS: css/css-tables/html-to-css-mapping-2.html GENERATE_TESTS: css/css-tables/html5-table-formatting-1.html -GENERATE_TESTS: css/css-tables/html5-table-formatting-1.html GENERATE_TESTS: css/css-tables/html5-table-formatting-2.html GENERATE_TESTS: css/css-tables/html5-table-formatting-3.html GENERATE_TESTS: css/css-tables/html5-table-formatting-fixed-layout-1.html GENERATE_TESTS: css/css-tables/table-model-fixup-2.html -GENERATE_TESTS: css/css-tables/table-model-fixup-2.html -GENERATE_TESTS: css/css-tables/table-model-fixup-2.html GENERATE_TESTS: css/css-tables/table-model-fixup.html GENERATE_TESTS: css/css-tables/visibility-collapse-col-001.html GENERATE_TESTS: css/css-tables/visibility-collapse-row-001.html @@ -323,12 +298,8 @@ SET TIMEOUT: resources/testharness.js SET TIMEOUT: acid/acid3/test.html # Travis -W3C-TEST.ORG: .travis.yml WEB-PLATFORM.TEST: .travis.yml -# Config -WEB-PLATFORM.TEST: config.default.json -WEB-PLATFORM.TEST: resources/test/config.test.json # Third party code *: css/tools/apiclient/* @@ -339,29 +310,22 @@ WEB-PLATFORM.TEST: resources/test/config.test.json # Build system virtualenv *: css/tools/_virtualenv/* - ## Third party data files TRAILING WHITESPACE: css/css-writing-modes/tools/generators/ucd/Blocks.txt TRAILING WHITESPACE: resources/chromium/* - ## Test generation files CONSOLE: css/css-writing-modes/tools/generators/unicode-data.js - ## Test plans and implementation reports -*: css/*/reports/* *: css/*/test-plan/* - ## Things we don't have enabled yet OPEN-NO-MODE: css/* -PARSE-FAILED: css/* PRINT STATEMENT: css/* CONTENT-VISUAL: css/* CONTENT-MANUAL: css/* - ## Support files not in /support/ or similar SUPPORT-WRONG-DIR: css/requirements.txt SUPPORT-WRONG-DIR: css/README.md @@ -374,10 +338,8 @@ SUPPORT-WRONG-DIR: css/*/README.md SUPPORT-WRONG-DIR: css/*-README SUPPORT-WRONG-DIR: css/*/LICENSE SUPPORT-WRONG-DIR: css/*/LICENSE-* -SUPPORT-WRONG-DIR: css/*/COPYING SUPPORT-WRONG-DIR: css/*/Makefile SUPPORT-WRONG-DIR: css/*/OWNERS -SUPPORT-WRONG-DIR: fonts/* # The selectors-3 testsuite has a weird build system SUPPORT-WRONG-DIR: css/selectors/* @@ -420,8 +382,6 @@ INDENT TABS: css/css-images/* INDENT TABS: css/css-lists/* INDENT TABS: css/css-masking/* INDENT TABS: css/css-multicol/* -INDENT TABS: css/cssom/* -INDENT TABS: css/cssom-view/* INDENT TABS: css/css-page/* INDENT TABS: css/css-pseudo/* INDENT TABS: css/css-regions/* @@ -437,7 +397,6 @@ INDENT TABS: css/css-values/* INDENT TABS: css/css-variables/* INDENT TABS: css/css-writing-modes/* INDENT TABS: css/filter-effects/* -INDENT TABS: fonts/* INDENT TABS: css/mediaqueries/* INDENT TABS: css/selectors/* INDENT TABS: css/vendor-imports/* @@ -474,10 +433,7 @@ TRAILING WHITESPACE: css/css-scoping/css-scoping-shadow-slotted-rule.html TRAILING WHITESPACE: css/css-scoping/css-scoping-shadow-with-outside-rules.html TRAILING WHITESPACE: css/css-scoping/css-scoping-shadow-with-rules.html TRAILING WHITESPACE: css/css-scoping/css-scoping-shadow-with-rules-no-style-leak.html -TRAILING WHITESPACE: css/css-transforms/css3-transform-rotateY.html TRAILING WHITESPACE: css/css-variables/reference/vars-font-shorthand-001-ref.html -TRAILING WHITESPACE: css/css-variables/vars-font-shorthand-001.html -TRAILING WHITESPACE: css/geometry/DOMMatrix-001.html TRAILING WHITESPACE: css/vendor-imports/mozilla/mozilla-central-reftests/css21/pagination/moz-css21-float-page-break-inside-avoid-7.html TRAILING WHITESPACE: css/vendor-imports/mozilla/mozilla-central-reftests/css21/pagination/moz-css21-float-page-break-inside-avoid-7-ref.html TRAILING WHITESPACE: css/vendor-imports/mozilla/mozilla-central-reftests/css21/pagination/moz-css21-float-page-break-inside-avoid-8.html @@ -549,24 +505,10 @@ SET TIMEOUT: css/CSS2/generated-content/counter-reset-002.xht SET TIMEOUT: css/CSS2/selectors/dom-hover-001.xht SET TIMEOUT: css/CSS2/selectors/dom-hover-002.xht SET TIMEOUT: css/CSS2/tables/tables-102.xht -SET TIMEOUT: css/cssom-view/matchMediaAddListener.html SET TIMEOUT: css/mediaqueries/min-width-tables-001.html -SET TIMEOUT: css/selectors/focus-within-shadow-001.html -SET TIMEOUT: css/selectors/focus-within-shadow-002.html -SET TIMEOUT: css/selectors/focus-within-shadow-003.html -SET TIMEOUT: css/selectors/focus-within-shadow-004.html -SET TIMEOUT: css/selectors/focus-within-shadow-005.html ## Build system stuff -CSS-COLLIDING-TEST-NAME: css/*/OWNERS -CSS-COLLIDING-TEST-NAME: css/*/README -CSS-COLLIDING-TEST-NAME: css/*/README.md -CSS-COLLIDING-TEST-NAME: css/*/LICENSE -CSS-COLLIDING-TEST-NAME: css/*/Makefile -CSS-COLLIDING-TEST-NAME: css/*/reftest.list -CSS-COLLIDING-TEST-NAME: css/*/.htaccess CSS-COLLIDING-SUPPORT-NAME: css/*/README -CSS-COLLIDING-SUPPORT-NAME: css/*/.htaccess CSS-COLLIDING-SUPPORT-NAME: css/*/LOCK # These are all the current "merge mismatch" errors the build system produces @@ -664,95 +606,6 @@ CSS-COLLIDING-SUPPORT-NAME: css/css-images/support/pattern-grg-rgr-grg.png CSS-COLLIDING-SUPPORT-NAME: css/CSS2/tables/support/pattern-grg-rgr-grg.png CSS-COLLIDING-SUPPORT-NAME: css/CSS2/values/support/pattern-grg-rgr-grg.png -# These are thrown off by their support/support/ copies -# https:css///github.com/w3c/csswg-test/issues/1235 -CSS-COLLIDING-SUPPORT-NAME: css/CSS2/bidi-text/support/swatch-red.png -CSS-COLLIDING-SUPPORT-NAME: css/CSS2/tables/support/swatch-red.png -CSS-COLLIDING-SUPPORT-NAME: css/CSS2/lists/support/swatch-red.png -CSS-COLLIDING-SUPPORT-NAME: css/filter-effects/support/swatch-red.png -CSS-COLLIDING-SUPPORT-NAME: css/cssom-view/support/swatch-red.png -CSS-COLLIDING-SUPPORT-NAME: css/css-values/support/swatch-red.png -CSS-COLLIDING-SUPPORT-NAME: css/css-style-attr/support/swatch-red.png -CSS-COLLIDING-SUPPORT-NAME: css/CSS2/text/support/swatch-red.png -CSS-COLLIDING-SUPPORT-NAME: css/css-multicol/support/swatch-red.png -CSS-COLLIDING-SUPPORT-NAME: css/CSS2/values/support/swatch-red.png -CSS-COLLIDING-SUPPORT-NAME: css/CSS2/box-display/support/swatch-red.png -CSS-COLLIDING-SUPPORT-NAME: css/CSS2/generated-content/support/swatch-red.png -CSS-COLLIDING-SUPPORT-NAME: css/support/support/swatch-red.png -CSS-COLLIDING-SUPPORT-NAME: css/css-fonts/support/swatch-red.png -CSS-COLLIDING-SUPPORT-NAME: css/CSS2/pagination/support/swatch-red.png -CSS-COLLIDING-SUPPORT-NAME: css/css-flexbox/support/swatch-red.png -CSS-COLLIDING-SUPPORT-NAME: css/CSS2/fonts/support/swatch-red.png -CSS-COLLIDING-SUPPORT-NAME: css/CSS2/selectors/support/swatch-red.png -CSS-COLLIDING-SUPPORT-NAME: css/CSS2/ui/support/swatch-red.png -CSS-COLLIDING-SUPPORT-NAME: css/CSS2/zindex/support/swatch-red.png -CSS-COLLIDING-SUPPORT-NAME: css/CSS2/csswg-issues/submitted/css2.1/support/swatch-red.png -CSS-COLLIDING-SUPPORT-NAME: css/CSS2/backgrounds/support/swatch-red.png -CSS-COLLIDING-SUPPORT-NAME: css/CSS2/i18n/syndata/support/swatch-red.png -CSS-COLLIDING-SUPPORT-NAME: css/css-text/support/swatch-red.png -CSS-COLLIDING-SUPPORT-NAME: css/css-backgrounds/support/swatch-red.png -CSS-COLLIDING-SUPPORT-NAME: css/CSS2/support/swatch-red.png -CSS-COLLIDING-SUPPORT-NAME: css/css-transforms/support/swatch-red.png -CSS-COLLIDING-SUPPORT-NAME: css/CSS2/syntax/support/swatch-red.png -CSS-COLLIDING-SUPPORT-NAME: css/css-images/support/swatch-red.png -CSS-COLLIDING-SUPPORT-NAME: css/css-transitions/support/swatch-red.png -CSS-COLLIDING-SUPPORT-NAME: css/CSS2/cascade/support/swatch-red.png -CSS-COLLIDING-SUPPORT-NAME: css/CSS2/floats-clear/support/swatch-red.png -CSS-COLLIDING-SUPPORT-NAME: css/CSS2/css1/support/swatch-red.png -CSS-COLLIDING-SUPPORT-NAME: css/css-shapes/support/swatch-red.png -CSS-COLLIDING-SUPPORT-NAME: css/CSS2/colors/support/swatch-red.png -CSS-COLLIDING-SUPPORT-NAME: css/CSS2/positioning/support/swatch-red.png -CSS-COLLIDING-SUPPORT-NAME: css/css-regions/support/swatch-red.png -CSS-COLLIDING-SUPPORT-NAME: css/CSS2/borders/support/swatch-red.png -CSS-COLLIDING-SUPPORT-NAME: css/cssom/support/swatch-red.png -CSS-COLLIDING-SUPPORT-NAME: css/css-page/support/swatch-red.png -CSS-COLLIDING-SUPPORT-NAME: css/CSS2/generate/support/swatch-red.png -CSS-COLLIDING-SUPPORT-NAME: css/CSS2/normal-flow/support/swatch-red.png -CSS-COLLIDING-SUPPORT-NAME: css/css-flexbox/support/swatch-green.png -CSS-COLLIDING-SUPPORT-NAME: css/CSS2/generated-content/support/swatch-green.png -CSS-COLLIDING-SUPPORT-NAME: css/CSS2/backgrounds/support/swatch-green.png -CSS-COLLIDING-SUPPORT-NAME: css/CSS2/text/support/swatch-green.png -CSS-COLLIDING-SUPPORT-NAME: css/CSS2/support/swatch-green.png -CSS-COLLIDING-SUPPORT-NAME: css/css-values/support/swatch-green.png -CSS-COLLIDING-SUPPORT-NAME: css/CSS2/csswg-issues/submitted/css2.1/support/swatch-green.png -CSS-COLLIDING-SUPPORT-NAME: css/CSS2/borders/support/swatch-green.png -CSS-COLLIDING-SUPPORT-NAME: css/filter-effects/support/swatch-green.png -CSS-COLLIDING-SUPPORT-NAME: css/support/support/swatch-green.png -CSS-COLLIDING-SUPPORT-NAME: css/cssom/support/swatch-green.png -CSS-COLLIDING-SUPPORT-NAME: css/css-writing-modes/support/swatch-green.png -CSS-COLLIDING-SUPPORT-NAME: css/CSS2/positioning/support/swatch-green.png -CSS-COLLIDING-SUPPORT-NAME: css/css-fonts/support/swatch-green.png -CSS-COLLIDING-SUPPORT-NAME: css/css-images/support/swatch-green.png -CSS-COLLIDING-SUPPORT-NAME: css/CSS2/box-display/support/swatch-green.png -CSS-COLLIDING-SUPPORT-NAME: css/CSS2/colors/support/swatch-green.png -CSS-COLLIDING-SUPPORT-NAME: css/CSS2/generate/support/swatch-green.png -CSS-COLLIDING-SUPPORT-NAME: css/css-transforms/support/swatch-green.png -CSS-COLLIDING-SUPPORT-NAME: css/CSS2/normal-flow/support/swatch-green.png -CSS-COLLIDING-SUPPORT-NAME: css/css-text/support/swatch-green.png -CSS-COLLIDING-SUPPORT-NAME: css/css-page/support/swatch-green.png -CSS-COLLIDING-SUPPORT-NAME: css/CSS2/bidi-text/support/swatch-green.png -CSS-COLLIDING-SUPPORT-NAME: css/css-style-attr/support/swatch-green.png -CSS-COLLIDING-SUPPORT-NAME: css/CSS2/zindex/support/swatch-green.png -CSS-COLLIDING-SUPPORT-NAME: css/css-transitions/support/swatch-green.png -CSS-COLLIDING-SUPPORT-NAME: css/CSS2/fonts/support/swatch-green.png -CSS-COLLIDING-SUPPORT-NAME: css/CSS2/i18n/syndata/support/swatch-green.png -CSS-COLLIDING-SUPPORT-NAME: css/CSS2/selectors/support/swatch-green.png -CSS-COLLIDING-SUPPORT-NAME: css/CSS2/syntax/support/swatch-green.png -CSS-COLLIDING-SUPPORT-NAME: css/CSS2/css1/support/swatch-green.png -CSS-COLLIDING-SUPPORT-NAME: css/css-shapes/support/swatch-green.png -CSS-COLLIDING-SUPPORT-NAME: css/CSS2/lists/support/swatch-green.png -CSS-COLLIDING-SUPPORT-NAME: css/CSS2/ui/support/swatch-green.png -CSS-COLLIDING-SUPPORT-NAME: css/CSS2/margin-padding-clear/support/swatch-green.png -CSS-COLLIDING-SUPPORT-NAME: css/css-backgrounds/support/swatch-green.png -CSS-COLLIDING-SUPPORT-NAME: css/CSS2/tables/support/swatch-green.png -CSS-COLLIDING-SUPPORT-NAME: css/CSS2/cascade/support/swatch-green.png -CSS-COLLIDING-SUPPORT-NAME: css/css-multicol/support/swatch-green.png -CSS-COLLIDING-SUPPORT-NAME: css/CSS2/values/support/swatch-green.png -CSS-COLLIDING-SUPPORT-NAME: css/css-regions/support/swatch-green.png -CSS-COLLIDING-SUPPORT-NAME: css/CSS2/floats-clear/support/swatch-green.png -CSS-COLLIDING-SUPPORT-NAME: css/cssom-view/support/swatch-green.png -CSS-COLLIDING-SUPPORT-NAME: css/CSS2/pagination/support/swatch-green.png - # Duplicate filename not picked up by the build system # https:css///github.com/w3c/csswg-test/issues/1236 CSS-COLLIDING-REF-NAME: css/css-masking/clip-path-svg-content/reference/clip-path-square-001-ref.svg @@ -794,7 +647,6 @@ CSS-COLLIDING-SUPPORT-NAME: css/CSS2/support/50x50-green.png CSS-COLLIDING-SUPPORT-NAME: css/CSS2/ui/support/animated.gif CSS-COLLIDING-SUPPORT-NAME: css/CSS2/backgrounds/support/animated.gif CSS-COLLIDING-SUPPORT-NAME: css/css-shapes/shape-outside/shape-image/support/animated.gif -CSS-COLLIDING-SUPPORT-NAME: css/CSS2/css1/support/pattern-gg-gr.png CSS-COLLIDING-SUPPORT-NAME: css/css-display/support/util.js CSS-COLLIDING-SUPPORT-NAME: css/CSS2/normal-flow/support/replaced-min-max-1.png CSS-COLLIDING-SUPPORT-NAME: css/vendor-imports/mozilla/mozilla-central-reftests/ui3/support/replaced-min-max-1.png @@ -885,7 +737,6 @@ MISSING-LINK: css/css-scroll-anchoring/wrapped-text.html SUPPORT-WRONG-DIR: css/css-timing/testcommon.js MISSING-LINK: css/css-typed-om/CSSMatrixComponent-DOMMatrix-mutable.html MISSING-LINK: css/css-typed-om/declared-styleMap-accepts-inherit.html -MISSING-LINK: css/css-typed-om/styleMap-update-function.html SUPPORT-WRONG-DIR: css/cssom/stylesheet-same-origin.css MISSING-LINK: css/cssom-view/DOMRectList.html MISSING-LINK: css/cssom-view/elementFromPoint-002.html @@ -913,20 +764,14 @@ MISSING-LINK: css/cssom-view/scrollingElement.html MISSING-LINK: css/cssom-view/scrollIntoView-shadow.html MISSING-LINK: css/cssom-view/scrollIntoView-smooth.html MISSING-LINK: css/cssom-view/scrollTop-display-change.html -CSS-COLLIDING-TEST-NAME: css/cssom-view/interfaces.html -CSS-COLLIDING-TEST-NAME: css/cssom/interfaces.html # TODO https://github.com/w3c/web-platform-tests/issues/5770 MISSING-LINK: css/geometry/*.worker.js MISSING-LINK: css/filter-effects/*.any.js -WEBIDL2.JS: .gitmodules - -# Manual test that uses console.logs for feedback -CONSOLE: payment-request/payment-request-response-id.html - # Tests that use WebKit/Blink testing APIs LAYOUTTESTS APIS: css/css-regions/interactivity/* +LAYOUTTESTS APIS: resources/chromium/generic_sensor_mocks.js # Existing use of WEB-PLATFORM.TEST WEB-PLATFORM.TEST: clear-site-data/support/test_utils.sub.js @@ -939,12 +784,7 @@ WEB-PLATFORM.TEST: fetch/api/request/request-structure.html WEB-PLATFORM.TEST: html/browsers/origin/relaxing-the-same-origin-restriction/document_domain_setter.html WEB-PLATFORM.TEST: html/semantics/embedded-content/the-iframe-element/cross_origin_parentage.html WEB-PLATFORM.TEST: html/semantics/forms/the-label-element/label-attributes.html -WEB-PLATFORM.TEST: longtask-timing/longtask-in-childiframe-crossorigin.html -WEB-PLATFORM.TEST: longtask-timing/longtask-in-sibling-iframe-crossorigin.html WEB-PLATFORM.TEST: navigation-timing/nav2_test_attributes_values.html WEB-PLATFORM.TEST: navigation-timing/nav2_test_instance_accessors.html -WEB-PLATFORM.TEST: service-workers/service-worker/update-bytecheck.https.html -WEB-PLATFORM.TEST: webdriver/tests/cookies/add_cookie.py -WEB-PLATFORM.TEST: webdriver/tests/cookies/get_named_cookie.py WEB-PLATFORM.TEST: webrtc/RTCPeerConnection-getIdentityAssertion.html WEB-PLATFORM.TEST: webrtc/identity-helper.js diff --git a/tests/wpt/web-platform-tests/magnetometer/Magnetometer-disabled-by-feature-policy.https.html b/tests/wpt/web-platform-tests/magnetometer/Magnetometer-disabled-by-feature-policy.https.html index 56a1cc4f0f94..6e496c1390f3 100644 --- a/tests/wpt/web-platform-tests/magnetometer/Magnetometer-disabled-by-feature-policy.https.html +++ b/tests/wpt/web-platform-tests/magnetometer/Magnetometer-disabled-by-feature-policy.https.html @@ -8,7 +8,7 @@ diff --git a/tests/wpt/web-platform-tests/magnetometer/Magnetometer-enabled-by-feature-policy-attribute-redirect-on-load.https.html b/tests/wpt/web-platform-tests/magnetometer/Magnetometer-enabled-by-feature-policy-attribute-redirect-on-load.https.html index b5f6798e2485..4b6531781895 100644 --- a/tests/wpt/web-platform-tests/magnetometer/Magnetometer-enabled-by-feature-policy-attribute-redirect-on-load.https.html +++ b/tests/wpt/web-platform-tests/magnetometer/Magnetometer-enabled-by-feature-policy-attribute-redirect-on-load.https.html @@ -8,7 +8,7 @@ diff --git a/tests/wpt/web-platform-tests/magnetometer/Magnetometer-enabled-by-feature-policy-attribute.https.html b/tests/wpt/web-platform-tests/magnetometer/Magnetometer-enabled-by-feature-policy-attribute.https.html index 6cad267b6f54..4c120f6d7430 100644 --- a/tests/wpt/web-platform-tests/magnetometer/Magnetometer-enabled-by-feature-policy-attribute.https.html +++ b/tests/wpt/web-platform-tests/magnetometer/Magnetometer-enabled-by-feature-policy-attribute.https.html @@ -8,7 +8,7 @@ diff --git a/tests/wpt/web-platform-tests/magnetometer/Magnetometer-enabled-by-feature-policy.https.html b/tests/wpt/web-platform-tests/magnetometer/Magnetometer-enabled-by-feature-policy.https.html index 24e2554bca29..ae5983411df7 100644 --- a/tests/wpt/web-platform-tests/magnetometer/Magnetometer-enabled-by-feature-policy.https.html +++ b/tests/wpt/web-platform-tests/magnetometer/Magnetometer-enabled-by-feature-policy.https.html @@ -8,7 +8,7 @@ diff --git a/tests/wpt/web-platform-tests/magnetometer/Magnetometer-enabled-on-self-origin-by-feature-policy.https.html b/tests/wpt/web-platform-tests/magnetometer/Magnetometer-enabled-on-self-origin-by-feature-policy.https.html index 59dfef5bf206..e6210407abd9 100644 --- a/tests/wpt/web-platform-tests/magnetometer/Magnetometer-enabled-on-self-origin-by-feature-policy.https.html +++ b/tests/wpt/web-platform-tests/magnetometer/Magnetometer-enabled-on-self-origin-by-feature-policy.https.html @@ -8,7 +8,7 @@ diff --git a/tests/wpt/web-platform-tests/magnetometer/Magnetometer.https.html b/tests/wpt/web-platform-tests/magnetometer/Magnetometer.https.html index a3cefc26169f..661ea68a82d6 100644 --- a/tests/wpt/web-platform-tests/magnetometer/Magnetometer.https.html +++ b/tests/wpt/web-platform-tests/magnetometer/Magnetometer.https.html @@ -9,7 +9,7 @@
diff --git a/tests/wpt/web-platform-tests/magnetometer/Magnetometer_onerror-manual.https.html b/tests/wpt/web-platform-tests/magnetometer/Magnetometer_onerror-manual.https.html index 04b987797fa6..dbdcf1d5f7c5 100644 --- a/tests/wpt/web-platform-tests/magnetometer/Magnetometer_onerror-manual.https.html +++ b/tests/wpt/web-platform-tests/magnetometer/Magnetometer_onerror-manual.https.html @@ -15,7 +15,7 @@

Precondition

diff --git a/tests/wpt/web-platform-tests/media-capabilities/OWNERS b/tests/wpt/web-platform-tests/media-capabilities/OWNERS new file mode 100644 index 000000000000..b05a482a14b4 --- /dev/null +++ b/tests/wpt/web-platform-tests/media-capabilities/OWNERS @@ -0,0 +1 @@ +@mounirlamouri diff --git a/tests/wpt/web-platform-tests/media-source/generate-config-change-tests.py b/tests/wpt/web-platform-tests/media-source/generate-config-change-tests.py index 4edb925b448a..6ab2c8bf46b8 100755 --- a/tests/wpt/web-platform-tests/media-source/generate-config-change-tests.py +++ b/tests/wpt/web-platform-tests/media-source/generate-config-change-tests.py @@ -83,7 +83,6 @@ -
diff --git a/tests/wpt/web-platform-tests/mediacapture-fromelement/OWNERS b/tests/wpt/web-platform-tests/mediacapture-fromelement/OWNERS new file mode 100644 index 000000000000..496af7c74cb5 --- /dev/null +++ b/tests/wpt/web-platform-tests/mediacapture-fromelement/OWNERS @@ -0,0 +1,3 @@ +@yellowdoge +@martinthomson +@uysalere diff --git a/tests/wpt/web-platform-tests/mediacapture-image/OWNERS b/tests/wpt/web-platform-tests/mediacapture-image/OWNERS new file mode 100644 index 000000000000..32380f13e326 --- /dev/null +++ b/tests/wpt/web-platform-tests/mediacapture-image/OWNERS @@ -0,0 +1,2 @@ +@yellowdoge +@reillyeon diff --git a/tests/wpt/web-platform-tests/mediacapture-streams/MediaDevices-getUserMedia.https.html b/tests/wpt/web-platform-tests/mediacapture-streams/MediaDevices-getUserMedia.https.html index 0573ab0a594b..0a2f2ff75bd8 100644 --- a/tests/wpt/web-platform-tests/mediacapture-streams/MediaDevices-getUserMedia.https.html +++ b/tests/wpt/web-platform-tests/mediacapture-streams/MediaDevices-getUserMedia.https.html @@ -36,6 +36,34 @@

Description

// list.deviceId // list.groupId }, "mediaDevices.getUserMedia() is present on navigator"); + +promise_test(t => { + return navigator.mediaDevices.enumerateDevices() + .then(t.step_func(async devices => { + for (var i in devices) { + await navigator.mediaDevices.getUserMedia( + {video: {groupId: {exact: devices[i].groupId}}}) + .then( + t.step_func(stream => { + var found_device = devices.find(element => { + return element.deviceId == + stream.getTracks()[0].getSettings().deviceId; + }); + assert_true(undefined !== found_device); + assert_equals(found_device.kind, "videoinput"); + assert_equals(found_device.groupId, devices[i].groupId); + }), + t.step_func(error => { + assert_equals(error.name, "OverconstrainedError"); + assert_equals(error.constraint, "groupId"); + var found_device = devices.find(element => { + return element.kind == "videoinput" && + element.groupId == devices[i].groupId}); + assert_true(undefined === found_device); + })); + } + })); +}, 'groupId is correctly supported by getUserMedia() for video devices'); diff --git a/tests/wpt/web-platform-tests/mediacapture-streams/MediaStreamTrack-applyConstraints.https.html b/tests/wpt/web-platform-tests/mediacapture-streams/MediaStreamTrack-applyConstraints.https.html new file mode 100644 index 000000000000..0056695083ec --- /dev/null +++ b/tests/wpt/web-platform-tests/mediacapture-streams/MediaStreamTrack-applyConstraints.https.html @@ -0,0 +1,57 @@ + +MediaStreamTrack applyConstraints +

When prompted, accept to share your video stream.

+ + + diff --git a/tests/wpt/web-platform-tests/mediacapture-streams/MediaStreamTrack-getCapabilities.https.html b/tests/wpt/web-platform-tests/mediacapture-streams/MediaStreamTrack-getCapabilities.https.html index 257578f67ca6..d9283705f329 100644 --- a/tests/wpt/web-platform-tests/mediacapture-streams/MediaStreamTrack-getCapabilities.https.html +++ b/tests/wpt/web-platform-tests/mediacapture-streams/MediaStreamTrack-getCapabilities.https.html @@ -15,6 +15,7 @@ assert_true(undefined !== audioCapabilities.autoGainControl, "MediaTrackCapabilities's autoGainControl should exist for an audio track."); assert_true(undefined !== audioCapabilities.noiseSuppression, "MediaTrackCapabilities's noiseSuppression should exist for an audio track."); assert_true(undefined !== videoCapabilities.deviceId, "MediaTrackCapabilities's deviceId should exist for a video track."); + assert_true(undefined !== videoCapabilities.groupId, "MediaTrackCapabilities's groupId should exist for a video track."); }); }); diff --git a/tests/wpt/web-platform-tests/mediacapture-streams/MediaStreamTrack-getSettings.https.html b/tests/wpt/web-platform-tests/mediacapture-streams/MediaStreamTrack-getSettings.https.html index 42674bab2ad9..4c2feef37ec3 100644 --- a/tests/wpt/web-platform-tests/mediacapture-streams/MediaStreamTrack-getSettings.https.html +++ b/tests/wpt/web-platform-tests/mediacapture-streams/MediaStreamTrack-getSettings.https.html @@ -57,4 +57,22 @@ }); }); }, 'A device can be opened twice with different resolutions'); + + promise_test(t => { + return navigator.mediaDevices.enumerateDevices().then(async devices => { + for (var device of devices) { + if (device.kind == "audiooutput") + continue; + var device_id_constraint = {deviceId: {exact: device.deviceId}}; + var constraints = device.kind == "audioinput" + ? {audio: device_id_constraint} + : {video: device_id_constraint}; + + var stream = await navigator.mediaDevices.getUserMedia(constraints); + assert_equals(stream.getTracks()[0].getSettings().groupId, + device.groupId); + assert_true(device.groupId.length > 0); + } + }); + }, 'groupId is correctly reported by getSettings() for all devices'); diff --git a/tests/wpt/web-platform-tests/mediasession/OWNERS b/tests/wpt/web-platform-tests/mediasession/OWNERS new file mode 100644 index 000000000000..b05a482a14b4 --- /dev/null +++ b/tests/wpt/web-platform-tests/mediasession/OWNERS @@ -0,0 +1 @@ +@mounirlamouri diff --git a/tests/wpt/web-platform-tests/netinfo/OWNERS b/tests/wpt/web-platform-tests/netinfo/OWNERS new file mode 100644 index 000000000000..095bbbdb31b4 --- /dev/null +++ b/tests/wpt/web-platform-tests/netinfo/OWNERS @@ -0,0 +1,4 @@ +@jkarlin +@igrigorik +@marcoscaceres +@tarunban diff --git a/tests/wpt/web-platform-tests/offscreen-canvas/OWNERS b/tests/wpt/web-platform-tests/offscreen-canvas/OWNERS new file mode 100644 index 000000000000..3bb6edf248aa --- /dev/null +++ b/tests/wpt/web-platform-tests/offscreen-canvas/OWNERS @@ -0,0 +1,5 @@ +@AmeliaBR +@annevk +@kenrussell +@jdashg +@fserb diff --git a/tests/wpt/web-platform-tests/old-tests/OWNERS b/tests/wpt/web-platform-tests/old-tests/OWNERS new file mode 100644 index 000000000000..04a7557ed2fe --- /dev/null +++ b/tests/wpt/web-platform-tests/old-tests/OWNERS @@ -0,0 +1,2 @@ +@foolip +@Ms2ger diff --git a/tests/wpt/web-platform-tests/old-tests/submission/Microsoft/history/history_000.htm b/tests/wpt/web-platform-tests/old-tests/submission/Microsoft/history/history_000.htm index 771ed154255f..855612b82a92 100644 --- a/tests/wpt/web-platform-tests/old-tests/submission/Microsoft/history/history_000.htm +++ b/tests/wpt/web-platform-tests/old-tests/submission/Microsoft/history/history_000.htm @@ -322,8 +322,25 @@ } add_result_callback(testFinished); - //start the first test manually - queue(testCollection[testIndex]); + + function startTestsWhenIframesLoaded() { + if (testframe1.contentWindow.document.readyState != 'complete' || + testframe2.contentWindow.document.readyState != 'complete') { + return; + } + testframe1.removeEventListener('load', startTestsWhenIframesLoaded, false); + testframe2.removeEventListener('load', startTestsWhenIframesLoaded, false); + + //start the first test + queue(testCollection[testIndex]); + } + + // add listeners to trigger the tests once the iframes are loaded, + // but also try to start it right away in case the load events have + // already fired and we missed them. + testframe1.addEventListener('load', startTestsWhenIframesLoaded, false); + testframe2.addEventListener('load', startTestsWhenIframesLoaded, false); + startTestsWhenIframesLoaded(); diff --git a/tests/wpt/web-platform-tests/orientation-event/OWNERS b/tests/wpt/web-platform-tests/orientation-event/OWNERS new file mode 100644 index 000000000000..77a3bbc2b7bb --- /dev/null +++ b/tests/wpt/web-platform-tests/orientation-event/OWNERS @@ -0,0 +1,2 @@ +@reillyeon +@timvolodine diff --git a/tests/wpt/web-platform-tests/orientation-sensor/AbsoluteOrientationSensor-disabled-by-feature-policy.https.html b/tests/wpt/web-platform-tests/orientation-sensor/AbsoluteOrientationSensor-disabled-by-feature-policy.https.html index ccefe2ea23ee..7f4257165f4a 100644 --- a/tests/wpt/web-platform-tests/orientation-sensor/AbsoluteOrientationSensor-disabled-by-feature-policy.https.html +++ b/tests/wpt/web-platform-tests/orientation-sensor/AbsoluteOrientationSensor-disabled-by-feature-policy.https.html @@ -8,6 +8,6 @@ diff --git a/tests/wpt/web-platform-tests/orientation-sensor/AbsoluteOrientationSensor-enabled-by-feature-policy-attribute-redirect-on-load.https.html b/tests/wpt/web-platform-tests/orientation-sensor/AbsoluteOrientationSensor-enabled-by-feature-policy-attribute-redirect-on-load.https.html index 6aed47d4ddf4..ab34f5b45429 100644 --- a/tests/wpt/web-platform-tests/orientation-sensor/AbsoluteOrientationSensor-enabled-by-feature-policy-attribute-redirect-on-load.https.html +++ b/tests/wpt/web-platform-tests/orientation-sensor/AbsoluteOrientationSensor-enabled-by-feature-policy-attribute-redirect-on-load.https.html @@ -8,6 +8,6 @@ diff --git a/tests/wpt/web-platform-tests/orientation-sensor/AbsoluteOrientationSensor-enabled-by-feature-policy-attribute.https.html b/tests/wpt/web-platform-tests/orientation-sensor/AbsoluteOrientationSensor-enabled-by-feature-policy-attribute.https.html index 51bbba1cae45..cb23e8b6aeca 100644 --- a/tests/wpt/web-platform-tests/orientation-sensor/AbsoluteOrientationSensor-enabled-by-feature-policy-attribute.https.html +++ b/tests/wpt/web-platform-tests/orientation-sensor/AbsoluteOrientationSensor-enabled-by-feature-policy-attribute.https.html @@ -8,6 +8,6 @@ diff --git a/tests/wpt/web-platform-tests/orientation-sensor/AbsoluteOrientationSensor-enabled-by-feature-policy.https.html b/tests/wpt/web-platform-tests/orientation-sensor/AbsoluteOrientationSensor-enabled-by-feature-policy.https.html index c0b4cc8ed30d..cc09eeaea42b 100644 --- a/tests/wpt/web-platform-tests/orientation-sensor/AbsoluteOrientationSensor-enabled-by-feature-policy.https.html +++ b/tests/wpt/web-platform-tests/orientation-sensor/AbsoluteOrientationSensor-enabled-by-feature-policy.https.html @@ -8,6 +8,6 @@ diff --git a/tests/wpt/web-platform-tests/orientation-sensor/AbsoluteOrientationSensor-enabled-on-self-origin-by-feature-policy.https.html b/tests/wpt/web-platform-tests/orientation-sensor/AbsoluteOrientationSensor-enabled-on-self-origin-by-feature-policy.https.html index 9ce51ab64489..62e21beb9071 100644 --- a/tests/wpt/web-platform-tests/orientation-sensor/AbsoluteOrientationSensor-enabled-on-self-origin-by-feature-policy.https.html +++ b/tests/wpt/web-platform-tests/orientation-sensor/AbsoluteOrientationSensor-enabled-on-self-origin-by-feature-policy.https.html @@ -8,6 +8,6 @@ diff --git a/tests/wpt/web-platform-tests/orientation-sensor/AbsoluteOrientationSensor.https.html b/tests/wpt/web-platform-tests/orientation-sensor/AbsoluteOrientationSensor.https.html new file mode 100644 index 000000000000..c476047f62a3 --- /dev/null +++ b/tests/wpt/web-platform-tests/orientation-sensor/AbsoluteOrientationSensor.https.html @@ -0,0 +1,16 @@ + + +OrientationSensor Test + + + + + + + +
+ + diff --git a/tests/wpt/web-platform-tests/orientation-sensor/OrientationSensor_onerror-manual.https.html b/tests/wpt/web-platform-tests/orientation-sensor/OrientationSensor_onerror-manual.https.html index d70ea3048eae..415a63c1edf6 100644 --- a/tests/wpt/web-platform-tests/orientation-sensor/OrientationSensor_onerror-manual.https.html +++ b/tests/wpt/web-platform-tests/orientation-sensor/OrientationSensor_onerror-manual.https.html @@ -16,7 +16,7 @@

Precondition

diff --git a/tests/wpt/web-platform-tests/orientation-sensor/RelativeOrientationSensor-disabled-by-feature-policy.https.html b/tests/wpt/web-platform-tests/orientation-sensor/RelativeOrientationSensor-disabled-by-feature-policy.https.html index 9296af8ea6c2..d97d40b6ca3c 100644 --- a/tests/wpt/web-platform-tests/orientation-sensor/RelativeOrientationSensor-disabled-by-feature-policy.https.html +++ b/tests/wpt/web-platform-tests/orientation-sensor/RelativeOrientationSensor-disabled-by-feature-policy.https.html @@ -8,6 +8,6 @@ diff --git a/tests/wpt/web-platform-tests/orientation-sensor/RelativeOrientationSensor-enabled-by-feature-policy-attribute-redirect-on-load.https.html b/tests/wpt/web-platform-tests/orientation-sensor/RelativeOrientationSensor-enabled-by-feature-policy-attribute-redirect-on-load.https.html index 01b45b099359..3a6173a2c115 100644 --- a/tests/wpt/web-platform-tests/orientation-sensor/RelativeOrientationSensor-enabled-by-feature-policy-attribute-redirect-on-load.https.html +++ b/tests/wpt/web-platform-tests/orientation-sensor/RelativeOrientationSensor-enabled-by-feature-policy-attribute-redirect-on-load.https.html @@ -8,6 +8,6 @@ diff --git a/tests/wpt/web-platform-tests/orientation-sensor/RelativeOrientationSensor-enabled-by-feature-policy-attribute.https.html b/tests/wpt/web-platform-tests/orientation-sensor/RelativeOrientationSensor-enabled-by-feature-policy-attribute.https.html index 1bf41196663e..e8d30020c216 100644 --- a/tests/wpt/web-platform-tests/orientation-sensor/RelativeOrientationSensor-enabled-by-feature-policy-attribute.https.html +++ b/tests/wpt/web-platform-tests/orientation-sensor/RelativeOrientationSensor-enabled-by-feature-policy-attribute.https.html @@ -8,6 +8,6 @@ diff --git a/tests/wpt/web-platform-tests/orientation-sensor/RelativeOrientationSensor-enabled-by-feature-policy.https.html b/tests/wpt/web-platform-tests/orientation-sensor/RelativeOrientationSensor-enabled-by-feature-policy.https.html index 7ea2fb50f3b5..d9f38f2dccae 100644 --- a/tests/wpt/web-platform-tests/orientation-sensor/RelativeOrientationSensor-enabled-by-feature-policy.https.html +++ b/tests/wpt/web-platform-tests/orientation-sensor/RelativeOrientationSensor-enabled-by-feature-policy.https.html @@ -8,6 +8,6 @@ diff --git a/tests/wpt/web-platform-tests/orientation-sensor/RelativeOrientationSensor-enabled-on-self-origin-by-feature-policy.https.html b/tests/wpt/web-platform-tests/orientation-sensor/RelativeOrientationSensor-enabled-on-self-origin-by-feature-policy.https.html index 6d677bf0d42f..d63bf4e19b98 100644 --- a/tests/wpt/web-platform-tests/orientation-sensor/RelativeOrientationSensor-enabled-on-self-origin-by-feature-policy.https.html +++ b/tests/wpt/web-platform-tests/orientation-sensor/RelativeOrientationSensor-enabled-on-self-origin-by-feature-policy.https.html @@ -8,6 +8,6 @@ diff --git a/tests/wpt/web-platform-tests/orientation-sensor/RelativeOrientationSensor.https.html b/tests/wpt/web-platform-tests/orientation-sensor/RelativeOrientationSensor.https.html new file mode 100644 index 000000000000..9521a15f6cc7 --- /dev/null +++ b/tests/wpt/web-platform-tests/orientation-sensor/RelativeOrientationSensor.https.html @@ -0,0 +1,16 @@ + + +OrientationSensor Test + + + + + + + +
+ + diff --git a/tests/wpt/web-platform-tests/orientation-sensor/OrientationSensor.https.html b/tests/wpt/web-platform-tests/orientation-sensor/orientation-sensor-tests.js similarity index 63% rename from tests/wpt/web-platform-tests/orientation-sensor/OrientationSensor.https.html rename to tests/wpt/web-platform-tests/orientation-sensor/orientation-sensor-tests.js index 5e728a688db6..74e360a041a9 100644 --- a/tests/wpt/web-platform-tests/orientation-sensor/OrientationSensor.https.html +++ b/tests/wpt/web-platform-tests/orientation-sensor/orientation-sensor-tests.js @@ -1,16 +1,3 @@ - - -OrientationSensor Test - - - - - - -
- - diff --git a/tests/wpt/web-platform-tests/page-visibility/test_minimize-manual.html b/tests/wpt/web-platform-tests/page-visibility/test_minimize-manual.html index 28e8486769c2..27fd0d7cefaf 100644 --- a/tests/wpt/web-platform-tests/page-visibility/test_minimize-manual.html +++ b/tests/wpt/web-platform-tests/page-visibility/test_minimize-manual.html @@ -5,6 +5,7 @@ Page Visibility API Operation While Minimizing Browser Window + diff --git a/tests/wpt/web-platform-tests/page-visibility/test_tab_state_change-manual.html b/tests/wpt/web-platform-tests/page-visibility/test_tab_state_change-manual.html index c701e507862a..75d1da6e9375 100644 --- a/tests/wpt/web-platform-tests/page-visibility/test_tab_state_change-manual.html +++ b/tests/wpt/web-platform-tests/page-visibility/test_tab_state_change-manual.html @@ -5,6 +5,7 @@ Page Visibility API Operation While Changing Tabs + diff --git a/tests/wpt/web-platform-tests/payment-handler/app-can-make-payment.js b/tests/wpt/web-platform-tests/payment-handler/app-can-make-payment.js index beec3283ec91..0bb949047359 100644 --- a/tests/wpt/web-platform-tests/payment-handler/app-can-make-payment.js +++ b/tests/wpt/web-platform-tests/payment-handler/app-can-make-payment.js @@ -76,9 +76,9 @@ self.addEventListener('canmakepayment', event => { } const methodAsURL = new URL(methodName); - if (event.topLevelOrigin !== methodAsURL.origin) { - const msg = `Unexpected event.topLevelOrigin: "${ - event.topLevelOrigin + if (event.topOrigin !== methodAsURL.origin) { + const msg = `Unexpected event.topOrigin: "${ + event.topOrigin }". Expected "${methodAsURL.origin}".`; event.respondWith(Promise.reject(new Error(msg))); return; diff --git a/tests/wpt/web-platform-tests/payment-handler/can-make-payment-event-constructor.https.worker.js b/tests/wpt/web-platform-tests/payment-handler/can-make-payment-event-constructor.https.worker.js index 06af7de96ec5..8ae05d7853a7 100644 --- a/tests/wpt/web-platform-tests/payment-handler/can-make-payment-event-constructor.https.worker.js +++ b/tests/wpt/web-platform-tests/payment-handler/can-make-payment-event-constructor.https.worker.js @@ -30,13 +30,13 @@ test(() => { test(() => { const ev = new CanMakePaymentEvent('test', { - topLevelOrigin: 'https://foo.com', + topOrigin: 'https://foo.com', paymentRequestOrigin: 'https://bar.com', methodData: [], modifiers: [], }); assert_false(ev.isTrusted, 'constructed in script, so not be trusted'); - assert_equals(ev.topLevelOrigin, 'https://foo.com'); + assert_equals(ev.topOrigin, 'https://foo.com'); assert_equals(ev.paymentRequestOrigin, 'https://bar.com'); }, 'CanMakePaymentEvent can be constructed with a CanMakePaymentEventInit, even if not trusted'); diff --git a/tests/wpt/web-platform-tests/payment-request/PaymentAddress/attributes-and-toJSON-method-manual.https.html b/tests/wpt/web-platform-tests/payment-request/PaymentAddress/attributes-and-toJSON-method-manual.https.html index 3925cdd81e6a..f767044d060f 100644 --- a/tests/wpt/web-platform-tests/payment-request/PaymentAddress/attributes-and-toJSON-method-manual.https.html +++ b/tests/wpt/web-platform-tests/payment-request/PaymentAddress/attributes-and-toJSON-method-manual.https.html @@ -68,7 +68,7 @@

PaymentAddress interface