diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 17:32:43 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 17:32:43 +0000 |
commit | 6bf0a5cb5034a7e684dcc3500e841785237ce2dd (patch) | |
tree | a68f146d7fa01f0134297619fbe7e33db084e0aa /testing/web-platform/meta/screen-orientation | |
parent | Initial commit. (diff) | |
download | thunderbird-6bf0a5cb5034a7e684dcc3500e841785237ce2dd.tar.xz thunderbird-6bf0a5cb5034a7e684dcc3500e841785237ce2dd.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/meta/screen-orientation')
15 files changed, 135 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..c54050f64e --- /dev/null +++ b/testing/web-platform/meta/screen-orientation/active-lock.html.ini @@ -0,0 +1,14 @@ +[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: TIMEOUT + + [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..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..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..5382b93fc4 --- /dev/null +++ b/testing/web-platform/meta/screen-orientation/hidden_document.html.ini @@ -0,0 +1,5 @@ +[hidden_document.html] + expected: + if os == "android": ERROR + [hidden documents must reject went trying to call unlock] + 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..e273a52bd1 --- /dev/null +++ b/testing/web-platform/meta/screen-orientation/nested-documents.html.ini @@ -0,0 +1,15 @@ +[nested-documents.html] + expected: + if (os == "android") and not fission: OK + if (os == "android") and fission: [OK, TIMEOUT, ERROR] + if os == "win": OK + 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 + 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..7fd1790c2d --- /dev/null +++ b/testing/web-platform/meta/screen-orientation/onchange-event-subframe.html.ini @@ -0,0 +1,12 @@ +[onchange-event-subframe.html] + expected: + if (os == "android") and fission: [TIMEOUT, OK] + if (os == "android") and not fission: TIMEOUT + TIMEOUT + [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: TIMEOUT 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 |