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

Side by Side Diff: tests/language/implicit_this_test.dart

Issue 12743005: Revert "Remove Expect from core library." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Reupload (first upload failed). Created 7 years, 9 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
7 abstract class Interface { 5 abstract class Interface {
8 final x; 6 final x;
9 } 7 }
10 8
11 abstract class Abstract implements Interface { 9 abstract class Abstract implements Interface {
12 String toString() => x.toString(); 10 String toString() => x.toString();
13 } 11 }
14 12
15 // This class does not implement "x" either, but it is not marked 13 // This class does not implement "x" either, but it is not marked
16 // abstract. 14 // abstract.
(...skipping 21 matching lines...) Expand all
38 void main() { 36 void main() {
39 var x = new Abstract(); /// 02: runtime error 37 var x = new Abstract(); /// 02: runtime error
40 var y = new SubAbstract1(); /// 01: continued 38 var y = new SubAbstract1(); /// 01: continued
41 var z = new SubAbstract2(); 39 var z = new SubAbstract2();
42 var a = new SubSubAbstract2(); /// 04: continued 40 var a = new SubSubAbstract2(); /// 04: continued
43 Expect.equals(x, x); /// 02: continued 41 Expect.equals(x, x); /// 02: continued
44 Expect.equals('7', new Concrete().toString()); 42 Expect.equals('7', new Concrete().toString());
45 Expect.equals('42', new SubConcrete(42).toString()); 43 Expect.equals('42', new SubConcrete(42).toString());
46 Expect.equals('7', new SubConcrete(new Concrete()).toString()); 44 Expect.equals('7', new SubConcrete(new Concrete()).toString());
47 } 45 }
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