diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 09:22:09 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 09:22:09 +0000 |
commit | 43a97878ce14b72f0981164f87f2e35e14151312 (patch) | |
tree | 620249daf56c0258faa40cbdcf9cfba06de2a846 /testing/web-platform/tests/appmanifest/shortcuts-member/resources | |
parent | Initial commit. (diff) | |
download | firefox-43a97878ce14b72f0981164f87f2e35e14151312.tar.xz firefox-43a97878ce14b72f0981164f87f2e35e14151312.zip |
Adding upstream version 110.0.1.upstream/110.0.1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/web-platform/tests/appmanifest/shortcuts-member/resources')
23 files changed, 258 insertions, 0 deletions
diff --git a/testing/web-platform/tests/appmanifest/shortcuts-member/resources/pass.png b/testing/web-platform/tests/appmanifest/shortcuts-member/resources/pass.png Binary files differnew file mode 100644 index 0000000000..be7433a3e2 --- /dev/null +++ b/testing/web-platform/tests/appmanifest/shortcuts-member/resources/pass.png diff --git a/testing/web-platform/tests/appmanifest/shortcuts-member/resources/pass.png.sub.headers b/testing/web-platform/tests/appmanifest/shortcuts-member/resources/pass.png.sub.headers new file mode 100644 index 0000000000..adf190aa8e --- /dev/null +++ b/testing/web-platform/tests/appmanifest/shortcuts-member/resources/pass.png.sub.headers @@ -0,0 +1 @@ +Access-Control-Allow-Origin: https://{{host}}:{{ports[https][0]}} diff --git a/testing/web-platform/tests/appmanifest/shortcuts-member/resources/shortcuts-member-cors-fail.sub.webmanifest b/testing/web-platform/tests/appmanifest/shortcuts-member/resources/shortcuts-member-cors-fail.sub.webmanifest new file mode 100644 index 0000000000..a4975b03df --- /dev/null +++ b/testing/web-platform/tests/appmanifest/shortcuts-member/resources/shortcuts-member-cors-fail.sub.webmanifest @@ -0,0 +1,22 @@ +{ + "name": "Shortcut test", + "icons": [ + { + "src": "https://{{host}}:{{ports[https][1]}}/appmanifest/icons-member/resources/fail.png", + "sizes": "256x256" + } + ], + "start_url": "../shortcuts-member-cors-fail-manual.sub.html", + "display": "fullscreen", + "scope": "../", + "shortcuts": [{ + "name": "pass", + "short_name": "", + "description": "", + "url": "../shortcut_pass.html", + "icons": [{ + "src": "https://{{host}}:{{ports[https][1]}}/appmanifest/icons-member/resources/fail.png", + "sizes": "256x256" + }] + }] +} diff --git a/testing/web-platform/tests/appmanifest/shortcuts-member/resources/shortcuts-member-cors-fail.webmanifest.headers b/testing/web-platform/tests/appmanifest/shortcuts-member/resources/shortcuts-member-cors-fail.webmanifest.headers new file mode 100644 index 0000000000..2bab061d43 --- /dev/null +++ b/testing/web-platform/tests/appmanifest/shortcuts-member/resources/shortcuts-member-cors-fail.webmanifest.headers @@ -0,0 +1 @@ +Content-Type: application/manifest+json; charset=utf-8 diff --git a/testing/web-platform/tests/appmanifest/shortcuts-member/resources/shortcuts-member-cors.sub.webmanifest b/testing/web-platform/tests/appmanifest/shortcuts-member/resources/shortcuts-member-cors.sub.webmanifest new file mode 100644 index 0000000000..94f0e0388c --- /dev/null +++ b/testing/web-platform/tests/appmanifest/shortcuts-member/resources/shortcuts-member-cors.sub.webmanifest @@ -0,0 +1,22 @@ +{ + "name": "Shortcut test", + "icons": [ + { + "src": "https://{{host}}:{{ports[https][0]}}/appmanifest/shortcuts-member/resources/pass.png", + "sizes": "256x256" + } + ], + "start_url": "../shortcuts-member-cors-manual.sub.html", + "display": "fullscreen", + "scope": "../", + "shortcuts": [{ + "name": "pass", + "short_name": "", + "description": "", + "url": "../shortcut_pass.html", + "icons": [{ + "src": "https://{{host}}:{{ports[https][1]}}/appmanifest/icons-member/resources/pass.png", + "sizes": "256x256" + }] + }] +} diff --git a/testing/web-platform/tests/appmanifest/shortcuts-member/resources/shortcuts-member-cors.webmanifest.headers b/testing/web-platform/tests/appmanifest/shortcuts-member/resources/shortcuts-member-cors.webmanifest.headers new file mode 100644 index 0000000000..2bab061d43 --- /dev/null +++ b/testing/web-platform/tests/appmanifest/shortcuts-member/resources/shortcuts-member-cors.webmanifest.headers @@ -0,0 +1 @@ +Content-Type: application/manifest+json; charset=utf-8 diff --git a/testing/web-platform/tests/appmanifest/shortcuts-member/resources/shortcuts-member-csp-fail.webmanifest b/testing/web-platform/tests/appmanifest/shortcuts-member/resources/shortcuts-member-csp-fail.webmanifest new file mode 100644 index 0000000000..7efe564c9d --- /dev/null +++ b/testing/web-platform/tests/appmanifest/shortcuts-member/resources/shortcuts-member-csp-fail.webmanifest @@ -0,0 +1,22 @@ +{ + "name": "Shortcut test", + "icons": [ + { + "src": "pass.png", + "sizes": "256x256" + } + ], + "start_url": "../shortcuts-member-csp-fail-manual.sub.html", + "display": "fullscreen", + "scope": "../", + "shortcuts": [{ + "name": "pass", + "short_name": "", + "description": "", + "url": "../shortcut_pass.html", + "icons": [{ + "src": "fail.png", + "sizes": "256x256" + }] + }] +} diff --git a/testing/web-platform/tests/appmanifest/shortcuts-member/resources/shortcuts-member-csp-fail.webmanifest.headers b/testing/web-platform/tests/appmanifest/shortcuts-member/resources/shortcuts-member-csp-fail.webmanifest.headers new file mode 100644 index 0000000000..2bab061d43 --- /dev/null +++ b/testing/web-platform/tests/appmanifest/shortcuts-member/resources/shortcuts-member-csp-fail.webmanifest.headers @@ -0,0 +1 @@ +Content-Type: application/manifest+json; charset=utf-8 diff --git a/testing/web-platform/tests/appmanifest/shortcuts-member/resources/shortcuts-member-csp.sub.webmanifest b/testing/web-platform/tests/appmanifest/shortcuts-member/resources/shortcuts-member-csp.sub.webmanifest new file mode 100644 index 0000000000..55b0afb3ed --- /dev/null +++ b/testing/web-platform/tests/appmanifest/shortcuts-member/resources/shortcuts-member-csp.sub.webmanifest @@ -0,0 +1,22 @@ +{ + "name": "Shortcut test", + "icons": [ + { + "src": "https://{{host}}:{{ports[https][0]}}/appmanifest/shortcuts-member/resources/pass.png", + "sizes": "256x256" + } + ], + "start_url": "../shortcuts-member-csp-manual.sub.html", + "display": "fullscreen", + "scope": "../", + "shortcuts": [{ + "name": "pass", + "short_name": "", + "description": "", + "url": "../shortcut_pass.html", + "icons": [{ + "src": "https://{{host}}:{{ports[https][1]}}/appmanifest/icons-member/resources/pass.png", + "sizes": "256x256" + }] + }] +} diff --git a/testing/web-platform/tests/appmanifest/shortcuts-member/resources/shortcuts-member-csp.webmanifest.headers b/testing/web-platform/tests/appmanifest/shortcuts-member/resources/shortcuts-member-csp.webmanifest.headers new file mode 100644 index 0000000000..2bab061d43 --- /dev/null +++ b/testing/web-platform/tests/appmanifest/shortcuts-member/resources/shortcuts-member-csp.webmanifest.headers @@ -0,0 +1 @@ +Content-Type: application/manifest+json; charset=utf-8 diff --git a/testing/web-platform/tests/appmanifest/shortcuts-member/resources/shortcuts-member-manual.js b/testing/web-platform/tests/appmanifest/shortcuts-member/resources/shortcuts-member-manual.js new file mode 100644 index 0000000000..5fdfde1bd6 --- /dev/null +++ b/testing/web-platform/tests/appmanifest/shortcuts-member/resources/shortcuts-member-manual.js @@ -0,0 +1,4 @@ +if ('serviceWorker' in navigator) { + navigator.serviceWorker.register( + 'shortcuts-member-service-worker.js'); +} diff --git a/testing/web-platform/tests/appmanifest/shortcuts-member/resources/shortcuts-member-skip-for-empty-name.webmanifest b/testing/web-platform/tests/appmanifest/shortcuts-member/resources/shortcuts-member-skip-for-empty-name.webmanifest new file mode 100644 index 0000000000..6e17899c65 --- /dev/null +++ b/testing/web-platform/tests/appmanifest/shortcuts-member/resources/shortcuts-member-skip-for-empty-name.webmanifest @@ -0,0 +1,27 @@ +{ + "name": "Shortcut test", + "icons": [ + { + "src": "pass.png", + "sizes": "256x256" + } + ], + "start_url": "../shortcuts-member-skip-for-empty-name-manual.html", + "display": "fullscreen", + "scope": "../", + "shortcuts": [{ + "name": "", + "short_name": "", + "description": "", + "url": "../shortcut_fail.html", + "icons": [] + }, { + "name": "pass", + "short_name": "", + "description": "", + "url": "../shortcut_pass.html", + "icons": [{ + "src": "pass.png" + }] + }] +} diff --git a/testing/web-platform/tests/appmanifest/shortcuts-member/resources/shortcuts-member-skip-for-empty-name.webmanifest.headers b/testing/web-platform/tests/appmanifest/shortcuts-member/resources/shortcuts-member-skip-for-empty-name.webmanifest.headers new file mode 100644 index 0000000000..2bab061d43 --- /dev/null +++ b/testing/web-platform/tests/appmanifest/shortcuts-member/resources/shortcuts-member-skip-for-empty-name.webmanifest.headers @@ -0,0 +1 @@ +Content-Type: application/manifest+json; charset=utf-8 diff --git a/testing/web-platform/tests/appmanifest/shortcuts-member/resources/shortcuts-member-skip-for-invalid-url.webmanifest b/testing/web-platform/tests/appmanifest/shortcuts-member/resources/shortcuts-member-skip-for-invalid-url.webmanifest new file mode 100644 index 0000000000..573bbdc8c0 --- /dev/null +++ b/testing/web-platform/tests/appmanifest/shortcuts-member/resources/shortcuts-member-skip-for-invalid-url.webmanifest @@ -0,0 +1,27 @@ +{ + "name": "Shortcut test", + "icons": [ + { + "src": "pass.png", + "sizes": "256x256" + } + ], + "start_url": "../shortcuts-member-skip-for-invalid-url-manual.html", + "display": "fullscreen", + "scope": "../", + "shortcuts": [{ + "name": "fail", + "short_name": "", + "description": "", + "url": "http://foo:660000", + "icons": [] + }, { + "name": "pass", + "short_name": "", + "description": "", + "url": "../shortcut_pass.html", + "icons": [{ + "src": "pass.png" + }] + }] +} diff --git a/testing/web-platform/tests/appmanifest/shortcuts-member/resources/shortcuts-member-skip-for-invalid-url.webmanifest.headers b/testing/web-platform/tests/appmanifest/shortcuts-member/resources/shortcuts-member-skip-for-invalid-url.webmanifest.headers new file mode 100644 index 0000000000..2bab061d43 --- /dev/null +++ b/testing/web-platform/tests/appmanifest/shortcuts-member/resources/shortcuts-member-skip-for-invalid-url.webmanifest.headers @@ -0,0 +1 @@ +Content-Type: application/manifest+json; charset=utf-8 diff --git a/testing/web-platform/tests/appmanifest/shortcuts-member/resources/shortcuts-member-skip-for-out-of-scope-url.webmanifest b/testing/web-platform/tests/appmanifest/shortcuts-member/resources/shortcuts-member-skip-for-out-of-scope-url.webmanifest new file mode 100644 index 0000000000..79ac5130fb --- /dev/null +++ b/testing/web-platform/tests/appmanifest/shortcuts-member/resources/shortcuts-member-skip-for-out-of-scope-url.webmanifest @@ -0,0 +1,27 @@ +{ + "name": "Shortcut test", + "icons": [ + { + "src": "pass.png", + "sizes": "256x256" + } + ], + "start_url": "../shortcuts-member-skip-for-out-of-scope-url-manual.html", + "display": "fullscreen", + "scope": "../", + "shortcuts": [{ + "name": "fail", + "short_name": "", + "description": "", + "url": "https://example.com", + "icons": [] + }, { + "name": "pass", + "short_name": "", + "description": "", + "url": "../shortcut_pass.html", + "icons": [{ + "src": "pass.png" + }] + }] +} diff --git a/testing/web-platform/tests/appmanifest/shortcuts-member/resources/shortcuts-member-skip-for-out-of-scope-url.webmanifest.headers b/testing/web-platform/tests/appmanifest/shortcuts-member/resources/shortcuts-member-skip-for-out-of-scope-url.webmanifest.headers new file mode 100644 index 0000000000..2bab061d43 --- /dev/null +++ b/testing/web-platform/tests/appmanifest/shortcuts-member/resources/shortcuts-member-skip-for-out-of-scope-url.webmanifest.headers @@ -0,0 +1 @@ +Content-Type: application/manifest+json; charset=utf-8 diff --git a/testing/web-platform/tests/appmanifest/shortcuts-member/resources/shortcuts-member-skip-for-undefined-name.webmanifest b/testing/web-platform/tests/appmanifest/shortcuts-member/resources/shortcuts-member-skip-for-undefined-name.webmanifest new file mode 100644 index 0000000000..14521109c2 --- /dev/null +++ b/testing/web-platform/tests/appmanifest/shortcuts-member/resources/shortcuts-member-skip-for-undefined-name.webmanifest @@ -0,0 +1,26 @@ +{ + "name": "Shortcut test", + "icons": [ + { + "src": "pass.png", + "sizes": "256x256" + } + ], + "start_url": "../shortcuts-member-skip-for-undefined-name-manual.html", + "display": "fullscreen", + "scope": "../", + "shortcuts": [{ + "short_name": "fail", + "description": "", + "url": "../shortcut_fail.html", + "icons": [] + }, { + "name": "pass", + "short_name": "", + "description": "", + "url": "../shortcut_pass.html", + "icons": [{ + "src": "pass.png" + }] + }] +} diff --git a/testing/web-platform/tests/appmanifest/shortcuts-member/resources/shortcuts-member-skip-for-undefined-name.webmanifest.headers b/testing/web-platform/tests/appmanifest/shortcuts-member/resources/shortcuts-member-skip-for-undefined-name.webmanifest.headers new file mode 100644 index 0000000000..2bab061d43 --- /dev/null +++ b/testing/web-platform/tests/appmanifest/shortcuts-member/resources/shortcuts-member-skip-for-undefined-name.webmanifest.headers @@ -0,0 +1 @@ +Content-Type: application/manifest+json; charset=utf-8 diff --git a/testing/web-platform/tests/appmanifest/shortcuts-member/resources/shortcuts-member-skip-for-undefined-url.webmanifest b/testing/web-platform/tests/appmanifest/shortcuts-member/resources/shortcuts-member-skip-for-undefined-url.webmanifest new file mode 100644 index 0000000000..e272c4cae5 --- /dev/null +++ b/testing/web-platform/tests/appmanifest/shortcuts-member/resources/shortcuts-member-skip-for-undefined-url.webmanifest @@ -0,0 +1,26 @@ +{ + "name": "Shortcut test", + "icons": [ + { + "src": "pass.png", + "sizes": "256x256" + } + ], + "start_url": "../shortcuts-member-skip-for-undefined-url-manual.html", + "display": "fullscreen", + "scope": "../", + "shortcuts": [{ + "name": "fail", + "short_name": "", + "description": "", + "icons": [] + }, { + "name": "pass", + "short_name": "", + "description": "", + "url": "../shortcut_pass.html", + "icons": [{ + "src": "pass.png" + }] + }] +} diff --git a/testing/web-platform/tests/appmanifest/shortcuts-member/resources/shortcuts-member-skip-for-undefined-url.webmanifest.headers b/testing/web-platform/tests/appmanifest/shortcuts-member/resources/shortcuts-member-skip-for-undefined-url.webmanifest.headers new file mode 100644 index 0000000000..2bab061d43 --- /dev/null +++ b/testing/web-platform/tests/appmanifest/shortcuts-member/resources/shortcuts-member-skip-for-undefined-url.webmanifest.headers @@ -0,0 +1 @@ +Content-Type: application/manifest+json; charset=utf-8 diff --git a/testing/web-platform/tests/appmanifest/shortcuts-member/resources/shortcuts-member.webmanifest b/testing/web-platform/tests/appmanifest/shortcuts-member/resources/shortcuts-member.webmanifest new file mode 100644 index 0000000000..68c3e99d70 --- /dev/null +++ b/testing/web-platform/tests/appmanifest/shortcuts-member/resources/shortcuts-member.webmanifest @@ -0,0 +1,22 @@ +{ + "name": "Shortcut test", + "icons": [ + { + "src": "pass.png", + "sizes": "256x256" + } + ], + "start_url": "../shortcuts-member-manual.html", + "display": "fullscreen", + "scope": "../", + "shortcuts": [{ + "name": "pass", + "short_name": "", + "description": "", + "url": "../shortcut_pass.html", + "icons": [{ + "src": "pass.png", + "sizes": "256x256" + }] + }] +} diff --git a/testing/web-platform/tests/appmanifest/shortcuts-member/resources/shortcuts-member.webmanifest.headers b/testing/web-platform/tests/appmanifest/shortcuts-member/resources/shortcuts-member.webmanifest.headers new file mode 100644 index 0000000000..2bab061d43 --- /dev/null +++ b/testing/web-platform/tests/appmanifest/shortcuts-member/resources/shortcuts-member.webmanifest.headers @@ -0,0 +1 @@ +Content-Type: application/manifest+json; charset=utf-8 |