| 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 src="../../http/tests/inspector/workspace-test.js"></script> | 5 |
| 6 <script src="resources/stack-with-sourceUrl.js"></script> | 6 <script src="resources/stack-with-sourceUrl.js"></script> |
| 7 <script src="resources/stack-with-sourceMap.js"></script> | 7 <script src="resources/stack-with-sourceMap.js"></script> |
| 8 <script> | 8 <script> |
| 9 function forStack() | 9 function forStack() |
| 10 { | 10 { |
| 11 console.log(new Error("line\nbreak").stack); | 11 console.log(new Error("line\nbreak").stack); |
| 12 } | 12 } |
| 13 | 13 |
| 14 forStack(); | 14 forStack(); |
| 15 | 15 |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 //# sourceURL=console-log-linkify-stack-in-errors.html | 67 //# sourceURL=console-log-linkify-stack-in-errors.html |
| 68 </script> | 68 </script> |
| 69 | 69 |
| 70 <script> | 70 <script> |
| 71 function test() | 71 function test() |
| 72 { | 72 { |
| 73 InspectorTest.evaluateInPageWithTimeout("failure()"); | 73 InspectorTest.evaluateInPageWithTimeout("failure()"); |
| 74 InspectorTest.waitUntilMessageReceived(waitForUISourceCode); | 74 InspectorTest.waitUntilMessageReceived(waitForUISourceCode); |
| 75 function waitForUISourceCode() | 75 function waitForUISourceCode() |
| 76 { | 76 { |
| 77 InspectorTest.waitForGivenUISourceCode("stack-with-sourceMap.coffee", du
mpMessages); | 77 InspectorTest.waitForUISourceCode(dumpMessages, "stack-with-sourceMap.co
ffee"); |
| 78 } | 78 } |
| 79 | 79 |
| 80 function dumpMessages() | 80 function dumpMessages() |
| 81 { | 81 { |
| 82 InspectorTest.dumpConsoleMessages(false, true); | 82 InspectorTest.dumpConsoleMessages(false, true); |
| 83 InspectorTest.completeTest(); | 83 InspectorTest.completeTest(); |
| 84 } | 84 } |
| 85 } | 85 } |
| 86 </script> | 86 </script> |
| 87 </head> | 87 </head> |
| 88 <body onload="runTest()"> | 88 <body onload="runTest()"> |
| 89 <p> | 89 <p> |
| 90 Test that console.log(new Error().stack) would linkify links in stacks for sourc
eUrls and sourceMaps <a href="http://crbug.com/424001">Bug 424001.</a> | 90 Test that console.log(new Error().stack) would linkify links in stacks for sourc
eUrls and sourceMaps <a href="http://crbug.com/424001">Bug 424001.</a> |
| 91 </p> | 91 </p> |
| 92 </body> | 92 </body> |
| 93 </html> | 93 </html> |
| OLD | NEW |