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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector-protocol/accessibility/accessibility-getNodeWithNoAXNode.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 unified diff | Download patch
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <script type="text/javascript" src="../../http/tests/inspector-protocol/dom-prot ocol-test.js"></script>
3 <script type="text/javascript" src="../../http/tests/inspector-protocol/inspecto r-protocol-test.js"></script> 4 <script type="text/javascript" src="../../http/tests/inspector-protocol/inspecto r-protocol-test.js"></script>
5 <script type="text/javascript" src="./accessibility-dumpAccessibilityNodes.js">< /script>
4 <script> 6 <script>
5 7
6 function test() 8 function test()
7 { 9 {
8 InspectorTest.sendCommand("DOM.getDocument", {}, onGotDocument); 10 InspectorTest.sendCommand("DOM.getDocument", {}, (msg) => {
9 11 InspectorTest.dumpAccessibilityNodesBySelectorAndCompleteTest("head", fa lse, msg);
10 function onGotDocument(msg) 12 });
11 {
12 if (msg.error) {
13 InspectorTest.log(msg.error.message);
14 InspectorTest.completeTest();
15 return;
16 }
17 var rootNode = msg.result.root;
18 InspectorTest.sendCommand("DOM.querySelector", { "nodeId": rootNode.node Id, "selector": "head" }, onQuerySelector);
19 }
20
21 function onQuerySelector(msg)
22 {
23 if (msg.error) {
24 InspectorTest.log(msg.error.message);
25 InspectorTest.completeTest();
26 return;
27 }
28 var node = msg.result;
29 InspectorTest.sendCommand("Accessibility.getAXNodeChain", { "nodeId": no de.nodeId, "fetchAncestors": false }, onGotAccessibilityNode);
30 }
31
32 function onGotAccessibilityNode(msg)
33 {
34 if (msg.error) {
35 InspectorTest.log(msg.error.message);
36 InspectorTest.completeTest();
37 return;
38 }
39
40 InspectorTest.log('result: ' + JSON.stringify(msg.result, null, " "));
41 InspectorTest.completeTest();
42 }
43 } 13 }
44 14
45 </script> 15 </script>
46 </head> 16 </head>
47 <body onLoad="runTest();"> 17 <body onLoad="runTest();">
48 <input type="text"></input> 18 <input type="text"></input>
49 </body> 19 </body>
50 </html> 20 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698