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

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

Issue 12212016: Remove Expect from core library. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Add deprecation comment for ExpectException and revert one test. Created 7 years, 8 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/isolate/stream_mangling_test.dart ('k') | tests/language/abstract_getter_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) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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_tests; 5 library json_tests;
6 import "package:expect/expect.dart";
6 import 'dart:json' as json; 7 import 'dart:json' as json;
7 import 'dart:html'; 8 import 'dart:html';
8 import '../../pkg/unittest/lib/unittest.dart'; 9 import '../../pkg/unittest/lib/unittest.dart';
9 import '../../pkg/unittest/lib/html_config.dart'; 10 import '../../pkg/unittest/lib/html_config.dart';
10 11
11 main() { 12 main() {
12 useHtmlConfiguration(); 13 useHtmlConfiguration();
13 test('Parse', () { 14 test('Parse', () {
14 // Scalars. 15 // Scalars.
15 expect(json.parse(' 5 '), equals(5)); 16 expect(json.parse(' 5 '), equals(5));
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 153
153 /** 154 /**
154 * Checks that the argument can be converted to a JSON string and 155 * Checks that the argument can be converted to a JSON string and
155 * back, and produce something equivalent to the argument. 156 * back, and produce something equivalent to the argument.
156 */ 157 */
157 validateRoundTrip(expected) { 158 validateRoundTrip(expected) {
158 expect(json.parse(json.stringify(expected)), equals(expected)); 159 expect(json.parse(json.stringify(expected)), equals(expected));
159 } 160 }
160 161
161 162
OLDNEW
« no previous file with comments | « tests/isolate/stream_mangling_test.dart ('k') | tests/language/abstract_getter_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698