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

Side by Side Diff: content/test/data/devtools/input_ack_tests.html

Issue 2387353004: Delay Input.dispatchKeyEvent response until after key event ack. (Closed)
Patch Set: fix nits Created 4 years 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 <!DOCTYPE html>
2 <html>
3 <body>
4 <div id="target">click target</div>
5 <script>
6 var handle = function(e) {
7 domAutomationController.setAutomationId(0);
8 domAutomationController.send(e.constructor.name + ' listener');
9 var start = Date.now();
10 var end = start + 5000;
11 while (Date.now() < end) {
12 // spin for 5 seconds to block the key event ack
dgozman 2016/11/21 19:14:39 This will be flaky for sure :) Do we really need i
samuong 2016/11/21 22:28:43 What's the best way to verify that we don't get th
samuong 2016/11/23 00:37:47 Since I already had the browser test set up, I've
13 }
14 }
15 document.body.addEventListener('keydown', handle);
16 document.getElementById('target').addEventListener('mousemove', handle);
17 </script>
18 </body>
19 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698