Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <html> | |
| 2 <head> | |
| 3 <script src="../inspector/inspector-test.js"></script> | |
| 4 <script src="../inspector/console-test.js"></script> | |
| 5 <script type="text/javascript"> | |
| 6 function onload() | |
| 7 { | |
| 8 if (window.testRunner) | |
| 9 testRunner.waitUntilDone(); | |
| 10 setTimeout(showInspectorAndRunTest, 0); | |
| 11 | |
| 12 var scriptContents = "function foo() { FAIL.FAIL; } \n //# sourceURL=foo2.js "; | |
| 13 eval(scriptContents); | |
| 14 foo(); | |
| 15 //# sourceURL=outer_src | |
|
vsevik
2014/04/30 15:16:59
I don't think this is needed here (inline script u
kozyatinskiy1
2014/04/30 16:08:04
Done.
| |
| 16 } | |
| 17 | |
| 18 | |
| 19 function showInspectorAndRunTest() | |
| 20 { | |
| 21 if (window.testRunner) | |
| 22 testRunner.showWebInspector(); | |
| 23 runTest(); | |
| 24 } | |
| 25 | |
| 26 function test() | |
| 27 { | |
| 28 InspectorTest.expandConsoleMessages(); | |
| 29 InspectorTest.dumpConsoleMessages(); | |
| 30 InspectorTest.addResult("TEST COMPLETE"); | |
| 31 InspectorTest.completeTest(); | |
| 32 } | |
| 33 </script> | |
| 34 </head> | |
| 35 <body onload="onload()"> | |
| 36 <p>Tests that when exception happens before inspector is open source url is corr ectly shown in console.</p> | |
| 37 </body> | |
| 38 </html> | |
| OLD | NEW |