OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 // Test write barrier verification mode. | 4 // Test write barrier verification mode. |
5 // VMOptions=--verified_mem --verify_before_gc --verify_after_gc --old_gen_growt
h_rate=1 | 5 // VMOptions=--verify_before_gc --verify_after_gc --old_gen_growth_rate=1 |
6 // VMOptions= | 6 // VMOptions= |
7 | 7 |
8 import "package:expect/expect.dart"; | 8 import "package:expect/expect.dart"; |
9 import 'dart:async'; | 9 import 'dart:async'; |
10 import 'dart:convert'; | 10 import 'dart:convert'; |
11 import 'json_unicode_tests.dart'; | 11 import 'json_unicode_tests.dart'; |
12 import "package:async_helper/async_helper.dart"; | 12 import "package:async_helper/async_helper.dart"; |
13 | 13 |
14 final JSON_UTF8 = JSON.fuse(UTF8); | 14 final JSON_UTF8 = JSON.fuse(UTF8); |
15 | 15 |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 var bytes = test[0]; | 74 var bytes = test[0]; |
75 var o = test[1]; | 75 var o = test[1]; |
76 checkIsJsonEqual(o, decode(bytes)); | 76 checkIsJsonEqual(o, decode(bytes)); |
77 checkIsJsonEqual(o, decodeChunked(bytes, 1)); | 77 checkIsJsonEqual(o, decodeChunked(bytes, 1)); |
78 checkIsJsonEqual(o, decodeChunked(bytes, 2)); | 78 checkIsJsonEqual(o, decodeChunked(bytes, 2)); |
79 checkIsJsonEqual(o, decodeChunked(bytes, 3)); | 79 checkIsJsonEqual(o, decodeChunked(bytes, 3)); |
80 checkIsJsonEqual(o, decodeChunked(bytes, 4)); | 80 checkIsJsonEqual(o, decodeChunked(bytes, 4)); |
81 checkIsJsonEqual(o, decodeChunked(bytes, 5)); | 81 checkIsJsonEqual(o, decodeChunked(bytes, 5)); |
82 } | 82 } |
83 } | 83 } |
OLD | NEW |