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

Side by Side Diff: tests/corelib/json_test.dart

Issue 11778030: Test fixes for dartium (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 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
« no previous file with comments | « tests/corelib/iterable_min_max_test.dart ('k') | tests/html/html.status » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 library json_test;
6
5 import "dart:json"; 7 import "dart:json";
6 8
7 bool badFormat(e) => e is FormatException; 9 bool badFormat(e) => e is FormatException;
8 10
9 void testJson(json, expected) { 11 void testJson(json, expected) {
10 var value = parse(json); 12 var value = parse(json);
11 compare(expected, actual, path) { 13 compare(expected, actual, path) {
12 if (expected is List) { 14 if (expected is List) {
13 Expect.isTrue(actual is List); 15 Expect.isTrue(actual is List);
14 Expect.equals(expected.length, actual.length, "$path: List length"); 16 Expect.equals(expected.length, actual.length, "$path: List length");
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 } 242 }
241 243
242 main() { 244 main() {
243 testNumbers(); 245 testNumbers();
244 testStrings(); 246 testStrings();
245 testWords(); 247 testWords();
246 testObjects(); 248 testObjects();
247 testArrays(); 249 testArrays();
248 testWhitespace(); 250 testWhitespace();
249 } 251 }
OLDNEW
« no previous file with comments | « tests/corelib/iterable_min_max_test.dart ('k') | tests/html/html.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698