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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/inspector/network/preview-searchable.html

Issue 1942683006: [Devtools] XMLView now searchable (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@FIND_IN_JSON_FINAL
Patch Set: Fixed nit Created 4 years, 7 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 unified diff | Download patch
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <script src="../inspector-test.js"></script> 3 <script src="../inspector-test.js"></script>
4 <script src="../network-test.js"></script> 4 <script src="../network-test.js"></script>
5 <script> 5 <script>
6 function test() 6 function test()
7 { 7 {
8 function testSearches(view, searches) 8 function testSearches(view, searches)
9 { 9 {
10 for (var search of searches) { 10 for (var search of searches) {
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 function jsonTest(next) 87 function jsonTest(next)
88 { 88 {
89 testType("application/json", "[533,3223]", ["533", "322"], next); 89 testType("application/json", "[533,3223]", ["533", "322"], next);
90 }, 90 },
91 function jsonSpecialMimeTest(next) 91 function jsonSpecialMimeTest(next)
92 { 92 {
93 testType("application/vnd.document+json", "{foo0foo: 123}", ["foo"], next); 93 testType("application/vnd.document+json", "{foo0foo: 123}", ["foo"], next);
94 }, 94 },
95 function xmlMultipleSearchTest(next) 95 function xmlMultipleSearchTest(next)
96 { 96 {
97 testType("text/xml", "<bar><foo/></bar>", ["bar", "foo", "bar"], ne xt); 97 testType("text/xml", "<bar><foo/>test</bar>", ["bar", "foo", "bar", "test"], next);
98 }, 98 },
99 function xmlSingleSearchTest(next) 99 function xmlSingleSearchTest(next)
100 { 100 {
101 testType("text/xml", "<bar></bar>", ["bar"], next); 101 testType("text/xml", "<bar></bar>", ["bar"], next);
102 }, 102 },
103 function xmlCommentSearchTest(next) 103 function xmlCommentSearchTest(next)
104 { 104 {
105 testType("text/xml", "<bar><!-- TEST --></bar>", ["TEST", "/bar", "b ar"], next); 105 testType("text/xml", "<bar><!-- TEST --></bar>", ["TEST", "/bar", "b ar"], next);
106 }, 106 },
107 function xmlCDATASearchTest(next) 107 function xmlCDATASearchTest(next)
108 { 108 {
109 testType("text/xml", "<a><![CDATA[GGG]]><g tee=\"gee\">tee</g></a>", ["GGG", "tee", "CDATA"], next); 109 testType("text/xml", "<a><![CDATA[GGG]]><g tee=\"gee\">tee</g></a>", ["GGG", "tee", "CDATA"], next);
110 }, 110 },
111 function xmlMimeTypeJsonTest(next) 111 function xmlMimeTypeJsonTest(next)
112 { 112 {
113 testType("text/xml", "{foo0: 'barr', 'barr': 'fooo'}", ["fooo", "bar "], next); 113 testType("text/xml", "{foo0: 'barr', 'barr': 'fooo'}", ["fooo", "bar "], next);
114 } 114 }
115 ]); 115 ]);
116 } 116 }
117 </script> 117 </script>
118 </head> 118 </head>
119 <body onload="runTest()"> 119 <body onload="runTest()">
120 <p>Tests that resources with JSON MIME types are previewed with the JSON viewer. </p> 120 <p>Tests that resources with JSON MIME types are previewed with the JSON viewer. </p>
121 </body> 121 </body>
122 </html> 122 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698