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