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-map/META.yml | 3 ++ .../tests/keyboard-map/idlharness.https.window.js | 20 +++++++++++++ ...map-allowed-from-cross-origin-iframe.https.html | 30 +++++++++++++++++++ ...tor-keyboard-map-allowed-from-iframe.https.html | 29 ++++++++++++++++++ ...map-blocked-from-cross-origin-iframe.https.html | 29 ++++++++++++++++++ ...tor-keyboard-map-blocked-from-iframe.https.html | 29 ++++++++++++++++++ ...r-keyboard-map-two-parallel-requests.https.html | 15 ++++++++++ ...keyboard-map-two-sequential-requests.https.html | 14 +++++++++ .../keyboard-map/navigator-keyboard-map.https.html | 34 ++++++++++++++++++++++ .../iframe-keyboard-map-allow-helper.html | 16 ++++++++++ .../resources/iframe-keyboard-map-helper.html | 20 +++++++++++++ 11 files changed, 239 insertions(+) create mode 100644 testing/web-platform/tests/keyboard-map/META.yml create mode 100644 testing/web-platform/tests/keyboard-map/idlharness.https.window.js create mode 100644 testing/web-platform/tests/keyboard-map/navigator-keyboard-map-allowed-from-cross-origin-iframe.https.html create mode 100644 testing/web-platform/tests/keyboard-map/navigator-keyboard-map-allowed-from-iframe.https.html create mode 100644 testing/web-platform/tests/keyboard-map/navigator-keyboard-map-blocked-from-cross-origin-iframe.https.html create mode 100644 testing/web-platform/tests/keyboard-map/navigator-keyboard-map-blocked-from-iframe.https.html create mode 100644 testing/web-platform/tests/keyboard-map/navigator-keyboard-map-two-parallel-requests.https.html create mode 100644 testing/web-platform/tests/keyboard-map/navigator-keyboard-map-two-sequential-requests.https.html create mode 100644 testing/web-platform/tests/keyboard-map/navigator-keyboard-map.https.html create mode 100644 testing/web-platform/tests/keyboard-map/resources/iframe-keyboard-map-allow-helper.html create mode 100644 testing/web-platform/tests/keyboard-map/resources/iframe-keyboard-map-helper.html (limited to 'testing/web-platform/tests/keyboard-map') diff --git a/testing/web-platform/tests/keyboard-map/META.yml b/testing/web-platform/tests/keyboard-map/META.yml new file mode 100644 index 0000000000..4efb479ffe --- /dev/null +++ b/testing/web-platform/tests/keyboard-map/META.yml @@ -0,0 +1,3 @@ +spec: https://wicg.github.io/keyboard-map/ +suggested_reviewers: + - garykac diff --git a/testing/web-platform/tests/keyboard-map/idlharness.https.window.js b/testing/web-platform/tests/keyboard-map/idlharness.https.window.js new file mode 100644 index 0000000000..07083f7034 --- /dev/null +++ b/testing/web-platform/tests/keyboard-map/idlharness.https.window.js @@ -0,0 +1,20 @@ +// META: script=/resources/WebIDLParser.js +// META: script=/resources/idlharness.js + +// https://wicg.github.io/keyboard-map/ + +'use strict'; + +idl_test( + ['keyboard-map'], + ['keyboard-lock', 'html', 'dom'], + async idl_array => { + idl_array.add_objects({ + Navigator: ['navigator'], + Keyboard: ['navigator.keyboard'], + KeyboardLayoutMap: ['layout_map'], + }); + + self.layout_map = await navigator.keyboard.getLayoutMap(); + } +); diff --git a/testing/web-platform/tests/keyboard-map/navigator-keyboard-map-allowed-from-cross-origin-iframe.https.html b/testing/web-platform/tests/keyboard-map/navigator-keyboard-map-allowed-from-cross-origin-iframe.https.html new file mode 100644 index 0000000000..04a8c85fd9 --- /dev/null +++ b/testing/web-platform/tests/keyboard-map/navigator-keyboard-map-allowed-from-cross-origin-iframe.https.html @@ -0,0 +1,30 @@ + + + + + + diff --git a/testing/web-platform/tests/keyboard-map/navigator-keyboard-map-allowed-from-iframe.https.html b/testing/web-platform/tests/keyboard-map/navigator-keyboard-map-allowed-from-iframe.https.html new file mode 100644 index 0000000000..6e0cd7de4b --- /dev/null +++ b/testing/web-platform/tests/keyboard-map/navigator-keyboard-map-allowed-from-iframe.https.html @@ -0,0 +1,29 @@ + + + + + diff --git a/testing/web-platform/tests/keyboard-map/navigator-keyboard-map-blocked-from-cross-origin-iframe.https.html b/testing/web-platform/tests/keyboard-map/navigator-keyboard-map-blocked-from-cross-origin-iframe.https.html new file mode 100644 index 0000000000..a38d4197f0 --- /dev/null +++ b/testing/web-platform/tests/keyboard-map/navigator-keyboard-map-blocked-from-cross-origin-iframe.https.html @@ -0,0 +1,29 @@ + + + + + + diff --git a/testing/web-platform/tests/keyboard-map/navigator-keyboard-map-blocked-from-iframe.https.html b/testing/web-platform/tests/keyboard-map/navigator-keyboard-map-blocked-from-iframe.https.html new file mode 100644 index 0000000000..a94082edf0 --- /dev/null +++ b/testing/web-platform/tests/keyboard-map/navigator-keyboard-map-blocked-from-iframe.https.html @@ -0,0 +1,29 @@ + + + + + diff --git a/testing/web-platform/tests/keyboard-map/navigator-keyboard-map-two-parallel-requests.https.html b/testing/web-platform/tests/keyboard-map/navigator-keyboard-map-two-parallel-requests.https.html new file mode 100644 index 0000000000..875b9cc51e --- /dev/null +++ b/testing/web-platform/tests/keyboard-map/navigator-keyboard-map-two-parallel-requests.https.html @@ -0,0 +1,15 @@ + + + + diff --git a/testing/web-platform/tests/keyboard-map/navigator-keyboard-map-two-sequential-requests.https.html b/testing/web-platform/tests/keyboard-map/navigator-keyboard-map-two-sequential-requests.https.html new file mode 100644 index 0000000000..c7f6b9d770 --- /dev/null +++ b/testing/web-platform/tests/keyboard-map/navigator-keyboard-map-two-sequential-requests.https.html @@ -0,0 +1,14 @@ + + + + diff --git a/testing/web-platform/tests/keyboard-map/navigator-keyboard-map.https.html b/testing/web-platform/tests/keyboard-map/navigator-keyboard-map.https.html new file mode 100644 index 0000000000..b3ff14f362 --- /dev/null +++ b/testing/web-platform/tests/keyboard-map/navigator-keyboard-map.https.html @@ -0,0 +1,34 @@ + + +Keyboard Map basic tests + + + diff --git a/testing/web-platform/tests/keyboard-map/resources/iframe-keyboard-map-allow-helper.html b/testing/web-platform/tests/keyboard-map/resources/iframe-keyboard-map-allow-helper.html new file mode 100644 index 0000000000..88b2fbff5d --- /dev/null +++ b/testing/web-platform/tests/keyboard-map/resources/iframe-keyboard-map-allow-helper.html @@ -0,0 +1,16 @@ + + diff --git a/testing/web-platform/tests/keyboard-map/resources/iframe-keyboard-map-helper.html b/testing/web-platform/tests/keyboard-map/resources/iframe-keyboard-map-helper.html new file mode 100644 index 0000000000..7438029a19 --- /dev/null +++ b/testing/web-platform/tests/keyboard-map/resources/iframe-keyboard-map-helper.html @@ -0,0 +1,20 @@ + + -- cgit v1.2.3