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 var log = console.log; |
7 console.log('log'); | 7 log(1); |
8 console.debug('debug'); | 8 var info = console.info; |
9 console.info('info'); | 9 info(2); |
10 console.warn('warn'); | 10 var error = console.error; |
11 console.error('error'); | 11 error(3); |
| 12 var warn = console.warn; |
| 13 warn(4); |
12 | 14 |
13 function test() | 15 function test() |
14 { | 16 { |
15 InspectorTest.dumpConsoleMessages(); | 17 InspectorTest.dumpConsoleMessages(); |
16 InspectorTest.completeTest(); | 18 InspectorTest.completeTest(); |
17 } | 19 } |
18 | |
19 </script> | 20 </script> |
20 </head> | 21 </head> |
21 | |
22 <body onload="runTest()"> | 22 <body onload="runTest()"> |
23 <p> | 23 <p>Test that console.log can be called without console receiver.</p> |
24 Tests that Web Inspector won't crash if some console have been logged by the tim
e it's opening. | |
25 </p> | |
26 | |
27 </body> | 24 </body> |
28 </html> | 25 </html> |
OLD | NEW |