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

Unified Diff: content/test/data/devtools/key_event_test.html

Issue 2387353004: Delay Input.dispatchKeyEvent response until after key event ack. (Closed)
Patch Set: add test, address review comments about docs Created 4 years, 2 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: content/test/data/devtools/key_event_test.html
diff --git a/content/test/data/devtools/key_event_test.html b/content/test/data/devtools/key_event_test.html
new file mode 100644
index 0000000000000000000000000000000000000000..3df1d3c2dd24d69f1a6989c02757719b1a6bbf98
--- /dev/null
+++ b/content/test/data/devtools/key_event_test.html
@@ -0,0 +1,16 @@
+<!DOCTYPE html>
+<html>
+ <body>
+ <script>
+ document.body.addEventListener('keydown', function() {
+ domAutomationController.setAutomationId(0);
+ domAutomationController.send('entered keydown listener');
+ var start = Date.now();
+ var end = start + 5000;
+ while (Date.now() < end) {
+ // spin for 5 seconds to block the key event ack
+ }
+ });
+ </script>
+ </body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698