3 <script src=
"../../http/tests/inspector/inspector-test.js"></script>
4 <script src=
"../../http/tests/inspector/console-test.js"></script>
8 InspectorTest
.evaluateInConsole("\
17 boo();", afterEvaluate
);
19 function afterEvaluate()
21 InspectorTest
.dumpConsoleMessages();
23 var viewMessages
= WebInspector
.ConsolePanel
._view()._visibleViewMessages
;
24 var uiMessage
= viewMessages
[viewMessages
.length
- 1];
25 var message
= uiMessage
.consoleMessage();
26 var stackTrace
= message
.stackTrace
;
28 if (stackTrace
.length
< 3) {
29 InspectorTest
.addResult('FAILED: Stack size too small');
31 for (var i
= 0; i
< 3; ++i
) {
32 var frame
= stackTrace
[i
];
33 InspectorTest
.addResult('call frame:' + frame
.functionName
+ ' at ' + frame
.url
+ ':' + frame
.lineNumber
);
36 InspectorTest
.completeTest();
42 <body onload=
"runTest()">
44 Tests that evaluating an expression with an exception in the console provide correct exception information.