| OLD | NEW |
| 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 |
| OLD | NEW |