Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(167)

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/console/console-uncaught-promise.html

Issue 2493373002: DevTools: rename WebInspector into modules. (Closed)
Patch Set: for bots Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698