OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <script src="../../../http/tests/inspector/inspector-test.js"></script> | 3 <script src="../../../http/tests/inspector/inspector-test.js"></script> |
4 <script src="../../../http/tests/inspector/debugger-test.js"></script> | 4 <script src="../../../http/tests/inspector/debugger-test.js"></script> |
5 <script> | 5 <script> |
6 | 6 |
7 function testFunction() | 7 function testFunction() |
8 { | 8 { |
9 debugger; | 9 debugger; |
10 } | 10 } |
11 | 11 |
12 var test = function() | 12 var test = function() |
13 { | 13 { |
14 InspectorTest.addSniffer(WebInspector.Main.prototype, "inspect", inspect); | 14 InspectorTest.addSniffer(WebInspector.Main.prototype, "inspect", inspect); |
15 InspectorTest.addSniffer(WebInspector.Revealer, "reveal", updateFocusedNode)
; | 15 InspectorTest.addSniffer(WebInspector.Revealer, "reveal", updateFocusedNode,
true); |
16 | 16 |
17 function updateFocusedNode(node) | 17 function updateFocusedNode(node) |
18 { | 18 { |
19 if (!(node instanceof WebInspector.DOMNode)) | 19 if (!(node instanceof WebInspector.DOMNode)) |
20 return; | 20 return; |
21 | 21 |
22 InspectorTest.addResult("Selected node id: '" + WebInspector.panels.elem
ents.selectedDOMNode().getAttribute("id") + "'."); | 22 InspectorTest.addResult("Selected node id: '" + WebInspector.panels.elem
ents.selectedDOMNode().getAttribute("id") + "'."); |
23 InspectorTest.completeDebuggerTest(); | 23 InspectorTest.completeDebuggerTest(); |
24 } | 24 } |
25 | 25 |
(...skipping 19 matching lines...) Expand all Loading... |
45 </script> | 45 </script> |
46 </head> | 46 </head> |
47 | 47 |
48 <body onload="runTest()"> | 48 <body onload="runTest()"> |
49 <p id="p1"> | 49 <p id="p1"> |
50 Tests that inspect() command line api works while on breakpoint. | 50 Tests that inspect() command line api works while on breakpoint. |
51 </p> | 51 </p> |
52 | 52 |
53 </body> | 53 </body> |
54 </html> | 54 </html> |
OLD | NEW |