Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / http / tests / inspector / search / sources-search-scope-in-files.html
index f7b17d0..aa82ccc 100644 (file)
@@ -1,6 +1,6 @@
 <html>
 <head>
-<title>Change inspected iframe's "src" attribute.</title>
+<title>Test search in sources.</title>
 <script src="../inspector-test.js"></script>
 <script src="../isolated-filesystem-test.js"></script>
 <script src="../workspace-test.js"></script>
@@ -31,15 +31,15 @@ function test()
         
         function reply()
         {
-            var projectDelegate = manager.fileSystemWorkspaceProvider.delegate(path);
             var paths = [];
             for (var i = 0; i < names.length; ++i)
                 paths.push("/var/www/" + names[i]);
-            projectDelegate.searchCompleted(requestId, paths);
+            manager.fileSystemWorkspaceBinding.searchCompleted(requestId, path, paths);
         }
     }
 
     WebInspector.inspectorView.showPanel("sources");
+    WebInspector.inspectorView.showViewInDrawer("search");
 
     InspectorTest.createWorkspace();
     manager = InspectorTest.createIsolatedFileSystemManager(InspectorTest.testWorkspace, InspectorTest.testFileSystemMapping);
@@ -156,6 +156,13 @@ function test()
             var searchConfig = new WebInspector.SearchConfig(query, true, false);
             runSearchAndDumpResults(searchConfig, next);
         },
+
+        function testFileSEARCH_NOT_JS_NOT_CSS(next)
+        {
+            var query = "searchTest" + "UniqueString" + " file:search -file:js -file:css";
+            var searchConfig = new WebInspector.SearchConfig(query, true, false);
+            runSearchAndDumpResults(searchConfig, next);
+        },
     ]);
 }