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

Unified Diff: third_party/WebKit/LayoutTests/inspector-protocol/accessibility/accessibility-getAXNode.html

Issue 2390783006: [DevTools] Accessibility: Show siblings and children of selected node (Closed)
Patch Set: Rebase tests again and be consistent about backendDOMNodeId Created 4 years, 1 month 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/accessibility/accessibility-getAXNode.html
diff --git a/third_party/WebKit/LayoutTests/inspector-protocol/accessibility/accessibility-getAXNode.html b/third_party/WebKit/LayoutTests/inspector-protocol/accessibility/accessibility-getAXNode.html
deleted file mode 100644
index 8e9e328872c4e1a513287f27269fe1b7b7128f02..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/inspector-protocol/accessibility/accessibility-getAXNode.html
+++ /dev/null
@@ -1,54 +0,0 @@
-<html>
-<head>
-<script type="text/javascript" src="../../http/tests/inspector-protocol/inspector-protocol-test.js"></script>
-<script>
-
-function test()
-{
- InspectorTest.sendCommand("DOM.getDocument", {}, onGotDocument);
-
- function onGotDocument(msg)
- {
- if (msg.error) {
- InspectorTest.log(msg.error.message);
- InspectorTest.completeTest();
- return;
- }
- var rootNode = msg.result.root;
- InspectorTest.sendCommand("DOM.querySelector", { "nodeId": rootNode.nodeId, "selector": "input" }, onQuerySelector);
- }
-
- function onQuerySelector(msg)
- {
- if (msg.error) {
- InspectorTest.log(msg.error.message);
- InspectorTest.completeTest();
- return;
- }
- var node = msg.result;
- InspectorTest.sendCommand("Accessibility.getAXNodeChain", { "nodeId": node.nodeId, "fetchAncestors": false }, onGotAccessibilityNode.bind(null, node));
- }
-
- function onGotAccessibilityNode(domNode, msg)
- {
- if (msg.error) {
- InspectorTest.log(msg.error.message);
- InspectorTest.completeTest();
- return;
- }
-
- // nodeId isn't always the same, so set it to a known value if it's present
- if (msg.result && "nodes" in msg.result && "nodeId" in msg.result.nodes[0])
- msg.result.nodes[0].nodeId = "3";
-
- InspectorTest.log('result: ' + JSON.stringify(msg.result, null, " "));
- InspectorTest.completeTest();
- }
-}
-
-</script>
-</head>
-<body onLoad="runTest();">
- <input type="text"></input>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698