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 console.clear(); | 10 console.clear(); |
(...skipping 27 matching lines...) Expand all Loading... |
38 }, 0); | 38 }, 0); |
39 } | 39 } |
40 | 40 |
41 function test() | 41 function test() |
42 { | 42 { |
43 InspectorTest.setQuiet(true); | 43 InspectorTest.setQuiet(true); |
44 InspectorTest.startDebuggerTest(step1); | 44 InspectorTest.startDebuggerTest(step1); |
45 | 45 |
46 function step1() | 46 function step1() |
47 { | 47 { |
48 InspectorTest.addConsoleViewSniffer(addMessage, true); | |
49 InspectorTest.runTestFunctionAndWaitUntilPaused(didPause); | 48 InspectorTest.runTestFunctionAndWaitUntilPaused(didPause); |
50 } | 49 } |
51 | 50 |
52 function didPause(callFrames, reason, breakpointIds, asyncStackTrace) | 51 function didPause(callFrames, reason, breakpointIds, asyncStackTrace) |
53 { | 52 { |
| 53 InspectorTest.addConsoleViewSniffer(addMessage, true); |
54 InspectorTest.evaluateInPage("runPromisesFromInspector()", resumeExecuti
on); | 54 InspectorTest.evaluateInPage("runPromisesFromInspector()", resumeExecuti
on); |
55 } | 55 } |
56 | 56 |
57 function resumeExecution() | 57 function resumeExecution() |
58 { | 58 { |
59 InspectorTest.resumeExecution(); | 59 InspectorTest.resumeExecution(); |
60 } | 60 } |
61 | 61 |
62 function addMessage(uiMessage) | 62 function addMessage(uiMessage) |
63 { | 63 { |
(...skipping 10 matching lines...) Expand all Loading... |
74 </script> | 74 </script> |
75 </head> | 75 </head> |
76 | 76 |
77 <body onload="runTest()"> | 77 <body onload="runTest()"> |
78 <p> | 78 <p> |
79 Tests unhandled promise that was rejected with a DOM exception. | 79 Tests unhandled promise that was rejected with a DOM exception. |
80 </p> | 80 </p> |
81 | 81 |
82 </body> | 82 </body> |
83 </html> | 83 </html> |
OLD | NEW |