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

Side by Side Diff: third_party/WebKit/LayoutTests/external/wpt_automation/input-events/inputevent_common_input.js

Issue 2919603002: [WPT] Add automated manual test for InputEvent typing (Closed)
Patch Set: foolip's comments: Fix nits Created 3 years, 6 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Returns a Promise for future conversion into WebDriver-backed API.
2 function keyDown(key, modifiers) {
3 return new Promise(function(resolve, reject) {
4 if (window.eventSender) {
5 eventSender.keyDown(key, modifiers);
6 resolve();
7 } else {
8 reject();
9 }
10 });
11 }
12
13 function focusAndKeyDown(selector, key, modifiers) {
14 document.querySelector(selector).focus();
15 return keyDown(key, modifiers);
16 }
17
18 {
19 const inputevent_automation = async_test("InputEvent Automation");
20 // Defined in every test and should return a promise that gets resolved when i nput is finished.
21 inject_input().then(inputevent_automation.step_func_done());
22 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698