Index: third_party/WebKit/LayoutTests/http/tests/inspector/inspector-test.js |
diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector/inspector-test.js b/third_party/WebKit/LayoutTests/http/tests/inspector/inspector-test.js |
index f0dc4d7e5977c7ca6667f80f1a6eea81a1b85ded..56701bf8671d678b984c880798e8e4034f49dbb9 100644 |
--- a/third_party/WebKit/LayoutTests/http/tests/inspector/inspector-test.js |
+++ b/third_party/WebKit/LayoutTests/http/tests/inspector/inspector-test.js |
@@ -523,16 +523,7 @@ InspectorTest.deprecatedRunAfterPendingDispatches = function(callback) |
InspectorTest.createKeyEvent = function(key, ctrlKey, altKey, shiftKey, metaKey) |
{ |
- var keyIdentifier = key; |
- if (key === "Tab") |
- keyIdentifier = "U+0009"; |
- else if (key == "Escape") |
- keyIdentifier = "U+001B"; |
- else if (key == "ArrowUp") |
- keyIdentifier = "Up"; |
- else if (key == "ArrowDown") |
- keyIdentifier = "Down"; |
- return new KeyboardEvent("keydown", {key: key, keyIdentifier: keyIdentifier, bubbles: true, cancelable: true, ctrlKey: ctrlKey, altKey: altKey, shiftKey: shiftKey, metaKey: metaKey}); |
+ return new KeyboardEvent("keydown", {key: key, bubbles: true, cancelable: true, ctrlKey: ctrlKey, altKey: altKey, shiftKey: shiftKey, metaKey: metaKey}); |
} |
InspectorTest.runTestSuite = function(testSuite) |