From 26a029d407be480d791972afb5975cf62c9360a6 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 19 Apr 2024 02:47:55 +0200 Subject: Adding upstream version 124.0.1. Signed-off-by: Daniel Baumann --- testing/web-platform/tests/keyboard-lock/META.yml | 4 +++ .../tests/keyboard-lock/idlharness.https.window.js | 18 ++++++++++++++ ...ock-blocked-from-cross-origin-iframe.https.html | 29 ++++++++++++++++++++++ ...or-keyboard-lock-blocked-from-iframe.https.html | 28 +++++++++++++++++++++ ...-keyboard-lock-two-parallel-requests.https.html | 13 ++++++++++ ...eyboard-lock-two-sequential-requests.https.html | 14 +++++++++++ .../navigator-keyboard-lock.https.html | 29 ++++++++++++++++++++++ .../navigator-keyboard-unlock.https.html | 12 +++++++++ .../resources/iframe-lock-helper.html | 20 +++++++++++++++ 9 files changed, 167 insertions(+) create mode 100644 testing/web-platform/tests/keyboard-lock/META.yml create mode 100644 testing/web-platform/tests/keyboard-lock/idlharness.https.window.js create mode 100644 testing/web-platform/tests/keyboard-lock/navigator-keyboard-lock-blocked-from-cross-origin-iframe.https.html create mode 100644 testing/web-platform/tests/keyboard-lock/navigator-keyboard-lock-blocked-from-iframe.https.html create mode 100644 testing/web-platform/tests/keyboard-lock/navigator-keyboard-lock-two-parallel-requests.https.html create mode 100644 testing/web-platform/tests/keyboard-lock/navigator-keyboard-lock-two-sequential-requests.https.html create mode 100644 testing/web-platform/tests/keyboard-lock/navigator-keyboard-lock.https.html create mode 100644 testing/web-platform/tests/keyboard-lock/navigator-keyboard-unlock.https.html create mode 100644 testing/web-platform/tests/keyboard-lock/resources/iframe-lock-helper.html (limited to 'testing/web-platform/tests/keyboard-lock') diff --git a/testing/web-platform/tests/keyboard-lock/META.yml b/testing/web-platform/tests/keyboard-lock/META.yml new file mode 100644 index 0000000000..06c48b4045 --- /dev/null +++ b/testing/web-platform/tests/keyboard-lock/META.yml @@ -0,0 +1,4 @@ +spec: https://wicg.github.io/keyboard-lock/ +suggested_reviewers: + - garykac + - joedow-42 diff --git a/testing/web-platform/tests/keyboard-lock/idlharness.https.window.js b/testing/web-platform/tests/keyboard-lock/idlharness.https.window.js new file mode 100644 index 0000000000..66bb7b9bc8 --- /dev/null +++ b/testing/web-platform/tests/keyboard-lock/idlharness.https.window.js @@ -0,0 +1,18 @@ +// META: script=/resources/WebIDLParser.js +// META: script=/resources/idlharness.js +// META: timeout=long + +// https://w3c.github.io/keyboard-lock/ + +'use strict'; + +idl_test( + ['keyboard-lock'], + ['html', 'dom'], + idl_array => { + idl_array.add_objects({ + Navigator: ['navigator'], + Keyboard: ['navigator.keyboard'], + }); + } +); diff --git a/testing/web-platform/tests/keyboard-lock/navigator-keyboard-lock-blocked-from-cross-origin-iframe.https.html b/testing/web-platform/tests/keyboard-lock/navigator-keyboard-lock-blocked-from-cross-origin-iframe.https.html new file mode 100644 index 0000000000..ef79c0c80a --- /dev/null +++ b/testing/web-platform/tests/keyboard-lock/navigator-keyboard-lock-blocked-from-cross-origin-iframe.https.html @@ -0,0 +1,29 @@ + + + + + + diff --git a/testing/web-platform/tests/keyboard-lock/navigator-keyboard-lock-blocked-from-iframe.https.html b/testing/web-platform/tests/keyboard-lock/navigator-keyboard-lock-blocked-from-iframe.https.html new file mode 100644 index 0000000000..a01f6a2fc7 --- /dev/null +++ b/testing/web-platform/tests/keyboard-lock/navigator-keyboard-lock-blocked-from-iframe.https.html @@ -0,0 +1,28 @@ + + + + + diff --git a/testing/web-platform/tests/keyboard-lock/navigator-keyboard-lock-two-parallel-requests.https.html b/testing/web-platform/tests/keyboard-lock/navigator-keyboard-lock-two-parallel-requests.https.html new file mode 100644 index 0000000000..c01b106992 --- /dev/null +++ b/testing/web-platform/tests/keyboard-lock/navigator-keyboard-lock-two-parallel-requests.https.html @@ -0,0 +1,13 @@ + + + + diff --git a/testing/web-platform/tests/keyboard-lock/navigator-keyboard-lock-two-sequential-requests.https.html b/testing/web-platform/tests/keyboard-lock/navigator-keyboard-lock-two-sequential-requests.https.html new file mode 100644 index 0000000000..520da36dfb --- /dev/null +++ b/testing/web-platform/tests/keyboard-lock/navigator-keyboard-lock-two-sequential-requests.https.html @@ -0,0 +1,14 @@ + + + + diff --git a/testing/web-platform/tests/keyboard-lock/navigator-keyboard-lock.https.html b/testing/web-platform/tests/keyboard-lock/navigator-keyboard-lock.https.html new file mode 100644 index 0000000000..674c336459 --- /dev/null +++ b/testing/web-platform/tests/keyboard-lock/navigator-keyboard-lock.https.html @@ -0,0 +1,29 @@ + + + + diff --git a/testing/web-platform/tests/keyboard-lock/navigator-keyboard-unlock.https.html b/testing/web-platform/tests/keyboard-lock/navigator-keyboard-unlock.https.html new file mode 100644 index 0000000000..87b10ee49a --- /dev/null +++ b/testing/web-platform/tests/keyboard-lock/navigator-keyboard-unlock.https.html @@ -0,0 +1,12 @@ + + + + diff --git a/testing/web-platform/tests/keyboard-lock/resources/iframe-lock-helper.html b/testing/web-platform/tests/keyboard-lock/resources/iframe-lock-helper.html new file mode 100644 index 0000000000..3950802f8e --- /dev/null +++ b/testing/web-platform/tests/keyboard-lock/resources/iframe-lock-helper.html @@ -0,0 +1,20 @@ + + -- cgit v1.2.3