Index: third_party/WebKit/LayoutTests/inspector-protocol/dom/dom-focus.html |
diff --git a/third_party/WebKit/LayoutTests/inspector-protocol/dom/dom-focus.html b/third_party/WebKit/LayoutTests/inspector-protocol/dom/dom-focus.html |
deleted file mode 100644 |
index f2b78313ab2ec6a85a7c3c244a34fbca1a0d7142..0000000000000000000000000000000000000000 |
--- a/third_party/WebKit/LayoutTests/inspector-protocol/dom/dom-focus.html |
+++ /dev/null |
@@ -1,52 +0,0 @@ |
-<html> |
-<head> |
-<script type="text/javascript" src="../../http/tests/inspector-protocol/resources/inspector-protocol-test.js"></script> |
-<script> |
- |
-function logActiveElement() { |
- var el = document.activeElement; |
- log(el ? (el.id || el.tagName) : "(none)"); |
-} |
- |
-function test() |
-{ |
- InspectorTest.sendCommand("Runtime.evaluate", { "expression": "logActiveElement()" }); |
- |
- InspectorTest.sendCommand("DOM.getDocument", {}, onGotDocument); |
- |
- function onGotDocument(msg) { |
- if (msg.error) { |
- InspectorTest.log(msg.error.message); |
- InspectorTest.completeTest(); |
- return; |
- } |
- var node = msg.result.root; |
- InspectorTest.sendCommand("DOM.querySelector", { "nodeId": node.nodeId, "selector": "#second" }, onQuerySelector); |
- } |
- |
- function onQuerySelector(msg) { |
- if (msg.error) { |
- InspectorTest.log(msg.error.message); |
- InspectorTest.completeTest(); |
- return; |
- } |
- var node = msg.result; |
- InspectorTest.sendCommand("DOM.focus", { "nodeId": node.nodeId }, onFocus); |
- } |
- |
- function onFocus(msg) { |
- if (msg.error) |
- InspectorTest.log(msg.error); |
- |
- InspectorTest.sendCommand("Runtime.evaluate", { expression: 'logActiveElement()' }); |
- InspectorTest.completeTest(); |
- } |
-} |
- |
-</script> |
-</head> |
-<body onload="runTest()"> |
-<input></input> |
-<input id="second"></input> |
-</body> |
-</html> |