| Index: tests/lib/convert/chunked_conversion_json_encode1_test.dart
|
| diff --git a/tests/lib/convert/chunked_conversion_json_encode1_test.dart b/tests/lib/convert/chunked_conversion_json_encode1_test.dart
|
| index c521aa59d0268496e3c903b67a6898683a2eec79..001d609634f2995ab04b334447f1275164d2f8d9 100644
|
| --- a/tests/lib/convert/chunked_conversion_json_encode1_test.dart
|
| +++ b/tests/lib/convert/chunked_conversion_json_encode1_test.dart
|
| @@ -6,29 +6,56 @@ import "package:expect/expect.dart";
|
| import 'dart:convert';
|
|
|
| final TESTS = [
|
| - [ 5, '5' ],
|
| - [ -42, '-42' ],
|
| - [ 3.14, '3.14' ],
|
| - [ true, 'true' ],
|
| - [ false, 'false' ],
|
| - [ null, 'null' ],
|
| - [ 'quote"or\'', '"quote\\"or\'"' ],
|
| - [ '', '""' ],
|
| - [ [], "[]" ],
|
| - [ [3, -4.5, true, "hi", false], '[3,-4.5,true,"hi",false]' ],
|
| - [ [null], "[null]" ],
|
| - [ [[null]], "[[null]]" ],
|
| - [ [[3]], "[[3]]" ],
|
| - [ {}, "{}" ],
|
| - [ { "x": 3, "y": 4.5, "z": "hi", "u": true, "v": false },
|
| - '{"x":3,"y":4.5,"z":"hi","u":true,"v":false}' ],
|
| - [ { "x": null }, '{"x":null}' ],
|
| - [ { "x": {} }, '{"x":{}}' ],
|
| - // Note that -0.0 won't be treated the same in JS. The Json spec seems to
|
| - // allow it, though.
|
| - [ { "hi there": 499, "'":-0.0 }, '{"hi there":499,"\'":-0.0}' ],
|
| - [ r'\foo', r'"\\foo"' ],
|
| - ];
|
| + [5, '5'],
|
| + [-42, '-42'],
|
| + [3.14, '3.14'],
|
| + [true, 'true'],
|
| + [false, 'false'],
|
| + [null, 'null'],
|
| + ['quote"or\'', '"quote\\"or\'"'],
|
| + ['', '""'],
|
| + [[], "[]"],
|
| + [
|
| + [3, -4.5, true, "hi", false],
|
| + '[3,-4.5,true,"hi",false]'
|
| + ],
|
| + [
|
| + [null],
|
| + "[null]"
|
| + ],
|
| + [
|
| + [
|
| + [null]
|
| + ],
|
| + "[[null]]"
|
| + ],
|
| + [
|
| + [
|
| + [3]
|
| + ],
|
| + "[[3]]"
|
| + ],
|
| + [{}, "{}"],
|
| + [
|
| + {"x": 3, "y": 4.5, "z": "hi", "u": true, "v": false},
|
| + '{"x":3,"y":4.5,"z":"hi","u":true,"v":false}'
|
| + ],
|
| + [
|
| + {"x": null},
|
| + '{"x":null}'
|
| + ],
|
| + [
|
| + {"x": {}},
|
| + '{"x":{}}'
|
| + ],
|
| + // Note that -0.0 won't be treated the same in JS. The Json spec seems to
|
| + // allow it, though.
|
| + [
|
| + {"hi there": 499, "'": -0.0},
|
| + '{"hi there":499,"\'":-0.0}'
|
| + ],
|
| + [r'\foo', r'"\\foo"'],
|
| +];
|
|
|
| class MyStringConversionSink extends StringConversionSinkBase {
|
| var buffer = new StringBuffer();
|
|
|