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

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

Issue 2955943002: DevTools: migrate inspector-protocol/dom tests to a new test runner (Closed)
Patch Set: rebaseline 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/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>

Powered by Google App Engine
This is Rietveld 408576698