| 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 | 6 |
| 7 function evalSource(name) | 7 function evalSource(name) |
| 8 { | 8 { |
| 9 function b() | 9 function b() |
| 10 { | 10 { |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 { | 35 { |
| 36 InspectorTest.evaluateInPage("doEvalWithSourceURL()", step2.bind(this)); | 36 InspectorTest.evaluateInPage("doEvalWithSourceURL()", step2.bind(this)); |
| 37 | 37 |
| 38 function step2() | 38 function step2() |
| 39 { | 39 { |
| 40 InspectorTest.evaluateInPage("doAnonymousEvalWith()", step3.bind(this)); | 40 InspectorTest.evaluateInPage("doAnonymousEvalWith()", step3.bind(this)); |
| 41 } | 41 } |
| 42 | 42 |
| 43 function step3() | 43 function step3() |
| 44 { | 44 { |
| 45 if (WebInspector.ConsoleView.instance()._visibleViewMessages.length < 2) | 45 if (Console.ConsoleView.instance()._visibleViewMessages.length < 2) |
| 46 InspectorTest.addConsoleSniffer(step3); | 46 InspectorTest.addConsoleSniffer(step3); |
| 47 else | 47 else |
| 48 step4(); | 48 step4(); |
| 49 } | 49 } |
| 50 | 50 |
| 51 function step4() | 51 function step4() |
| 52 { | 52 { |
| 53 InspectorTest.expandConsoleMessages(onExpanded); | 53 InspectorTest.expandConsoleMessages(onExpanded); |
| 54 } | 54 } |
| 55 | 55 |
| 56 function onExpanded() | 56 function onExpanded() |
| 57 { | 57 { |
| 58 InspectorTest.dumpConsoleMessages(); | 58 InspectorTest.dumpConsoleMessages(); |
| 59 InspectorTest.completeTest(); | 59 InspectorTest.completeTest(); |
| 60 } | 60 } |
| 61 } | 61 } |
| 62 | 62 |
| 63 </script> | 63 </script> |
| 64 </head> | 64 </head> |
| 65 | 65 |
| 66 <body onload="runTest()"> | 66 <body onload="runTest()"> |
| 67 <p> | 67 <p> |
| 68 Tests that when uncaught exception in eval'ed script ending | 68 Tests that when uncaught exception in eval'ed script ending |
| 69 with //# sourceURL=url is logged into console, its stack trace | 69 with //# sourceURL=url is logged into console, its stack trace |
| 70 will have the url as the script source. <a href="https://bugs.webkit.org/show_bu
g.cgi?id=47252">Bug 47252.</a> | 70 will have the url as the script source. <a href="https://bugs.webkit.org/show_bu
g.cgi?id=47252">Bug 47252.</a> |
| 71 </p> | 71 </p> |
| 72 | 72 |
| 73 </body> | 73 </body> |
| 74 </html> | 74 </html> |
| OLD | NEW |