| 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>
|
|
|