Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / inspector-protocol / accessibility / accessibility-getAXNode.html
blob0759862ff1ab614ef7de6d5d611ba8fb451bcd99
1 <html>
2 <head>
3 <script type="text/javascript" src="../../http/tests/inspector-protocol/inspector-protocol-test.js"></script>
4 <script>
6 function test()
8 InspectorTest.sendCommand("DOM.getDocument", {}, onGotDocument);
10 function onGotDocument(msg)
12 if (msg.error) {
13 InspectorTest.log(msg.error.message);
14 InspectorTest.completeTest();
15 return;
17 var rootNode = msg.result.root;
18 InspectorTest.sendCommand("DOM.querySelector", { "nodeId": rootNode.nodeId, "selector": "input" }, onQuerySelector);
21 function onQuerySelector(msg)
23 if (msg.error) {
24 InspectorTest.log(msg.error.message);
25 InspectorTest.completeTest();
26 return;
28 var node = msg.result;
29 InspectorTest.sendCommand("Accessibility.getAXNode", { "nodeId": node.nodeId }, onGotAccessibilityNode.bind(null, node));
32 function onGotAccessibilityNode(domNode, msg)
34 if (msg.error) {
35 InspectorTest.log(msg.error.message);
36 InspectorTest.completeTest();
37 return;
40 // nodeId isn't always the same, so set it to a known value if it's present
41 if (msg.result && "accessibilityNode" in msg.result && "nodeId" in msg.result.accessibilityNode)
42 msg.result.accessibilityNode.nodeId = "3";
44 InspectorTest.log('result: ' + JSON.stringify(msg.result, null, " "));
45 InspectorTest.completeTest();
49 </script>
50 </head>
51 <body onLoad="runTest();">
52 <input type="text"></input>
53 </body>
54 </html>