| 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/debugger-test.js"></script> | 4 <script src="../../../http/tests/inspector/debugger-test.js"></script> |
| 5 <script> | 5 <script> |
| 6 var test = function() | 6 var test = function() |
| 7 { | 7 { |
| 8 function printExceptionDetails(exceptionDetails) | 8 function printExceptionDetails(exceptionDetails) |
| 9 { | 9 { |
| 10 InspectorTest.addResult("exceptionDetails:") | 10 InspectorTest.addResult("exceptionDetails:") |
| 11 InspectorTest.addResult(" " + exceptionDetails.text); | 11 InspectorTest.addResult(" " + exceptionDetails.text); |
| 12 InspectorTest.addResult(" line: " + exceptionDetails.line + ", column:
" + exceptionDetails.column); | 12 InspectorTest.addResult(" line: " + exceptionDetails.line + ", column:
" + exceptionDetails.column); |
| 13 | 13 |
| 14 var stack = exceptionDetails.stackTrace; | 14 var stack = exceptionDetails.stackTrace ? exceptionDetails.stackTrace.ca
llFrames : null; |
| 15 if (!stack) { | 15 if (!stack) { |
| 16 InspectorTest.addResult(" no stack trace attached to exceptionDeta
ils"); | 16 InspectorTest.addResult(" no stack trace attached to exceptionDeta
ils"); |
| 17 } else { | 17 } else { |
| 18 InspectorTest.addResult(" exceptionDetails stack trace:"); | 18 InspectorTest.addResult(" exceptionDetails stack trace:"); |
| 19 for (var i = 0; i < stack.length && i < 100; ++i) { | 19 for (var i = 0; i < stack.length && i < 100; ++i) { |
| 20 InspectorTest.addResult(" url: " + stack[i].url); | 20 InspectorTest.addResult(" url: " + stack[i].url); |
| 21 InspectorTest.addResult(" function: " + stack[i].functionN
ame); | 21 InspectorTest.addResult(" function: " + stack[i].functionN
ame); |
| 22 InspectorTest.addResult(" line: " + stack[i].lineNumber);
| 22 InspectorTest.addResult(" line: " + stack[i].lineNumber);
|
| 23 } | 23 } |
| 24 } | 24 } |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 } | 93 } |
| 94 ]); | 94 ]); |
| 95 } | 95 } |
| 96 </script> | 96 </script> |
| 97 </head> | 97 </head> |
| 98 <body onload="runTest()"> | 98 <body onload="runTest()"> |
| 99 <p>Tests separate compilation and run.</p> | 99 <p>Tests separate compilation and run.</p> |
| 100 <a href="https://bugs.webkit.org/show_bug.cgi?id=89646">Bug 89646.</a> | 100 <a href="https://bugs.webkit.org/show_bug.cgi?id=89646">Bug 89646.</a> |
| 101 </body> | 101 </body> |
| 102 </html> | 102 </html> |
| OLD | NEW |