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

Side by Side Diff: tests/language/argument_definition3_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 main() { 7 main() {
6 new Param.test1(false); 8 new Param.test1(false);
7 new Param.test1(true, 42); 9 new Param.test1(true, 42);
8 10
9 new Param.test2(false); 11 new Param.test2(false);
10 new Param.test2(true, 42); 12 new Param.test2(true, 42);
11 13
12 new Param.test3(false); 14 new Param.test3(false);
13 new Param.test3(true, 42); 15 new Param.test3(true, 42);
14 16
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 69
68 Param.test6(passed, [int a = 0]) : field = ?a, otherField = a++ { 70 Param.test6(passed, [int a = 0]) : field = ?a, otherField = a++ {
69 Expect.equals(passed, ?a); 71 Expect.equals(passed, ?a);
70 Expect.equals(passed, field); 72 Expect.equals(passed, field);
71 Expect.equals(passed ? 43 : 1, a); 73 Expect.equals(passed ? 43 : 1, a);
72 } 74 }
73 75
74 Param.test7() : super.withUpdate(true, 42); 76 Param.test7() : super.withUpdate(true, 42);
75 Param.test8() : super.withUpdate(false); 77 Param.test8() : super.withUpdate(false);
76 } 78 }
OLDNEW
« no previous file with comments | « tests/language/argument_definition2_test.dart ('k') | tests/language/argument_definition4_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698