| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 <script type="text/javascript" src="../../http/tests/inspector-protocol/inspecto
r-protocol-test.js"></script> | 3 <script type="text/javascript" src="../../http/tests/inspector-protocol/inspecto
r-protocol-test.js"></script> |
| 4 <script> | 4 <script> |
| 5 | 5 |
| 6 function test() | 6 function test() |
| 7 { | 7 { |
| 8 var nodeInfo = {}; | 8 var nodeInfo = {}; |
| 9 InspectorTest.eventHandler["DOM.setChildNodes"] = setChildNodes; | 9 InspectorTest.eventHandler["DOM.setChildNodes"] = setChildNodes; |
| 10 InspectorTest.eventHandler["Overlay.inspectNodeRequested"] = inspectNodeRequ
ested; | 10 InspectorTest.eventHandler["DOM.inspectNodeRequested"] = inspectNodeRequeste
d; |
| 11 InspectorTest.sendCommand("DOM.enable", {}); | 11 InspectorTest.sendCommand("DOM.enable", {}); |
| 12 InspectorTest.sendCommand("Overlay.enable", {}); | 12 InspectorTest.sendCommand("DOM.setInspectMode", { "mode": "searchForNode", h
ighlightConfig: {} }, onSetModeEnabled); |
| 13 InspectorTest.sendCommand("Overlay.setInspectMode", { "mode": "searchForNode
", highlightConfig: {} }, onSetModeEnabled); | |
| 14 | 13 |
| 15 function onSetModeEnabled(message) | 14 function onSetModeEnabled(message) |
| 16 { | 15 { |
| 17 if (message.error) { | 16 if (message.error) { |
| 18 InspectorTest.log(message.error.message); | 17 InspectorTest.log(message.error.message); |
| 19 InspectorTest.completeTest(); | 18 InspectorTest.completeTest(); |
| 20 return; | 19 return; |
| 21 } | 20 } |
| 22 | 21 |
| 23 InspectorTest.sendCommand("Input.dispatchMouseEvent", { "type": "mouseMo
ved", "button": "left", "clickCount": 1, "x": 150, "y": 150 }); | 22 InspectorTest.sendCommand("Input.dispatchMouseEvent", { "type": "mouseMo
ved", "button": "left", "clickCount": 1, "x": 150, "y": 150 }); |
| (...skipping 21 matching lines...) Expand all Loading... |
| 45 InspectorTest.completeTest(); | 44 InspectorTest.completeTest(); |
| 46 } | 45 } |
| 47 } | 46 } |
| 48 | 47 |
| 49 </script> | 48 </script> |
| 50 </head> | 49 </head> |
| 51 <body onload="runTest()"> | 50 <body onload="runTest()"> |
| 52 <div style="position:absolute;top:100;left:100;width:100;height:100;background:b
lack"></div> | 51 <div style="position:absolute;top:100;left:100;width:100;height:100;background:b
lack"></div> |
| 53 </body> | 52 </body> |
| 54 </html> | 53 </html> |
| OLD | NEW |