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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector-protocol/dom/dom-getNodeForLocation-skip-shadow.html

Issue 2763913002: Allow DOM.getNodeForLocation to skip to nearest non-shadow ancestor (Closed)
Patch Set: feedback Created 3 years, 9 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 unified diff | Download patch
OLDNEW
(Empty)
1 <html>
2 <head>
3 <script type="text/javascript" src="../../http/tests/inspector-protocol/inspecto r-protocol-test.js"></script>
4 <script>
5
6 function test()
7 {
8 var nodeInfo = {};
9 InspectorTest.eventHandler["DOM.setChildNodes"] = setChildNodes;
10 InspectorTest.sendCommand("DOM.enable", {});
11 InspectorTest.sendCommand("DOM.getNodeForLocation", {
12 "x": 10,
13 "y": 10,
14 "includeUserAgentShadowDOM": false
15 }, onGetNodeForLocation);
16
17 function onGetNodeForLocation(message)
18 {
19 if (message.error) {
20 InspectorTest.log(message.error.message);
21 InspectorTest.completeTest();
22 return;
23 }
24 var nodeId = message.result.nodeId;
25 InspectorTest.logObject(nodeInfo[nodeId], "Node: ", ["backendNodeId", "p arentId", "nodeId"]);
26 InspectorTest.completeTest();
27 }
28
29 function setChildNodes(message)
30 {
31 var nodes = message.params.nodes;
32 for (var i = 0; i < nodes.length; ++i) {
33 nodeInfo[nodes[i].nodeId] = nodes[i];
34 delete nodes[i].nodeId;
35 }
36 }
37 }
38
39 </script>
40 </head>
41 <body onload="runTest()">
42 <form action="#">
43 <input type="text" style="position:absolute;top:0;left:0;width:100;height:10 0" />
44 </form>
45 </body>
46 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698