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

Side by Side Diff: tests/language/implicit_this_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/implicit_scope_test.dart ('k') | tests/language/implied_interface_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 abstract class Interface { 7 abstract class Interface {
6 final x; 8 final x;
7 } 9 }
8 10
9 abstract class Abstract implements Interface { 11 abstract class Abstract implements Interface {
10 String toString() => x.toString(); 12 String toString() => x.toString();
11 } 13 }
12 14
13 // This class does not implement "x" either, but it is not marked 15 // This class does not implement "x" either, but it is not marked
14 // abstract. 16 // abstract.
(...skipping 21 matching lines...) Expand all
36 void main() { 38 void main() {
37 var x = new Abstract(); /// 02: runtime error 39 var x = new Abstract(); /// 02: runtime error
38 var y = new SubAbstract1(); /// 01: continued 40 var y = new SubAbstract1(); /// 01: continued
39 var z = new SubAbstract2(); 41 var z = new SubAbstract2();
40 var a = new SubSubAbstract2(); /// 04: continued 42 var a = new SubSubAbstract2(); /// 04: continued
41 Expect.equals(x, x); /// 02: continued 43 Expect.equals(x, x); /// 02: continued
42 Expect.equals('7', new Concrete().toString()); 44 Expect.equals('7', new Concrete().toString());
43 Expect.equals('42', new SubConcrete(42).toString()); 45 Expect.equals('42', new SubConcrete(42).toString());
44 Expect.equals('7', new SubConcrete(new Concrete()).toString()); 46 Expect.equals('7', new SubConcrete(new Concrete()).toString());
45 } 47 }
OLDNEW
« no previous file with comments | « tests/language/implicit_scope_test.dart ('k') | tests/language/implied_interface_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698