| 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> | 5 <script> |
| 6 | 6 |
| 7 var tested = 0; | 7 var tested = 0; |
| 8 function runNextPromiseTest() | 8 function runNextPromiseTest() |
| 9 { | 9 { |
| 10 ++tested; | 10 ++tested; |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 } | 89 } |
| 90 | 90 |
| 91 function promiseTest9() | 91 function promiseTest9() |
| 92 { | 92 { |
| 93 navigator.serviceWorker.register('404'); | 93 navigator.serviceWorker.register('404'); |
| 94 } | 94 } |
| 95 | 95 |
| 96 function test() | 96 function test() |
| 97 { | 97 { |
| 98 InspectorTest.addConsoleViewSniffer(checkConsoleMessages, true); | 98 InspectorTest.addConsoleViewSniffer(checkConsoleMessages, true); |
| 99 WebInspector.console.showPromise(); | 99 Common.console.showPromise(); |
| 100 | 100 |
| 101 checkConsoleMessages(); | 101 checkConsoleMessages(); |
| 102 | 102 |
| 103 function checkConsoleMessages() | 103 function checkConsoleMessages() |
| 104 { | 104 { |
| 105 InspectorTest.evaluateInPage("runNextPromiseTest()", callback); | 105 InspectorTest.evaluateInPage("runNextPromiseTest()", callback); |
| 106 | 106 |
| 107 function callback(result) | 107 function callback(result) |
| 108 { | 108 { |
| 109 if (!result.value) | 109 if (!result.value) |
| (...skipping 11 matching lines...) Expand all Loading... |
| 121 </script> | 121 </script> |
| 122 </head> | 122 </head> |
| 123 | 123 |
| 124 <body onload="runTest()"> | 124 <body onload="runTest()"> |
| 125 <p> | 125 <p> |
| 126 Tests that uncaught promise rejections are logged into console. | 126 Tests that uncaught promise rejections are logged into console. |
| 127 </p> | 127 </p> |
| 128 | 128 |
| 129 </body> | 129 </body> |
| 130 </html> | 130 </html> |
| OLD | NEW |