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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/inspector/search/search-ignore-binary-files.html

Issue 2564733002: DevTools: [Search] do not search inside binary files. (Closed)
Patch Set: Created 4 years 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/search/search-ignore-binary-files.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector/search/search-ignore-binary-files.html b/third_party/WebKit/LayoutTests/http/tests/inspector/search/search-ignore-binary-files.html
new file mode 100644
index 0000000000000000000000000000000000000000..5aeebce47ceef9d4f2b9d233b3bb5406544aff4b
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/http/tests/inspector/search/search-ignore-binary-files.html
@@ -0,0 +1,25 @@
+<html>
+<head>
+<script src="../inspector-test.js"></script>
+<script src="../debugger-test.js"></script>
+<script src="./search-test.js"></script>
+<script>
+
+function test()
+{
+ InspectorTest.waitForScriptSource("pink.jpg", doSearch);
+
+ function doSearch(next)
+ {
+ var scope = new Sources.SourcesSearchScope();
+ var searchConfig = new Workspace.SearchConfig("AAAAAAA", true, false);
+ InspectorTest.runSearchAndDumpResults(scope, searchConfig, true, InspectorTest.completeTest.bind(InspectorTest));
+ }
+};
+</script>
+</head>
+<body onload="runTest()">
+<p>Verify that search doesn't search in binary resources.</p>
+<img src="./resources/pink.jpg"></img>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698