Chromium Code Reviews| 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/debugger-test.js"></script> | 5 <script src="../../../http/tests/inspector/debugger-test.js"></script> |
| 5 <script src="../../../http/tests/inspector/network-test.js"></script> | 6 <script src="../../../http/tests/inspector/network-test.js"></script> |
| 6 <script src="../../../http/tests/inspector/resources-test.js"></script> | 7 <script src="../../../http/tests/inspector/resources-test.js"></script> |
| 7 <script> | 8 <script> |
| 8 function addErrorToConsole() | 9 function addErrorToConsole() |
| 9 { | 10 { |
| 10 console.error("test error message"); | 11 console.error("test error message"); |
| 11 } | 12 } |
| 12 | 13 |
| 13 function methodForBreakpoint() | 14 function methodForBreakpoint() |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 49 InspectorTest.addSniffer(WebInspector.UISourceCodeFrame.prototyp e, "_addMessageToSource", didAddMessage); | 50 InspectorTest.addSniffer(WebInspector.UISourceCodeFrame.prototyp e, "_addMessageToSource", didAddMessage); |
| 50 InspectorTest.addSniffer(WebInspector.UISourceCodeFrame.prototyp e, "_removeMessageFromSource", didRemoveMessage); | 51 InspectorTest.addSniffer(WebInspector.UISourceCodeFrame.prototyp e, "_removeMessageFromSource", didRemoveMessage); |
| 51 InspectorTest.evaluateInPage("addErrorToConsole()"); | 52 InspectorTest.evaluateInPage("addErrorToConsole()"); |
| 52 } | 53 } |
| 53 | 54 |
| 54 function didAddMessage(message) | 55 function didAddMessage(message) |
| 55 { | 56 { |
| 56 if (this !== shownSourceFrame) | 57 if (this !== shownSourceFrame) |
| 57 return; | 58 return; |
| 58 InspectorTest.addResult("Message added to source frame: " + mess age.text()); | 59 InspectorTest.addResult("Message added to source frame: " + mess age.text()); |
| 59 setImmediate(function() { InspectorTest.consoleModel.requestClea rMessages(); }); | 60 setImmediate(function() { WebInspector.ConsoleView.clearConsole( ); }); |
|
kozy
2016/07/18 19:32:54
() => WebInspector.ConsoleView.clearConsole()
| |
| 60 } | 61 } |
| 61 | 62 |
| 62 function didRemoveMessage(message) | 63 function didRemoveMessage(message) |
| 63 { | 64 { |
| 64 if (this !== shownSourceFrame) | 65 if (this !== shownSourceFrame) |
| 65 return; | 66 return; |
| 66 InspectorTest.addResult("Message removed from source frame: " + message.text()); | 67 InspectorTest.addResult("Message removed from source frame: " + message.text()); |
| 67 next(); | 68 next(); |
| 68 } | 69 } |
| 69 }, | 70 }, |
| (...skipping 25 matching lines...) Expand all Loading... | |
| 95 | 96 |
| 96 </head> | 97 </head> |
| 97 | 98 |
| 98 <body onload="runTest()"> | 99 <body onload="runTest()"> |
| 99 <p>Tests that it's possible to set breakpoint in source frame, and that | 100 <p>Tests that it's possible to set breakpoint in source frame, and that |
| 100 source frame displays breakpoints and console errors. | 101 source frame displays breakpoints and console errors. |
| 101 </p> | 102 </p> |
| 102 | 103 |
| 103 </body> | 104 </body> |
| 104 </html> | 105 </html> |
| OLD | NEW |