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

Unified Diff: LayoutTests/inspector/sources/debugger/script-formatter-search.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/script-formatter-search.html
diff --git a/LayoutTests/inspector/sources/debugger/script-formatter-search.html b/LayoutTests/inspector/sources/debugger/script-formatter-search.html
deleted file mode 100644
index fce8c703a9e6f7a407b25c021db76c3ad333a0d7..0000000000000000000000000000000000000000
--- a/LayoutTests/inspector/sources/debugger/script-formatter-search.html
+++ /dev/null
@@ -1,65 +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/search/search-test.js"></script>
-<script>
-
-function nonFormattedFunction() { var i = 2 + 2; var a = 4; return a + i; }
-
-var test = function()
-{
- var scriptSource;
- var shouldRequestContent = false;
- InspectorTest.scriptFormatter().then(startDebuggerTest);
- var scriptFormatter;
-
- function startDebuggerTest(sf)
- {
- scriptFormatter = sf;
- InspectorTest.startDebuggerTest(started);
- }
-
- function started()
- {
- InspectorTest.showScriptSource("script-formatter-search.html", didShowScriptSource);
- }
-
- function didShowScriptSource(frame)
- {
- scriptSource = frame._uiSourceCode;
- scriptSource.searchInContent("magic-string", true, false, dump1);
- }
-
- function dump1(matches)
- {
- InspectorTest.addResult("Pre-format search results:");
- InspectorTest.dumpSearchMatches(matches);
- shouldRequestContent = true;
- InspectorTest.addSniffer(WebInspector.ScriptFormatterEditorAction.prototype, "_updateButton", uiSourceCodeScriptFormatted);
- scriptFormatter._toggleFormatScriptSource();
- }
-
- function uiSourceCodeScriptFormatted()
- {
- scriptSource.searchInContent("magic-string", true, false, dump2);
- }
-
- function dump2(matches)
- {
- InspectorTest.addResult("Post-format search results:");
- InspectorTest.dumpSearchMatches(matches);
- InspectorTest.completeTest();
- }
-}
-
-</script>
-
-</head>
-
-<body onload="runTest()">
-<p>Tests that search across files works with formatted scripts.
-</p>
-
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698