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

Unified Diff: third_party/WebKit/LayoutTests/inspector-protocol/input/dispatchKeyEvent-focus.html

Issue 2961493002: [DevTools] Migrate inspector-protocol/{input,network} tests to new harness (Closed)
Patch Set: minor fixes Created 3 years, 6 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: third_party/WebKit/LayoutTests/inspector-protocol/input/dispatchKeyEvent-focus.html
diff --git a/third_party/WebKit/LayoutTests/inspector-protocol/input/dispatchKeyEvent-focus.html b/third_party/WebKit/LayoutTests/inspector-protocol/input/dispatchKeyEvent-focus.html
deleted file mode 100644
index 9cea1ef335aea1058638d0307e77952d37e45909..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/inspector-protocol/input/dispatchKeyEvent-focus.html
+++ /dev/null
@@ -1,77 +0,0 @@
-<html>
-<head>
-<script type="text/javascript" src="../../http/tests/inspector-protocol/resources/inspector-protocol-test.js"></script>
-<script>
-
-function load()
-{
- window.internals.setFocused(false);
- runTest();
-}
-
-function dump()
-{
- log("================");
- log("value of foo:" + document.getElementById("foo").value);
- log("value of bar:" + document.getElementById("bar").value);
- log("value of baz:" + document.getElementById("baz").value);
- window.internals.setFocused(true);
-}
-
-function test()
-{
- type("foo");
- typeTab();
- type("bar");
- typeTab();
- InspectorTest.evaluateInPage("dump()", InspectorTest.completeTest.bind(InspectorTest));
-
- function type(text)
- {
- for (var i = 0; i < text.length; ++i) {
- var dec = text.charCodeAt(i);
- var hex = "U+00" + Number(dec).toString(16);
- InspectorTest.sendCommand("Input.dispatchKeyEvent", {
- "type": "rawKeyDown",
- "windowsVirtualKeyCode": dec,
- "key": text[i]
- });
- InspectorTest.sendCommand("Input.dispatchKeyEvent", {
- "type": "char",
- "text": text[i],
- "key": text[i],
- "unmodifiedText": text[i]
- });
- InspectorTest.sendCommand("Input.dispatchKeyEvent", {
- "type": "keyUp",
- "windowsVirtualKeyCode": dec,
- "key": text[i]
- });
- }
- }
-
- function typeTab()
- {
- InspectorTest.sendCommand("Input.dispatchKeyEvent", {
- "type": "rawKeyDown",
- "windowsVirtualKeyCode": 9,
- "key": "Tab",
- });
- InspectorTest.sendCommand("Input.dispatchKeyEvent", {
- "type": "keyUp",
- "windowsVirtualKeyCode": 9,
- "key": "Tab",
- });
- }
-}
-
-</script>
-</head>
-<body onload="load()">
-<div id="inputs">
- <input onfocus="log('focus foo')" onblur="log('blur foo')" id="foo" autofocus>
- <input onfocus="log('focus bar')" onblur="log('blur bar')" id="bar">
- <input onfocus="log('focus baz')" onblur="log('blur baz')" id="baz">
-</div>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698