Index: LayoutTests/inspector/console/console-error-on-call-frame.html |
diff --git a/LayoutTests/inspector/debugger/debugger-reload-on-pause.html b/LayoutTests/inspector/console/console-error-on-call-frame.html |
similarity index 54% |
copy from LayoutTests/inspector/debugger/debugger-reload-on-pause.html |
copy to LayoutTests/inspector/console/console-error-on-call-frame.html |
index a561b9c849d10fa55aa6484941c17f4b2c35722a..756acd876fa12fd6fd8262a6db2581ef4c9fb5d8 100644 |
--- a/LayoutTests/inspector/debugger/debugger-reload-on-pause.html |
+++ b/LayoutTests/inspector/console/console-error-on-call-frame.html |
@@ -2,14 +2,15 @@ |
<head> |
<script src="../../http/tests/inspector/inspector-test.js"></script> |
<script src="../../http/tests/inspector/debugger-test.js"></script> |
+<script src="../../http/tests/inspector/console-test.js"></script> |
<script> |
- |
function testFunction() |
{ |
+ var i = 0; |
debugger; |
} |
-var test = function() |
+function test() |
{ |
InspectorTest.startDebuggerTest(step1); |
@@ -20,22 +21,24 @@ var test = function() |
function step2() |
{ |
- InspectorTest.reloadPage(step3); |
+ InspectorTest.evaluateInConsole("console.error(42)", step3); |
} |
function step3() |
{ |
+ InspectorTest.resumeExecution(step4); |
+ } |
+ |
+ function step4() |
+ { |
+ InspectorTest.expandConsoleMessages(); |
+ InspectorTest.dumpConsoleMessages(); |
InspectorTest.completeDebuggerTest(); |
} |
} |
- |
</script> |
</head> |
- |
<body onload="runTest()"> |
-<p> |
-Tests "reload" from within inspector window while on pause. |
-</p> |
- |
+<p>Tests that console.error does not throw exception when executed in console on call frame.</p> |
</body> |
</html> |