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

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

Issue 12743005: Revert "Remove Expect from core library." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Reupload (first upload failed). Created 7 years, 9 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/standalone/typed_data_test.dart ('k') | tests/utils/recursive_import_test.dart » ('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 jsonTest; 5 library jsonTest;
6 6
7 import "package:expect/expect.dart";
8 import 'dart:json'; 7 import 'dart:json';
9 8
10 main() { 9 main() {
11 testEscaping(); 10 testEscaping();
12 testParse(); 11 testParse();
13 testParseInvalid(); 12 testParseInvalid();
14 } 13 }
15 14
16 void testParse() { 15 void testParse() {
17 // Scalars. 16 // Scalars.
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 Expect.stringEquals('"\\u001d"', stringify('\u001d')); 168 Expect.stringEquals('"\\u001d"', stringify('\u001d'));
170 Expect.stringEquals('"\\u001e"', stringify('\u001e')); 169 Expect.stringEquals('"\\u001e"', stringify('\u001e'));
171 Expect.stringEquals('"\\u001f"', stringify('\u001f')); 170 Expect.stringEquals('"\\u001f"', stringify('\u001f'));
172 Expect.stringEquals('"\\\""', stringify('"')); 171 Expect.stringEquals('"\\\""', stringify('"'));
173 Expect.stringEquals('"\\\\"', stringify('\\')); 172 Expect.stringEquals('"\\\\"', stringify('\\'));
174 Expect.stringEquals('"Got \\b, \\f, \\n, \\r, \\t, \\u0000, \\\\, and \\"."', 173 Expect.stringEquals('"Got \\b, \\f, \\n, \\r, \\t, \\u0000, \\\\, and \\"."',
175 stringify('Got \b, \f, \n, \r, \t, \u0000, \\, and ".')); 174 stringify('Got \b, \f, \n, \r, \t, \u0000, \\, and ".'));
176 Expect.stringEquals('"Got \\b\\f\\n\\r\\t\\u0000\\\\\\"."', 175 Expect.stringEquals('"Got \\b\\f\\n\\r\\t\\u0000\\\\\\"."',
177 stringify('Got \b\f\n\r\t\u0000\\".')); 176 stringify('Got \b\f\n\r\t\u0000\\".'));
178 } 177 }
OLDNEW
« no previous file with comments | « tests/standalone/typed_data_test.dart ('k') | tests/utils/recursive_import_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698