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

Side by Side Diff: tests/language/super_call4_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/language/super_call3_test.dart ('k') | tests/language/super_call_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 import "package:expect/expect.dart";
6
5 // Checks that noSuchMethod is resolved in the super class and not in the 7 // Checks that noSuchMethod is resolved in the super class and not in the
6 // current class. 8 // current class.
7 9
8 class C { 10 class C {
9 E e = new E(); 11 E e = new E();
10 12
11 bool noSuchMethod(InvocationMirror im) { 13 bool noSuchMethod(InvocationMirror im) {
12 if (im.memberName == 'foo') { 14 if (im.memberName == 'foo') {
13 return im.positionalArguments.isEmpty && 15 return im.positionalArguments.isEmpty &&
14 im.namedArguments.isEmpty && 16 im.namedArguments.isEmpty &&
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 bool boz(int a, {int c}) => a == 1 && c == 2; 60 bool boz(int a, {int c}) => a == 1 && c == 2;
59 } 61 }
60 62
61 main() { 63 main() {
62 var d = new D(); 64 var d = new D();
63 Expect.isTrue(d.test1()); 65 Expect.isTrue(d.test1());
64 Expect.isTrue(d.test2()); 66 Expect.isTrue(d.test2());
65 Expect.isTrue(d.test3()); 67 Expect.isTrue(d.test3());
66 Expect.isTrue(d.test4()); 68 Expect.isTrue(d.test4());
67 } 69 }
OLDNEW
« no previous file with comments | « tests/language/super_call3_test.dart ('k') | tests/language/super_call_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698