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

Side by Side Diff: tests/language/parameter_initializer_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
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 import "package:expect/expect.dart";
6
5 class ParameterInitializerTest { 7 class ParameterInitializerTest {
6 8
7 static testMain() { 9 static testMain() {
8 var obj = new Foo.untyped(1); 10 var obj = new Foo.untyped(1);
9 Expect.equals(1, obj.x); 11 Expect.equals(1, obj.x);
10 12
11 obj = new Foo.supertype(9); 13 obj = new Foo.supertype(9);
12 Expect.equals(9, obj.x); 14 Expect.equals(9, obj.x);
13 15
14 obj = new Foo.subtype(7); 16 obj = new Foo.subtype(7);
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 Expect.equals(x_, 1); 76 Expect.equals(x_, 1);
75 77
76 // There is no way to get to the field in Foo. 78 // There is no way to get to the field in Foo.
77 Expect.equals(super.x, 1); 79 Expect.equals(super.x, 1);
78 } 80 }
79 } 81 }
80 82
81 main() { 83 main() {
82 ParameterInitializerTest.testMain(); 84 ParameterInitializerTest.testMain();
83 } 85 }
OLDNEW
« no previous file with comments | « tests/language/parameter_initializer6_negative_test.dart ('k') | tests/language/parameter_name_conflict_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698