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

Side by Side Diff: tests/lib/convert/streamed_conversion_json_encode1_test.dart

Issue 23701010: Switch to async_helper package. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebase and adapt 3 new tests. Created 7 years, 3 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 | Annotate | Revision Log
OLDNEW
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 4
5 import "package:expect/expect.dart"; 5 import "package:expect/expect.dart";
6 import 'dart:async'; 6 import 'dart:async';
7 import 'dart:convert'; 7 import 'dart:convert';
8 import '../../async_helper.dart'; 8 import "package:async_helper/async_helper.dart";
9 9
10 final TESTS = [ 10 final TESTS = [
11 [ 5, '5' ], 11 [ 5, '5' ],
12 [ -42, '-42' ], 12 [ -42, '-42' ],
13 [ 3.14, '3.14' ], 13 [ 3.14, '3.14' ],
14 [ true, 'true' ], 14 [ true, 'true' ],
15 [ false, 'false' ], 15 [ false, 'false' ],
16 [ null, 'null' ], 16 [ null, 'null' ],
17 [ 'quote"or\'', '"quote\\"or\'"' ], 17 [ 'quote"or\'', '"quote\\"or\'"' ],
18 [ '', '""' ], 18 [ '', '""' ],
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 } 68 }
69 69
70 void main() { 70 void main() {
71 for (var test in TESTS) { 71 for (var test in TESTS) {
72 var o = test[0]; 72 var o = test[0];
73 var expected = test[1]; 73 var expected = test[1];
74 testNoPause(expected, o); 74 testNoPause(expected, o);
75 testWithPause(expected, o); 75 testWithPause(expected, o);
76 } 76 }
77 } 77 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698