From e6201271b29eb9c450fafa11e521ac49cb147c2a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philip=20J=C3=A4genstedt?= Date: Wed, 13 Oct 2021 19:53:39 +0000 Subject: [PATCH] Bug 1734813 [wpt PR 31164] - Update Keyboard Lock IDL and test, a=testonly Automatic update from web-platform-tests Update Keyboard Lock IDL and tests This change is extracted from https://github.com/web-platform-tests/wpt/pull/31151 and done separately because dom.idl is needed for EventTarget. -- wpt-commits: 0bfbf52dcbd2433cd42a7ca43ab57c5b3e6f93a0 wpt-pr: 31164 --- testing/web-platform/tests/interfaces/keyboard-lock.idl | 3 ++- .../tests/keyboard-lock/idlharness.https.window.js | 2 +- .../web-platform/tests/keyboard-map/idlharness.https.window.js | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/testing/web-platform/tests/interfaces/keyboard-lock.idl b/testing/web-platform/tests/interfaces/keyboard-lock.idl index 3aaf9f3755b7c..d81e9924a357a 100644 --- a/testing/web-platform/tests/interfaces/keyboard-lock.idl +++ b/testing/web-platform/tests/interfaces/keyboard-lock.idl @@ -7,7 +7,8 @@ partial interface Navigator { [SecureContext, SameObject] readonly attribute Keyboard keyboard; }; -[SecureContext, Exposed=Window] interface Keyboard { +[SecureContext, Exposed=Window] +interface Keyboard : EventTarget { Promise lock(optional sequence keyCodes = []); undefined unlock(); }; diff --git a/testing/web-platform/tests/keyboard-lock/idlharness.https.window.js b/testing/web-platform/tests/keyboard-lock/idlharness.https.window.js index 9c94411eabf28..66bb7b9bc89ff 100644 --- a/testing/web-platform/tests/keyboard-lock/idlharness.https.window.js +++ b/testing/web-platform/tests/keyboard-lock/idlharness.https.window.js @@ -8,7 +8,7 @@ idl_test( ['keyboard-lock'], - ['html'], + ['html', 'dom'], idl_array => { idl_array.add_objects({ Navigator: ['navigator'], diff --git a/testing/web-platform/tests/keyboard-map/idlharness.https.window.js b/testing/web-platform/tests/keyboard-map/idlharness.https.window.js index b14734db9005d..07083f7034b53 100644 --- a/testing/web-platform/tests/keyboard-map/idlharness.https.window.js +++ b/testing/web-platform/tests/keyboard-map/idlharness.https.window.js @@ -7,7 +7,7 @@ idl_test( ['keyboard-map'], - ['html', 'keyboard-lock'], + ['keyboard-lock', 'html', 'dom'], async idl_array => { idl_array.add_objects({ Navigator: ['navigator'],