| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 <script src="../inspector-test.js"></script> | 3 <script src="../inspector-test.js"></script> |
| 4 <script src="../console-test.js"></script> | 4 <script src="../console-test.js"></script> |
| 5 <script> | 5 <script> |
| 6 function loadScript() | 6 function loadScript() |
| 7 { | 7 { |
| 8 var s = document.createElement("script"); | 8 var s = document.createElement("script"); |
| 9 s.src = "resources/script-as-text.php"; | 9 s.src = "resources/script-as-text.php"; |
| 10 document.body.appendChild(s); | 10 document.body.appendChild(s); |
| 11 } | 11 } |
| 12 | 12 |
| 13 function test() | 13 function test() |
| 14 { | 14 { |
| 15 InspectorTest.addConsoleSniffer(step1); | 15 InspectorTest.addConsoleSniffer(step1); |
| 16 InspectorTest.evaluateInPage("loadScript()"); | 16 InspectorTest.evaluateInPage("loadScript()"); |
| 17 | 17 |
| 18 function step1() | 18 function step1() |
| 19 { | 19 { |
| 20 InspectorTest.dumpConsoleMessages(); | 20 InspectorTest.dumpConsoleMessages(); |
| 21 InspectorTest.completeTest(); | 21 InspectorTest.completeTest(); |
| 22 } | 22 } |
| 23 } | 23 } |
| 24 </script> | 24 </script> |
| 25 </head> | 25 </head> |
| 26 <body onload="runTest()"> | 26 <body onload="runTest()"> |
| 27 <p>Tests console message when script is loaded with incorrect text/html mime typ
e.</p> | 27 <p>Tests console is empty when script is loaded with incorrect text/html mime ty
pe.</p> |
| 28 <a href="https://bugs.webkit.org/show_bug.cgi?id=69972">Bug 69972</a> | |
| 29 </body> | 28 </body> |
| 30 </html> | 29 </html> |
| OLD | NEW |