| Index: LayoutTests/inspector/sources/debugger/debug-console-command.html
|
| diff --git a/LayoutTests/inspector/sources/debugger/debug-console-command.html b/LayoutTests/inspector/sources/debugger/debug-console-command.html
|
| deleted file mode 100644
|
| index 0140f191febc4dbaf754950623714c0f9d64b072..0000000000000000000000000000000000000000
|
| --- a/LayoutTests/inspector/sources/debugger/debug-console-command.html
|
| +++ /dev/null
|
| @@ -1,94 +0,0 @@
|
| -<html>
|
| -<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 simpleTestFunction()
|
| -{
|
| - return 0;
|
| -}
|
| -</script>
|
| -
|
| -<script>
|
| -function simpleTestFunction1() { return 0; } function simpleTestFunction2() { return 0; }
|
| -</script>
|
| -
|
| -<script>
|
| -function simpleTestFunction3() { Math.random(); debugger; }
|
| -</script>
|
| -
|
| -<script>
|
| -var test = function()
|
| -{
|
| - var currentSourceFrame;
|
| - InspectorTest.setQuiet(true);
|
| - InspectorTest.runDebuggerTestSuite([
|
| - function testSetSimpleBreakpoint(next)
|
| - {
|
| - setBreakpointAndRun(next, "simpleTestFunction", "simpleTestFunction();");
|
| - },
|
| -
|
| - function testSetBreakpointOnFirstFunctionInLine(next)
|
| - {
|
| - setBreakpointAndRun(next, "simpleTestFunction1", "simpleTestFunction2(); simpleTestFunction1();");
|
| - },
|
| -
|
| - function testSetBreakpointOnLastFunctionInLine(next)
|
| - {
|
| - setBreakpointAndRun(next, "simpleTestFunction2", "simpleTestFunction1(); simpleTestFunction2();");
|
| - },
|
| -
|
| - function testRemoveBreakpoint(next)
|
| - {
|
| - InspectorTest.evaluateInConsole("debug(simpleTestFunction3); undebug(simpleTestFunction3);");
|
| - InspectorTest.evaluateInConsole("setTimeout(simpleTestFunction3, 0)");
|
| - InspectorTest.waitUntilPaused(didPause1);
|
| -
|
| - function didPause1(callFrames, reason)
|
| - {
|
| - InspectorTest.addResult("Script execution paused.");
|
| - InspectorTest.addResult("Reason for pause: " + (reason == WebInspector.DebuggerModel.BreakReason.DebugCommand ? "debug command" : "debugger statement") + ".");
|
| - next();
|
| - }
|
| - }
|
| - ]);
|
| -
|
| - function setBreakpointAndRun(next, functionName, runCmd)
|
| - {
|
| - InspectorTest.evaluateInConsole("debug(" + functionName + ")");
|
| -
|
| - InspectorTest.addResult("Breakpoint added.");
|
| - InspectorTest.evaluateInConsole("setTimeout(function() { " + runCmd + " }, 0)");
|
| - InspectorTest.addResult("Set timer for test function.");
|
| - InspectorTest.waitUntilPaused(didPause);
|
| -
|
| - function didPause(callFrames, reason)
|
| - {
|
| - InspectorTest.addResult("Script execution paused.");
|
| - InspectorTest.captureStackTrace(callFrames);
|
| - InspectorTest.evaluateInConsole("undebug(" + functionName + ")");
|
| - InspectorTest.addResult("Breakpoint removed.");
|
| - InspectorTest.assertEquals(reason, WebInspector.DebuggerModel.BreakReason.DebugCommand);
|
| - InspectorTest.resumeExecution(didResume);
|
| - }
|
| -
|
| - function didResume()
|
| - {
|
| - InspectorTest.addResult("Script execution resumed.");
|
| - next();
|
| - }
|
| - }
|
| -}
|
| -
|
| -</script>
|
| -</head>
|
| -
|
| -<body onload="runTest()">
|
| -<p>
|
| -Tests debug(fn) console command.
|
| -</p>
|
| -
|
| -</body>
|
| -</html>
|
|
|