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

Unified Diff: third_party/WebKit/Source/devtools/front_end/Tests.js

Issue 2143113003: [DevTools] Set skip_in_browser=true for synthethic keyboard events. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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
« no previous file with comments | « content/browser/devtools/protocol/input_handler.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/devtools/front_end/Tests.js
diff --git a/third_party/WebKit/Source/devtools/front_end/Tests.js b/third_party/WebKit/Source/devtools/front_end/Tests.js
index 268f62c932c955791f0e865e38a48117adb0d2ee..ad125f1e87f3f5ffb06d90bd394f3db01ab199be 100644
--- a/third_party/WebKit/Source/devtools/front_end/Tests.js
+++ b/third_party/WebKit/Source/devtools/front_end/Tests.js
@@ -717,6 +717,20 @@ TestSuite.prototype.testDeviceMetricsOverrides = function()
step1();
};
+TestSuite.prototype.testDispatchKeyEventDoesNotCrash = function()
+{
+ WebInspector.targetManager.mainTarget().inputAgent().invoke_dispatchKeyEvent({
+ type: "rawKeyDown",
+ windowsVirtualKeyCode: 0x23,
+ key: "End"
+ });
+ WebInspector.targetManager.mainTarget().inputAgent().invoke_dispatchKeyEvent({
+ type: "keyUp",
+ windowsVirtualKeyCode: 0x23,
+ key: "End"
+ });
+};
+
TestSuite.prototype.testEmulateNetworkConditions = function()
{
var test = this;
« no previous file with comments | « content/browser/devtools/protocol/input_handler.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698