Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(168)

Unified Diff: LayoutTests/inspector/sources/debugger/show-function-definition.html

Issue 1153923005: DevTools: shard inspector/debugger tests for faster execution. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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>

Powered by Google App Engine
This is Rietveld 408576698