Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(321)

Unified Diff: third_party/WebKit/LayoutTests/external/wpt/keyboard-lock/navigator-requestKeyboardLock.https.html

Issue 2915203003: [System-Keyboard-Lock] Restore keyboard-lock tests (Closed)
Patch Set: Workaround testharness.js test requirement Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/external/wpt/keyboard-lock/navigator-requestKeyboardLock.https.html
diff --git a/third_party/WebKit/LayoutTests/external/wpt/keyboard-lock/navigator-requestKeyboardLock.https.html b/third_party/WebKit/LayoutTests/external/wpt/keyboard-lock/navigator-requestKeyboardLock.https.html
new file mode 100644
index 0000000000000000000000000000000000000000..e6e0121e75ec728a47242c7c8a2b2810ffa4fc67
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/external/wpt/keyboard-lock/navigator-requestKeyboardLock.https.html
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<script>
+'use strict';
+
+promise_test(() => {
+ const p = navigator.requestKeyboardLock(['a', 'b']);
+ assert_true(p instanceof Promise);
+ return p;
+}, 'Keyboard Lock requestKeyboardLock');
+
+</script>
« no previous file with comments | « third_party/WebKit/LayoutTests/external/wpt/keyboard-lock/navigator-requestKeyboardLock-two-sequential-requests.https.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698