From 43a97878ce14b72f0981164f87f2e35e14151312 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 11:22:09 +0200 Subject: Adding upstream version 110.0.1. Signed-off-by: Daniel Baumann --- testing/web-platform/tests/priority-hints/META.yml | 5 +++++ .../fetch-api-request.tentative.any.js | 9 ++++++++ .../iframe-attr-fetchpriority.tentative.html | 26 ++++++++++++++++++++++ .../img-attr-fetchpriority.tentative.html | 26 ++++++++++++++++++++++ .../link-attr-fetchpriority.tentative.html | 26 ++++++++++++++++++++++ .../tests/priority-hints/resources/script.js | 0 .../tests/priority-hints/resources/stylesheet.css | 3 +++ .../script-attr-fetchpriority.tentative.html | 26 ++++++++++++++++++++++ 8 files changed, 121 insertions(+) create mode 100644 testing/web-platform/tests/priority-hints/META.yml create mode 100644 testing/web-platform/tests/priority-hints/fetch-api-request.tentative.any.js create mode 100644 testing/web-platform/tests/priority-hints/iframe-attr-fetchpriority.tentative.html create mode 100644 testing/web-platform/tests/priority-hints/img-attr-fetchpriority.tentative.html create mode 100644 testing/web-platform/tests/priority-hints/link-attr-fetchpriority.tentative.html create mode 100644 testing/web-platform/tests/priority-hints/resources/script.js create mode 100644 testing/web-platform/tests/priority-hints/resources/stylesheet.css create mode 100644 testing/web-platform/tests/priority-hints/script-attr-fetchpriority.tentative.html (limited to 'testing/web-platform/tests/priority-hints') diff --git a/testing/web-platform/tests/priority-hints/META.yml b/testing/web-platform/tests/priority-hints/META.yml new file mode 100644 index 0000000000..487b4013a0 --- /dev/null +++ b/testing/web-platform/tests/priority-hints/META.yml @@ -0,0 +1,5 @@ +spec: https://wicg.github.io/priority-hints/ +suggested_reviewers: + - addyosmani + - domfarolino + - yoavweiss diff --git a/testing/web-platform/tests/priority-hints/fetch-api-request.tentative.any.js b/testing/web-platform/tests/priority-hints/fetch-api-request.tentative.any.js new file mode 100644 index 0000000000..1b576e52da --- /dev/null +++ b/testing/web-platform/tests/priority-hints/fetch-api-request.tentative.any.js @@ -0,0 +1,9 @@ +test(() => { + assert_throws_js(TypeError, () => { + new Request("", {priority: 'invalid'}); + }, "a new Request() must throw a TypeError if RequestInit's priority is an invalid value"); +}, "new Request() throws a TypeError if any of RequestInit's members' values are invalid"); + +promise_test(function(t) { + return promise_rejects_js(t, TypeError, fetch('resources/blank.html', { priority: 'invalid' })); +}, "fetch() with an invalid priority returns a rejected promise with a TypeError"); \ No newline at end of file diff --git a/testing/web-platform/tests/priority-hints/iframe-attr-fetchpriority.tentative.html b/testing/web-platform/tests/priority-hints/iframe-attr-fetchpriority.tentative.html new file mode 100644 index 0000000000..386577690b --- /dev/null +++ b/testing/web-platform/tests/priority-hints/iframe-attr-fetchpriority.tentative.html @@ -0,0 +1,26 @@ + +Priority Hints - iFrame element + + + + + + + + + + + diff --git a/testing/web-platform/tests/priority-hints/img-attr-fetchpriority.tentative.html b/testing/web-platform/tests/priority-hints/img-attr-fetchpriority.tentative.html new file mode 100644 index 0000000000..996aa4d156 --- /dev/null +++ b/testing/web-platform/tests/priority-hints/img-attr-fetchpriority.tentative.html @@ -0,0 +1,26 @@ + +Priority Hints - Image element + + + + + + + + + + + diff --git a/testing/web-platform/tests/priority-hints/link-attr-fetchpriority.tentative.html b/testing/web-platform/tests/priority-hints/link-attr-fetchpriority.tentative.html new file mode 100644 index 0000000000..32c318b760 --- /dev/null +++ b/testing/web-platform/tests/priority-hints/link-attr-fetchpriority.tentative.html @@ -0,0 +1,26 @@ + +Priority Hints - Link element + + + + + + + + + + + diff --git a/testing/web-platform/tests/priority-hints/resources/script.js b/testing/web-platform/tests/priority-hints/resources/script.js new file mode 100644 index 0000000000..e69de29bb2 diff --git a/testing/web-platform/tests/priority-hints/resources/stylesheet.css b/testing/web-platform/tests/priority-hints/resources/stylesheet.css new file mode 100644 index 0000000000..9d9d772fb4 --- /dev/null +++ b/testing/web-platform/tests/priority-hints/resources/stylesheet.css @@ -0,0 +1,3 @@ +body { + background-color: green; +} diff --git a/testing/web-platform/tests/priority-hints/script-attr-fetchpriority.tentative.html b/testing/web-platform/tests/priority-hints/script-attr-fetchpriority.tentative.html new file mode 100644 index 0000000000..8639d04d86 --- /dev/null +++ b/testing/web-platform/tests/priority-hints/script-attr-fetchpriority.tentative.html @@ -0,0 +1,26 @@ + +Priority Hints - Script element + + + + + + + + + + + -- cgit v1.2.3