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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/inspector/persistence/persistence-search-across-all-files.html

Issue 2349343002: DevTools: introduce persistence/ module (Closed)
Patch Set: DevTools: add persistence/ module Created 4 years, 3 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: third_party/WebKit/LayoutTests/http/tests/inspector/persistence/persistence-search-across-all-files.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector/persistence/persistence-search-across-all-files.html b/third_party/WebKit/LayoutTests/http/tests/inspector/persistence/persistence-search-across-all-files.html
new file mode 100644
index 0000000000000000000000000000000000000000..aba0466a31a6b04c69bf9c7e41c82df3c32a9e38
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/http/tests/inspector/persistence/persistence-search-across-all-files.html
@@ -0,0 +1,45 @@
+<html>
+<head>
+<script src="../inspector-test.js"></script>
+<script src="../debugger-test.js"></script>
+<script src="../workspace-test.js"></script>
+<script src="../search/search-test.js"></script>
+<script src="../isolated-filesystem-test.js"></script>
+<script src="./persistence-test.js"></script>
+<script src="./resources/foo.js"></script>
+<script>
+
+function test()
+{
+ var fs = new InspectorTest.TestFileSystem("file:///var/www");
+ var fsEntry = fs.root.mkdir("inspector").mkdir("persistence").mkdir("resources").addFile("foo.js", "window.foo = ()=>'foo';");
+ fs.reportCreated(function() { });
+ InspectorTest.waitForBinding("foo.js", onBindingCreated);
+ WebInspector.fileSystemMapping.addFileSystem(fs.fileSystemPath);
+ WebInspector.fileSystemMapping.addFileMapping(fs.fileSystemPath, "http://127.0.0.1:8000", "/");
+
+ function onBindingCreated()
+ {
+ InspectorTest.addResult("BindingCreated");
+ var scope = new WebInspector.SourcesSearchScope();
+ var searchConfig = new WebInspector.SearchConfig("window f:foo", true, false);
+ InspectorTest.runSearchAndDumpResults(scope, searchConfig, true, InspectorTest.completeTest);
+ }
+
+ InspectorFrontendHost.searchInPath = function(requestId, path, query)
+ {
+ setTimeout(reply);
+
+ function reply()
+ {
+ var paths = ["/var/www" + fsEntry.fullPath];
+ WebInspector.isolatedFileSystemManager._onSearchCompleted({data: {requestId: requestId, fileSystemPath: path, files: paths}});
+ }
+ }
+};
+</script>
+</head>
+<body onload="runTest()">
+<p>Verify that search across all files filters out matches in uiSourceCodes with persistent binding.</p>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698