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