summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/appmanifest/shortcuts-member/shortcuts-member-cors-manual.sub.html
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/appmanifest/shortcuts-member/shortcuts-member-cors-manual.sub.html')
-rw-r--r--testing/web-platform/tests/appmanifest/shortcuts-member/shortcuts-member-cors-manual.sub.html17
1 files changed, 17 insertions, 0 deletions
diff --git a/testing/web-platform/tests/appmanifest/shortcuts-member/shortcuts-member-cors-manual.sub.html b/testing/web-platform/tests/appmanifest/shortcuts-member/shortcuts-member-cors-manual.sub.html
new file mode 100644
index 0000000000..73b47c4336
--- /dev/null
+++ b/testing/web-platform/tests/appmanifest/shortcuts-member/shortcuts-member-cors-manual.sub.html
@@ -0,0 +1,17 @@
+<!DOCTYPE html>
+<title>Test that shortcuts member is supported (icon via CORS)</title>
+<link rel="help" href="https://w3c.github.io/manifest/#shortcuts-member" />
+<link rel="manifest" href="resources/shortcuts-member-cors.sub.webmanifest" />
+<script src="resources/shortcuts-member-manual.js"></script>
+<h1>Testing support for shortcuts member (icon via CORS)</h1>
+<script>
+ // Force the port of the origin to be ports[https][0] (likely :8443)
+ // we treat the port ports[https][1] (likely :8444) to be another origin that we fail against
+ if (window.location.origin !== "https://{{host}}:{{ports[https][0]}}") {
+ window.location = new URL(window.location.pathname, "https://{{host}}:{{ports[https][0]}}")
+ }
+</script>
+<p>
+ To pass, the application must show a shortcut named "pass" with a check
+ mark icon. Clicking it must open this document again.
+</p>