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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/inspector/network/network-preview-json.html

Issue 1912973002: [DevTools] JSONView parsing smarter (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/network-preview-json.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector/network/network-preview-json.html b/third_party/WebKit/LayoutTests/http/tests/inspector/network/network-preview-json.html
deleted file mode 100644
index 498dd2ccb4ed696978a75018c2bfc89ff622af61..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/http/tests/inspector/network/network-preview-json.html
+++ /dev/null
@@ -1,40 +0,0 @@
-<html>
-<head>
-<script src="../inspector-test.js"></script>
-<script src="../network-test.js"></script>
-<script>
-
-function test()
-{
- function check(text) {
- InspectorTest.addResult("");
- InspectorTest.addResult("Input: " + text);
- var parsedJSON = WebInspector.JSONView.parseJSON(text);
- if (!parsedJSON) {
- InspectorTest.addResult("Can't parse");
- return;
- }
- InspectorTest.addResult("Prefix: " + parsedJSON.prefix);
- InspectorTest.addResult("Data: " + JSON.stringify(parsedJSON.data));
- InspectorTest.addResult("Suffix: " + parsedJSON.suffix);
- }
-
- check("{\"name\": \"value\"}");
- check("while(1); {\"name\": \"value\"}");
- check("[, \"foo\", -4.2, true, false, null]");
- check("[{\"foo\": {}, \"bar\": []},[[],{}]]");
- check("/* vanilla */ run ( [1, 2, 3] ) ;");
- check("[\"A\\\"B\\u0020C\\nD\\\\E\\u04ABF\"]");
- check("Text with with {}) inside");
- check("<html>404 Page not found with foo({}) inside</html>");
- check("/* vanilla prefix too large to be considered prefix Ok? */ run([1, 2, 3]); // since it is unlikely JSONP");
-
- InspectorTest.completeTest();
-}
-</script>
-</head>
-<body onload="runTest()">
-<p>Tests RequestJSONView ability to parse JSON passed in XHR, JSONP</p>
-<a href="https://bugs.webkit.org/show_bug.cgi?id=65559">Bug 65559</a>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698