| Index: LayoutTests/inspector/sources/debugger/show-function-definition.html
|
| diff --git a/LayoutTests/inspector/sources/debugger/show-function-definition.html b/LayoutTests/inspector/sources/debugger/show-function-definition.html
|
| deleted file mode 100644
|
| index e1646c6a7296028900af26a4c511000ba3987790..0000000000000000000000000000000000000000
|
| --- a/LayoutTests/inspector/sources/debugger/show-function-definition.html
|
| +++ /dev/null
|
| @@ -1,73 +0,0 @@
|
| -<html>
|
| -<head>
|
| -<script src="../../../http/tests/inspector/inspector-test.js"></script>
|
| -<script src="../../../http/tests/inspector/console-test.js"></script>
|
| -<script>
|
| -
|
| -function jumpToMe()
|
| -{
|
| - var result = 12345;
|
| - return window.foo || result;
|
| -}
|
| -
|
| -function test()
|
| -{
|
| - var panel = WebInspector.panels.sources;
|
| -
|
| - InspectorTest.runTestSuite([
|
| - function testRevealFunctionDefinition(next)
|
| - {
|
| - InspectorTest.addSniffer(panel, "showUISourceCode", showUISourceCodeHook);
|
| - WebInspector.context.flavor(WebInspector.ExecutionContext).evaluate("jumpToMe", "", false, true, false, false, didGetFunction);
|
| -
|
| - function didGetFunction(funcObject, wasThrown)
|
| - {
|
| - var error = !funcObject || wasThrown;
|
| - InspectorTest.assertTrue(!error);
|
| - panel._showFunctionDefinition(funcObject);
|
| - }
|
| -
|
| - function showUISourceCodeHook(uiSourceCode, lineNumber, columnNumber, forceShowInPanel)
|
| - {
|
| - // lineNumber and columnNumber are 0-based
|
| - ++lineNumber;
|
| - ++columnNumber;
|
| - InspectorTest.addResult("Function location revealed: [" + lineNumber + ":" + columnNumber + "]");
|
| - next();
|
| - }
|
| - },
|
| -
|
| - function testDumpFunctionDefinition(next)
|
| - {
|
| - InspectorTest.addSniffer(WebInspector.ObjectPropertiesSection, "formatObjectAsFunction", onConsoleMessagesReceived);
|
| - WebInspector.ConsoleModel.evaluateCommandInConsole(WebInspector.context.flavor(WebInspector.ExecutionContext), "jumpToMe");
|
| -
|
| - function onConsoleMessagesReceived()
|
| - {
|
| - InspectorTest.runAfterPendingDispatches(function() {
|
| - var messages = [];
|
| - InspectorTest.disableConsoleViewport();
|
| - var viewMessages = WebInspector.ConsolePanel._view()._visibleViewMessages;
|
| - for (var i = 0; i < viewMessages.length; ++i) {
|
| - var uiMessage = viewMessages[i];
|
| - var element = uiMessage.contentElement();
|
| - messages.push(element.deepTextContent());
|
| - }
|
| - InspectorTest.addResult(messages.join("\n"));
|
| - next();
|
| - });
|
| - }
|
| - }
|
| - ]);
|
| -}
|
| -
|
| -</script>
|
| -</head>
|
| -
|
| -<body onload="runTest()">
|
| -<p>
|
| -Tests that "Show Function Definition" jumps to the correct location.
|
| -</p>
|
| -
|
| -</body>
|
| -</html>
|
|
|