| Index: LayoutTests/inspector/sources/debugger/source-frame.html
|
| diff --git a/LayoutTests/inspector/sources/debugger/source-frame.html b/LayoutTests/inspector/sources/debugger/source-frame.html
|
| deleted file mode 100644
|
| index 7e1171feef6647124057ec8741d32942ff362353..0000000000000000000000000000000000000000
|
| --- a/LayoutTests/inspector/sources/debugger/source-frame.html
|
| +++ /dev/null
|
| @@ -1,106 +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/network-test.js"></script>
|
| -<script src="../../../http/tests/inspector/resources-test.js"></script>
|
| -
|
| -<script>
|
| -
|
| -function addErrorToConsole()
|
| -{
|
| - console.error("test error message");
|
| -}
|
| -
|
| -function methodForBreakpoint()
|
| -{
|
| - alert("Hello world");
|
| -}
|
| -
|
| -function test()
|
| -{
|
| - WebInspector.ResourcesPanel.show();
|
| - InspectorTest.runDebuggerTestSuite([
|
| - function testSetBreakpoint(next)
|
| - {
|
| - InspectorTest.showScriptSource("source-frame.html", didShowScriptSource);
|
| -
|
| - function didShowScriptSource(sourceFrame)
|
| - {
|
| - InspectorTest.addResult("Script source was shown.");
|
| - InspectorTest.addSniffer(WebInspector.JavaScriptSourceFrame.prototype, "_addBreakpointDecoration", didAddBreakpoint);
|
| - InspectorTest.setBreakpoint(sourceFrame, 14, "", true);
|
| - }
|
| -
|
| - function didAddBreakpoint(lineNumber)
|
| - {
|
| - InspectorTest.addResult("Breakpoint added to source frame at line " + lineNumber);
|
| - next();
|
| - }
|
| - },
|
| -
|
| - function testConsoleMessage(next)
|
| - {
|
| - InspectorTest.showScriptSource("source-frame.html", didShowScriptSource);
|
| -
|
| - var shownSourceFrame;
|
| - function didShowScriptSource(sourceFrame)
|
| - {
|
| - InspectorTest.addResult("Script source was shown.");
|
| - shownSourceFrame = sourceFrame;
|
| - InspectorTest.addSniffer(WebInspector.SourceFrame.prototype, "addMessageToSource", didAddMessage);
|
| - InspectorTest.addSniffer(WebInspector.SourceFrame.prototype, "clearMessages", clearMessages);
|
| - InspectorTest.evaluateInPage("addErrorToConsole()");
|
| - }
|
| -
|
| - function didAddMessage(message)
|
| - {
|
| - if (this !== shownSourceFrame)
|
| - return;
|
| - InspectorTest.addResult("Message added to source frame: " + message.messageText());
|
| - InspectorTest.consoleModel.requestClearMessages();
|
| - }
|
| -
|
| - function clearMessages()
|
| - {
|
| - if (this !== shownSourceFrame)
|
| - return;
|
| - InspectorTest.addResult("Messages cleared in source frame.");
|
| - next();
|
| - }
|
| - },
|
| -
|
| - function testShowResource(next)
|
| - {
|
| - WebInspector.NetworkPanel.show();
|
| -
|
| - InspectorTest.addSniffer(WebInspector.SourceFrame.prototype, "show", didShowSourceFrame);
|
| -
|
| - InspectorTest.resourceTreeModel.forAllResources(visit);
|
| - function visit(resource)
|
| - {
|
| - if (resource.url.indexOf("debugger-test.js") !== -1) {
|
| - WebInspector.panels.resources.showResource(resource, 1);
|
| - return true;
|
| - }
|
| - }
|
| -
|
| - function didShowSourceFrame()
|
| - {
|
| - next();
|
| - }
|
| - }
|
| - ]);
|
| -};
|
| -
|
| -</script>
|
| -
|
| -</head>
|
| -
|
| -<body onload="runTest()">
|
| -<p>Tests that it's possible to set breakpoint in source frame, and that
|
| -source frame displays breakpoints and console errors.
|
| -</p>
|
| -
|
| -</body>
|
| -</html>
|
|
|