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

Side by Side Diff: LayoutTests/http/tests/inspector/network/network-preview-json-expected.txt

Issue 1163523002: DevTools: remove hand-written optimistic JSON parser introduced in r183821. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: bringing relaxed parser back Created 5 years, 6 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 Tests RequestJSONView ability to parse JSON passed in XHR, JSONP 1 Tests RequestJSONView ability to parse JSON passed in XHR, JSONP
2 2
3 Bug 65559 3 Bug 65559
4 4
5 Input: {"name": "value"} 5 Input: {"name": "value"}
6 Prefix: 6 Prefix:
7 Data: {"name":"value"} 7 Data: {"name":"value"}
8 Suffix: 8 Suffix:
9 9
10 Input: while(1); {"name": "value"} 10 Input: while(1); {"name": "value"}
11 Prefix: while(1); 11 Prefix: while(1);
12 Data: {"name":"value"} 12 Data: {"name":"value"}
13 Suffix: 13 Suffix:
14 14
15 Input: [,"foo", -4.2, true, false, null] 15 Input: [, "foo", -4.2, true, false, null]
16 Prefix: 16 Prefix:
17 Data: [null,"foo",-4.2,true,false,null] 17 Data: [null,"foo",-4.2,true,false,null]
18 Suffix: 18 Suffix:
19 19
20 Input: [{"foo": {}, "bar": []},[[],{}]] 20 Input: [{"foo": {}, "bar": []},[[],{}]]
21 Prefix: 21 Prefix:
22 Data: [{"foo":{},"bar":[]},[[],{}]] 22 Data: [{"foo":{},"bar":[]},[[],{}]]
23 Suffix: 23 Suffix:
24 24
25 Input: /* vanilla */ run([1, 2, 3]); 25 Input: /* vanilla */ run ( [1, 2, 3] ) ;
26 Prefix: /* vanilla */ run( 26 Prefix: /* vanilla */ run (
27 Data: [1,2,3] 27 Data: [1,2,3]
28 Suffix: ); 28 Suffix: ) ;
29 29
30 Input: ["A\"B\u0020C\nD\\E\u04ABF"] 30 Input: ["A\"B\u0020C\nD\\E\u04ABF"]
31 Prefix: 31 Prefix:
32 Data: ["A\"B C\nD\\EҫF"] 32 Data: ["A\"B C\nD\\EҫF"]
33 Suffix: 33 Suffix:
34 34
35 Input: <html>404 Page not found</html> 35 Input: Text with with {}) inside
36 Can't parse 36 Can't parse
37 37
38 Input: <html>404 Page not found with foo({}) inside</html>
39 Can't parse
40
41 Input: /* vanilla prefix too large to be considered prefix Ok? */ run([1, 2, 3]) ; // since it is unlikely JSONP
42 Can't parse
43
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698