| 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 var globalObj = { | 8 var globalObj = { |
| 9 func: function() | 9 func: function() |
| 10 { | 10 { |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 InspectorTest.evaluateInConsole("localObj.func()", step5); | 58 InspectorTest.evaluateInConsole("localObj.func()", step5); |
| 59 } | 59 } |
| 60 | 60 |
| 61 function step5() | 61 function step5() |
| 62 { | 62 { |
| 63 InspectorTest.evaluateInConsole("globalObj.func()", dumpConsoleMessages)
; | 63 InspectorTest.evaluateInConsole("globalObj.func()", dumpConsoleMessages)
; |
| 64 } | 64 } |
| 65 | 65 |
| 66 function dumpConsoleMessages() | 66 function dumpConsoleMessages() |
| 67 { | 67 { |
| 68 InspectorTest.addResult("Dumping console messages:\n"); | 68 InspectorTest.deprecatedRunAfterPendingDispatches(() => { |
| 69 InspectorTest.dumpConsoleMessages(false, false, formatter); | 69 InspectorTest.addResult("Dumping console messages:\n"); |
| 70 InspectorTest.completeDebuggerTest(); | 70 InspectorTest.dumpConsoleMessages(); |
| 71 } | 71 InspectorTest.completeDebuggerTest(); |
| 72 | 72 }); |
| 73 function formatter(element, message) { | |
| 74 return message.messageText; | |
| 75 } | 73 } |
| 76 } | 74 } |
| 77 | 75 |
| 78 </script> | 76 </script> |
| 79 </head> | 77 </head> |
| 80 | 78 |
| 81 <body onload="runTest()"> | 79 <body onload="runTest()"> |
| 82 <p> | 80 <p> |
| 83 Tests that evaluation in console that throws works fine when script is paused. | 81 Tests that evaluation in console that throws works fine when script is paused. |
| 84 </p> | 82 </p> |
| 85 </body> | 83 </body> |
| 86 </html> | 84 </html> |
| OLD | NEW |