| 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/console-test.js"></script> | 4 <script src="../../../http/tests/inspector/console-test.js"></script> |
| 5 <script src="../../../http/tests/inspector/debugger-test.js"></script> | 5 <script src="../../../http/tests/inspector/debugger-test.js"></script> |
| 6 <script> | 6 <script> |
| 7 | 7 |
| 8 function testFunction() | 8 function testFunction() |
| 9 { | 9 { |
| 10 debugger; | 10 debugger; |
| 11 } | 11 } |
| 12 | 12 |
| 13 var test = function() | 13 var test = function() |
| 14 { | 14 { |
| 15 InspectorTest.addSniffer(WebInspector.Main.prototype, "inspect", inspect); | 15 InspectorTest.addSniffer(WebInspector.RuntimeModel.prototype, "_inspectReque
sted", inspect); |
| 16 InspectorTest.addSniffer(WebInspector.Revealer, "revealPromise", oneRevealPr
omise, true); | 16 InspectorTest.addSniffer(WebInspector.Revealer, "revealPromise", oneRevealPr
omise, true); |
| 17 | 17 |
| 18 function oneRevealPromise(node, revealPromise) | 18 function oneRevealPromise(node, revealPromise) |
| 19 { | 19 { |
| 20 if (!(node instanceof WebInspector.RemoteObject)) | 20 if (!(node instanceof WebInspector.RemoteObject)) |
| 21 return; | 21 return; |
| 22 revealPromise.then(updateFocusedNode); | 22 revealPromise.then(updateFocusedNode); |
| 23 } | 23 } |
| 24 | 24 |
| 25 function updateFocusedNode() | 25 function updateFocusedNode() |
| (...skipping 24 matching lines...) Expand all Loading... |
| 50 </script> | 50 </script> |
| 51 </head> | 51 </head> |
| 52 | 52 |
| 53 <body onload="runTest()"> | 53 <body onload="runTest()"> |
| 54 <p id="p1"> | 54 <p id="p1"> |
| 55 Tests that inspect() command line api works while on breakpoint. | 55 Tests that inspect() command line api works while on breakpoint. |
| 56 </p> | 56 </p> |
| 57 | 57 |
| 58 </body> | 58 </body> |
| 59 </html> | 59 </html> |
| OLD | NEW |