| 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 function onload() | 6 function onload() |
| 7 { | 7 { |
| 8 console.log("%cBlue!.", "color: blue;"); | 8 console.log("%cBlue!.", "color: blue;"); |
| 9 console.log("%cBlue! %cRed!", "color: blue;", "color: red;"); | 9 console.log("%cBlue! %cRed!", "color: blue;", "color: red;"); |
| 10 console.log("%cwww.google.com", "color: blue"); | |
| 11 runTest(); | 10 runTest(); |
| 12 } | 11 } |
| 13 | 12 |
| 14 function test() | 13 function test() |
| 15 { | 14 { |
| 16 InspectorTest.expandConsoleMessages(onExpanded); | 15 InspectorTest.expandConsoleMessages(onExpanded); |
| 17 | 16 |
| 18 function onExpanded() | 17 function onExpanded() |
| 19 { | 18 { |
| 20 InspectorTest.dumpConsoleMessagesWithStyles(); | 19 InspectorTest.dumpConsoleMessagesWithStyles(); |
| 21 InspectorTest.completeTest(); | 20 InspectorTest.completeTest(); |
| 22 } | 21 } |
| 23 } | 22 } |
| 24 </script> | 23 </script> |
| 25 </head> | 24 </head> |
| 26 | 25 |
| 27 <body onload="onload()"> | 26 <body onload="onload()"> |
| 28 <p>Tests that console logging dumps properly styled messages.</p> | 27 <p>Tests that console logging dumps properly styled messages.</p> |
| 29 </body> | 28 </body> |
| 30 </html> | 29 </html> |
| OLD | NEW |