| 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("%chttp://%cwww.google.com%c:%d%c/%c:123%c:456", "color:lightgra
y", "color:blue", "color:orange", 80, "color:lightgray", "color:green", "color:r
ed", 12); |
| 9 console.log("%cBlue! %cRed!", "color: blue;", "color: red;"); | 9 console.log("%cwww.%s", "color:lightgray", "google.com", 12); |
| 10 console.log("%cwww.google.com", "color: blue"); | 10 console.log("%cwww.google.com", "color: blue"); |
| 11 console.log("%cwww.%s 12", "color:lightgray", "google.com"); |
| 12 console.log('www.%s.c%co%sww.chromium.com','google','color:red','m w'); |
| 13 |
| 11 runTest(); | 14 runTest(); |
| 12 } | 15 } |
| 13 | 16 |
| 14 function test() | 17 function test() |
| 15 { | 18 { |
| 16 InspectorTest.expandConsoleMessages(onExpanded); | 19 InspectorTest.expandConsoleMessages(onExpanded); |
| 17 | 20 |
| 18 function onExpanded() | 21 function onExpanded() |
| 19 { | 22 { |
| 20 InspectorTest.dumpConsoleMessagesWithStyles(); | 23 InspectorTest.dumpConsoleMessagesWithStyles(); |
| 21 InspectorTest.completeTest(); | 24 InspectorTest.completeTest(); |
| 22 } | 25 } |
| 23 } | 26 } |
| 24 </script> | 27 </script> |
| 25 </head> | 28 </head> |
| 26 | 29 |
| 27 <body onload="onload()"> | 30 <body onload="onload()"> |
| 28 <p>Tests that console logging dumps properly styled messages.</p> | 31 <p>Tests that console logging dumps properly linkified messages.</p> |
| 29 </body> | 32 </body> |
| 30 </html> | 33 </html> |
| OLD | NEW |