summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/meta/screen-orientation
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 00:47:55 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 00:47:55 +0000
commit26a029d407be480d791972afb5975cf62c9360a6 (patch)
treef435a8308119effd964b339f76abb83a57c29483 /testing/web-platform/meta/screen-orientation
parentInitial commit. (diff)
downloadfirefox-26a029d407be480d791972afb5975cf62c9360a6.tar.xz
firefox-26a029d407be480d791972afb5975cf62c9360a6.zip
Adding upstream version 124.0.1.upstream/124.0.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/web-platform/meta/screen-orientation')
-rw-r--r--testing/web-platform/meta/screen-orientation/__dir__.ini1
-rw-r--r--testing/web-platform/meta/screen-orientation/active-lock.html.ini18
-rw-r--r--testing/web-platform/meta/screen-orientation/event-before-promise.html.ini5
-rw-r--r--testing/web-platform/meta/screen-orientation/fullscreen-interactions.html.ini5
-rw-r--r--testing/web-platform/meta/screen-orientation/hidden_document.html.ini11
-rw-r--r--testing/web-platform/meta/screen-orientation/lock-bad-argument.html.ini3
-rw-r--r--testing/web-platform/meta/screen-orientation/lock-basic.html.ini18
-rw-r--r--testing/web-platform/meta/screen-orientation/lock-sandboxed-iframe.html.ini9
-rw-r--r--testing/web-platform/meta/screen-orientation/lock-unlock-check.html.ini8
-rw-r--r--testing/web-platform/meta/screen-orientation/nested-documents.html.ini11
-rw-r--r--testing/web-platform/meta/screen-orientation/non-fully-active.html.ini8
-rw-r--r--testing/web-platform/meta/screen-orientation/onchange-event-subframe.html.ini10
-rw-r--r--testing/web-platform/meta/screen-orientation/onchange-event.html.ini13
-rw-r--r--testing/web-platform/meta/screen-orientation/orientation-reading.html.ini5
-rw-r--r--testing/web-platform/meta/screen-orientation/unlock.html.ini9
15 files changed, 134 insertions, 0 deletions
diff --git a/testing/web-platform/meta/screen-orientation/__dir__.ini b/testing/web-platform/meta/screen-orientation/__dir__.ini
new file mode 100644
index 0000000000..76398114dc
--- /dev/null
+++ b/testing/web-platform/meta/screen-orientation/__dir__.ini
@@ -0,0 +1 @@
+prefs: [dom.screenorientation.allow-lock:true]
diff --git a/testing/web-platform/meta/screen-orientation/active-lock.html.ini b/testing/web-platform/meta/screen-orientation/active-lock.html.ini
new file mode 100644
index 0000000000..0c6cb113ff
--- /dev/null
+++ b/testing/web-platform/meta/screen-orientation/active-lock.html.ini
@@ -0,0 +1,18 @@
+[active-lock.html]
+ expected:
+ if os == "android": TIMEOUT
+ ERROR
+ [Performing a fragment navigation must not abort the screen orientation change]
+ expected:
+ if os == "android": PASS
+ FAIL
+
+ [Performing a fragment navigation within an iframe must not abort the lock promise]
+ expected:
+ if os == "android": PASS
+ FAIL
+
+ [Unloading an iframe by navigating it must abort the lock promise]
+ expected:
+ if os == "android": TIMEOUT
+ FAIL
diff --git a/testing/web-platform/meta/screen-orientation/event-before-promise.html.ini b/testing/web-platform/meta/screen-orientation/event-before-promise.html.ini
new file mode 100644
index 0000000000..1c473ce460
--- /dev/null
+++ b/testing/web-platform/meta/screen-orientation/event-before-promise.html.ini
@@ -0,0 +1,5 @@
+[event-before-promise.html]
+ [The 'change' event must fire before the [[orientationPendingPromise\]\] is resolved.]
+ expected:
+ if os == "android": PASS
+ FAIL
diff --git a/testing/web-platform/meta/screen-orientation/fullscreen-interactions.html.ini b/testing/web-platform/meta/screen-orientation/fullscreen-interactions.html.ini
new file mode 100644
index 0000000000..563f1c1dd8
--- /dev/null
+++ b/testing/web-platform/meta/screen-orientation/fullscreen-interactions.html.ini
@@ -0,0 +1,5 @@
+[fullscreen-interactions.html]
+ [fullscreen and orientation support]
+ expected:
+ if os == "android": PASS
+ FAIL
diff --git a/testing/web-platform/meta/screen-orientation/hidden_document.html.ini b/testing/web-platform/meta/screen-orientation/hidden_document.html.ini
new file mode 100644
index 0000000000..dfccc5c159
--- /dev/null
+++ b/testing/web-platform/meta/screen-orientation/hidden_document.html.ini
@@ -0,0 +1,11 @@
+[hidden_document.html]
+ expected:
+ if os == "android": ERROR
+ [hidden documents must reject went trying to call unlock]
+ expected: FAIL
+
+ [hidden documents must not unlock the screen orientation]
+ expected: FAIL
+
+ [Once maximized, a minimized window can lock or unlock the screen orientation again]
+ expected: FAIL
diff --git a/testing/web-platform/meta/screen-orientation/lock-bad-argument.html.ini b/testing/web-platform/meta/screen-orientation/lock-bad-argument.html.ini
new file mode 100644
index 0000000000..1c94391332
--- /dev/null
+++ b/testing/web-platform/meta/screen-orientation/lock-bad-argument.html.ini
@@ -0,0 +1,3 @@
+[lock-bad-argument.html]
+ expected:
+ if (os == "android") and fission: [OK, TIMEOUT]
diff --git a/testing/web-platform/meta/screen-orientation/lock-basic.html.ini b/testing/web-platform/meta/screen-orientation/lock-basic.html.ini
new file mode 100644
index 0000000000..425e93aeb4
--- /dev/null
+++ b/testing/web-platform/meta/screen-orientation/lock-basic.html.ini
@@ -0,0 +1,18 @@
+[lock-basic.html]
+ [Test that screen.orientation.lock returns a promise which will be fulfilled with a void value.]
+ expected:
+ if os == "android": PASS
+ FAIL
+
+ [Test that screen.orientation.lock() is actually async]
+ expected:
+ if os == "android": PASS
+ FAIL
+
+ [Test that screen.orientation.lock returns a pending promise.]
+ expected:
+ if (os == "win") and not debug and (processor == "x86"): [FAIL, PASS]
+ if (os == "win") and not debug and (processor == "x86_64"): [PASS, FAIL]
+ if (os == "android") and debug and not swgl: [FAIL, PASS]
+ if (os == "win") and debug: [PASS, FAIL]
+ if (os == "android") and not debug: [PASS, FAIL]
diff --git a/testing/web-platform/meta/screen-orientation/lock-sandboxed-iframe.html.ini b/testing/web-platform/meta/screen-orientation/lock-sandboxed-iframe.html.ini
new file mode 100644
index 0000000000..908bb28c09
--- /dev/null
+++ b/testing/web-platform/meta/screen-orientation/lock-sandboxed-iframe.html.ini
@@ -0,0 +1,9 @@
+[lock-sandboxed-iframe.html]
+ max-asserts: 2
+ expected:
+ if (os == "android") and fission: [ERROR, TIMEOUT, OK]
+ ERROR
+ [Test with 'allow-orientation-lock' sandboxing directive]
+ expected:
+ if os == "android": PASS
+ FAIL
diff --git a/testing/web-platform/meta/screen-orientation/lock-unlock-check.html.ini b/testing/web-platform/meta/screen-orientation/lock-unlock-check.html.ini
new file mode 100644
index 0000000000..941af8dad0
--- /dev/null
+++ b/testing/web-platform/meta/screen-orientation/lock-unlock-check.html.ini
@@ -0,0 +1,8 @@
+[lock-unlock-check.html]
+ expected:
+ if (os == "android") and fission: [OK, TIMEOUT]
+ [Unlocking the screen orientation after a change event must not abort]
+ expected: FAIL
+
+ [Re-locking the screen orientation after a change event fires must not abort]
+ expected: FAIL
diff --git a/testing/web-platform/meta/screen-orientation/nested-documents.html.ini b/testing/web-platform/meta/screen-orientation/nested-documents.html.ini
new file mode 100644
index 0000000000..ee821acc90
--- /dev/null
+++ b/testing/web-platform/meta/screen-orientation/nested-documents.html.ini
@@ -0,0 +1,11 @@
+[nested-documents.html]
+ expected:
+ if (os == "android") and not fission: ERROR
+ if (os == "android") and fission: [OK, TIMEOUT, ERROR]
+ if os == "win": ERROR
+ ERROR
+ [Requesting orientation lock from one document cancels the lock request from another document]
+ expected: FAIL
+
+ [The orientation lock from one document affects lock requests from other documents]
+ expected: FAIL
diff --git a/testing/web-platform/meta/screen-orientation/non-fully-active.html.ini b/testing/web-platform/meta/screen-orientation/non-fully-active.html.ini
new file mode 100644
index 0000000000..bf6ec6ad94
--- /dev/null
+++ b/testing/web-platform/meta/screen-orientation/non-fully-active.html.ini
@@ -0,0 +1,8 @@
+[non-fully-active.html]
+ [Making a document non-fully active while locking results in an AbortError]
+ expected:
+ if (os == "win") and not debug and (processor == "x86"): [FAIL, PASS]
+ if (os == "win") and not debug and (processor == "x86_64"): [FAIL, PASS]
+ if (os == "win") and debug: [FAIL, PASS]
+ if os == "android": PASS
+ FAIL
diff --git a/testing/web-platform/meta/screen-orientation/onchange-event-subframe.html.ini b/testing/web-platform/meta/screen-orientation/onchange-event-subframe.html.ini
new file mode 100644
index 0000000000..5a315a83e7
--- /dev/null
+++ b/testing/web-platform/meta/screen-orientation/onchange-event-subframe.html.ini
@@ -0,0 +1,10 @@
+[onchange-event-subframe.html]
+ [Test subframes receive orientation change events]
+ expected:
+ if os == "android": PASS
+ FAIL
+
+ [Check directly that events are fired in right order (from top to bottom)]
+ expected:
+ if os == "android": PASS
+ FAIL
diff --git a/testing/web-platform/meta/screen-orientation/onchange-event.html.ini b/testing/web-platform/meta/screen-orientation/onchange-event.html.ini
new file mode 100644
index 0000000000..6581a5bbf0
--- /dev/null
+++ b/testing/web-platform/meta/screen-orientation/onchange-event.html.ini
@@ -0,0 +1,13 @@
+[onchange-event.html]
+ expected:
+ if (os == "android") and fission: [OK, TIMEOUT]
+ if (os == "android") and not fission: OK
+ [Test that orientationchange event is fired when the orientation changes.]
+ expected:
+ if os == "android": PASS
+ FAIL
+
+ [Test that orientationchange event is not fired when the orientation does not change.]
+ expected:
+ if os == "android": PASS
+ FAIL
diff --git a/testing/web-platform/meta/screen-orientation/orientation-reading.html.ini b/testing/web-platform/meta/screen-orientation/orientation-reading.html.ini
new file mode 100644
index 0000000000..f415125d18
--- /dev/null
+++ b/testing/web-platform/meta/screen-orientation/orientation-reading.html.ini
@@ -0,0 +1,5 @@
+[orientation-reading.html]
+ [Test that ScreenOrientation's attribute values change after 'change' event fires]
+ expected:
+ if os == "android": PASS
+ FAIL
diff --git a/testing/web-platform/meta/screen-orientation/unlock.html.ini b/testing/web-platform/meta/screen-orientation/unlock.html.ini
new file mode 100644
index 0000000000..9d03549c18
--- /dev/null
+++ b/testing/web-platform/meta/screen-orientation/unlock.html.ini
@@ -0,0 +1,9 @@
+[unlock.html]
+ [unlock() aborts a pending lock request]
+ expected:
+ if os == "android": PASS
+ if os == "win": PASS
+ FAIL
+
+ [unlock() aborts a pending lock request across documents]
+ expected: FAIL