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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/inspector/network/preview-searchable-expected.txt

Issue 1899893003: [Devtools] JSONView implements Searchable interface (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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/network/preview-searchable-expected.txt
diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector/network/preview-searchable-expected.txt b/third_party/WebKit/LayoutTests/http/tests/inspector/network/preview-searchable-expected.txt
new file mode 100644
index 0000000000000000000000000000000000000000..97c16541a77013a0a7e1789bbbbfeb12ff1021ee
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/http/tests/inspector/network/preview-searchable-expected.txt
@@ -0,0 +1,48 @@
+Tests that resources with JSON MIME types are previewed with the JSON viewer.
+
+
+Running: test1
+Creating a NetworkRequest with mimeType: application/json
+Its previewer type: SearchableView > widget vbox json-view
+Inner searchable box is: widget vbox json-view
+Should have found and highlighted all: 533
+<SPAN class=highlighted-search-result current-search-result >
+533
+</SPAN>
+Should have found and highlighted all: 322
+<SPAN class=highlighted-search-result current-search-result >
+322
+</SPAN>
+
+Running: test2
+Creating a NetworkRequest with mimeType: application/vnd.document+json
+Its previewer type: SearchableView > widget vbox json-view
+Inner searchable box is: widget vbox json-view
+Should have found and highlighted all: foo
+<SPAN class=highlighted-search-result current-search-result >
+foo
+</SPAN>
+<SPAN class=highlighted-search-result current-search-result >
+foo
+</SPAN>
+
+Running: test3
+Creating a NetworkRequest with mimeType: text/xml
+Its previewer type: widget shadow-xml-view source-code
+
+Running: test4
+Creating a NetworkRequest with mimeType: text/xml
+Its previewer type: SearchableView > widget vbox json-view
+Inner searchable box is: widget vbox json-view
+Should have found and highlighted all: fooo
+<SPAN class=highlighted-search-result current-search-result >
+fooo
+</SPAN>
+Should have found and highlighted all: bar
+<SPAN class=highlighted-search-result current-search-result >
+bar
+</SPAN>
+<SPAN class=highlighted-search-result >
+bar
+</SPAN>
+

Powered by Google App Engine
This is Rietveld 408576698