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

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: remove |is_synthetic|, fixed bug for mouse acks, add test for mouse events Created 4 years, 1 month 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
13 }
14 }
15 document.body.addEventListener('keydown', handle);
16 document.getElementById('target').addEventListener('mousemove', handle);
17 </script>
18 </body>
19 </html>
OLDNEW
« content/public/test/browser_test_utils.h ('K') | « content/public/test/browser_test_utils.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698