summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/meta/screen-orientation
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 09:22:09 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 09:22:09 +0000
commit43a97878ce14b72f0981164f87f2e35e14151312 (patch)
tree620249daf56c0258faa40cbdcf9cfba06de2a846 /testing/web-platform/meta/screen-orientation
parentInitial commit. (diff)
downloadfirefox-upstream.tar.xz
firefox-upstream.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/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.ini16
-rw-r--r--testing/web-platform/meta/screen-orientation/event-before-promise.html.ini8
-rw-r--r--testing/web-platform/meta/screen-orientation/fullscreen-interactions.html.ini10
-rw-r--r--testing/web-platform/meta/screen-orientation/hidden_document.html.ini2
-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.ini14
-rw-r--r--testing/web-platform/meta/screen-orientation/non-fully-active.html.ini16
-rw-r--r--testing/web-platform/meta/screen-orientation/onchange-event-subframe.html.ini14
-rw-r--r--testing/web-platform/meta/screen-orientation/onchange-event.html.ini14
-rw-r--r--testing/web-platform/meta/screen-orientation/orientation-reading.html.ini9
-rw-r--r--testing/web-platform/meta/screen-orientation/unlock.html.ini13
15 files changed, 155 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..3d263032cc
--- /dev/null
+++ b/testing/web-platform/meta/screen-orientation/active-lock.html.ini
@@ -0,0 +1,16 @@
+[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": TIMEOUT
+ NOTRUN
+
+ [Unloading an iframe by navigating it must abort the lock promise]
+ expected: NOTRUN
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..8b4c840c86
--- /dev/null
+++ b/testing/web-platform/meta/screen-orientation/event-before-promise.html.ini
@@ -0,0 +1,8 @@
+[event-before-promise.html]
+ expected:
+ if os == "android": OK
+ ERROR
+ [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..a34229ae3a
--- /dev/null
+++ b/testing/web-platform/meta/screen-orientation/fullscreen-interactions.html.ini
@@ -0,0 +1,10 @@
+[fullscreen-interactions.html]
+ expected:
+ if (os == "android") and not fission: OK
+ if (os == "android") and fission: [OK, TIMEOUT]
+ ERROR
+ [Fully unlocking the screen orientation causes a pending lock to be aborted]
+ expected: FAIL
+
+ [Fully unlocking the screen orientation causes a pending lock in a nested browsing context to be aborted]
+ expected: 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..759ce59ccf
--- /dev/null
+++ b/testing/web-platform/meta/screen-orientation/hidden_document.html.ini
@@ -0,0 +1,2 @@
+[hidden_document.html]
+ expected: ERROR
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..be458742e9
--- /dev/null
+++ b/testing/web-platform/meta/screen-orientation/lock-basic.html.ini
@@ -0,0 +1,18 @@
+[lock-basic.html]
+ expected:
+ if os == "android": OK
+ ERROR
+ [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
+ NOTRUN
+
+ [Test that screen.orientation.lock returns a pending promise.]
+ expected:
+ if os == "android": PASS
+ NOTRUN
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..b822888d46
--- /dev/null
+++ b/testing/web-platform/meta/screen-orientation/nested-documents.html.ini
@@ -0,0 +1,14 @@
+[nested-documents.html]
+ expected:
+ if (os == "android") and not fission: OK
+ if (os == "android") and fission: [OK, TIMEOUT, ERROR]
+ ERROR
+ [Requesting orientation lock from one document cancels the lock request from another document]
+ expected:
+ if os == "android": PASS
+ FAIL
+
+ [The orientation lock from one document affects lock requests from other documents]
+ expected:
+ if os == "android": PASS
+ NOTRUN
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..9290a6597b
--- /dev/null
+++ b/testing/web-platform/meta/screen-orientation/non-fully-active.html.ini
@@ -0,0 +1,16 @@
+[non-fully-active.html]
+ expected:
+ if (os == "android") and not fission: TIMEOUT
+ if (os == "android") and fission: [TIMEOUT, OK]
+ if os == "win": TIMEOUT
+ [Attempting to lock non-fully active documents results in a InvalidStateError]
+ expected: FAIL
+
+ [Attempting to unlock non-fully active documents results in a InvalidStateError]
+ expected: FAIL
+
+ [Making a document non-fully active while locking results in an AbortError]
+ expected:
+ if os == "win": TIMEOUT
+ if os == "android": TIMEOUT
+ 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..b2d131f05d
--- /dev/null
+++ b/testing/web-platform/meta/screen-orientation/onchange-event-subframe.html.ini
@@ -0,0 +1,14 @@
+[onchange-event-subframe.html]
+ expected:
+ if (os == "android") and fission: [TIMEOUT, OK]
+ if (os == "android") and not fission: TIMEOUT
+ ERROR
+ [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": TIMEOUT
+ NOTRUN
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..2a03ed9606
--- /dev/null
+++ b/testing/web-platform/meta/screen-orientation/onchange-event.html.ini
@@ -0,0 +1,14 @@
+[onchange-event.html]
+ expected:
+ if (os == "android") and fission: [OK, TIMEOUT]
+ if (os == "android") and not fission: OK
+ ERROR
+ [Test that orientationchange event is fired when the orientation changes.]
+ expected:
+ if os == "android": PASS
+ NOTRUN
+
+ [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..8bd5b65903
--- /dev/null
+++ b/testing/web-platform/meta/screen-orientation/orientation-reading.html.ini
@@ -0,0 +1,9 @@
+[orientation-reading.html]
+ expected:
+ if (os == "android") and fission: [OK, TIMEOUT]
+ if (os == "android") and not fission: OK
+ ERROR
+ [Test that screen.orientation values change if the orientation changes]
+ expected:
+ if os == "android": PASS
+ NOTRUN
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..ef0b2ec050
--- /dev/null
+++ b/testing/web-platform/meta/screen-orientation/unlock.html.ini
@@ -0,0 +1,13 @@
+[unlock.html]
+ expected:
+ if os == "android": OK
+ ERROR
+ [unlock() aborts a pending lock request]
+ expected:
+ if os == "android": PASS
+ NOTRUN
+
+ [unlock() aborts a pending lock request across documents]
+ expected:
+ if os == "android": FAIL
+ NOTRUN