summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/appmanifest/user_preferences-member/resources
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 17:32:43 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 17:32:43 +0000
commit6bf0a5cb5034a7e684dcc3500e841785237ce2dd (patch)
treea68f146d7fa01f0134297619fbe7e33db084e0aa /testing/web-platform/tests/appmanifest/user_preferences-member/resources
parentInitial commit. (diff)
downloadthunderbird-upstream.tar.xz
thunderbird-upstream.zip
Adding upstream version 1:115.7.0.upstream/1%115.7.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/web-platform/tests/appmanifest/user_preferences-member/resources')
-rw-r--r--testing/web-platform/tests/appmanifest/user_preferences-member/resources/icon.pngbin0 -> 104 bytes
-rw-r--r--testing/web-platform/tests/appmanifest/user_preferences-member/resources/user_preferences-member-manual.js4
-rw-r--r--testing/web-platform/tests/appmanifest/user_preferences-member/resources/user_preferences-member.webmanifest22
-rw-r--r--testing/web-platform/tests/appmanifest/user_preferences-member/resources/user_preferences-member.webmanifest.headers1
4 files changed, 27 insertions, 0 deletions
diff --git a/testing/web-platform/tests/appmanifest/user_preferences-member/resources/icon.png b/testing/web-platform/tests/appmanifest/user_preferences-member/resources/icon.png
new file mode 100644
index 0000000000..d6dd4860ae
--- /dev/null
+++ b/testing/web-platform/tests/appmanifest/user_preferences-member/resources/icon.png
Binary files differ
diff --git a/testing/web-platform/tests/appmanifest/user_preferences-member/resources/user_preferences-member-manual.js b/testing/web-platform/tests/appmanifest/user_preferences-member/resources/user_preferences-member-manual.js
new file mode 100644
index 0000000000..bf1bc8d24c
--- /dev/null
+++ b/testing/web-platform/tests/appmanifest/user_preferences-member/resources/user_preferences-member-manual.js
@@ -0,0 +1,4 @@
+if ('serviceWorker' in navigator) {
+ navigator.serviceWorker.register(
+ 'user_preferences-member-service-worker.js');
+}
diff --git a/testing/web-platform/tests/appmanifest/user_preferences-member/resources/user_preferences-member.webmanifest b/testing/web-platform/tests/appmanifest/user_preferences-member/resources/user_preferences-member.webmanifest
new file mode 100644
index 0000000000..3d92202bf7
--- /dev/null
+++ b/testing/web-platform/tests/appmanifest/user_preferences-member/resources/user_preferences-member.webmanifest
@@ -0,0 +1,22 @@
+{
+ "name": "user_preferences member WPT",
+ "icons": [
+ {
+ "src": "icon.png",
+ "sizes": "144x144"
+ }
+ ],
+ "start_url": "../user_preferences-member-manual.html",
+ "display": "fullscreen",
+ "user_preferences": {
+ "color_scheme": {
+ "dark": {
+ "theme_color": "green"
+ },
+ "light": {
+ "theme_color": "green"
+ }
+ }
+ },
+ "theme_color": "red"
+} \ No newline at end of file
diff --git a/testing/web-platform/tests/appmanifest/user_preferences-member/resources/user_preferences-member.webmanifest.headers b/testing/web-platform/tests/appmanifest/user_preferences-member/resources/user_preferences-member.webmanifest.headers
new file mode 100644
index 0000000000..23f36ea27c
--- /dev/null
+++ b/testing/web-platform/tests/appmanifest/user_preferences-member/resources/user_preferences-member.webmanifest.headers
@@ -0,0 +1 @@
+Content-Type: application/manifest+json; charset=utf-8 \ No newline at end of file