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

Side by Side Diff: tests/compiler/dart2js_extra/super_call_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
OLDNEW
1 class A { 1 class A {
2 foo() => "A.foo${baz()}"; 2 foo() => "A.foo${baz()}";
3 baz() => "A.baz"; 3 baz() => "A.baz";
4 hest(String s, int i) => "$s$i"; 4 hest(String s, int i) => "$s$i";
5 } 5 }
6 6
7 import "package:expect/expect.dart";
8
9 class B extends A { 7 class B extends A {
10 foo() => "B.foo${super.foo()}"; 8 foo() => "B.foo${super.foo()}";
11 baz() => "B.baz"; 9 baz() => "B.baz";
12 hest(s, i) => "B.hest${super.hest(s, i)}"; 10 hest(s, i) => "B.hest${super.hest(s, i)}";
13 } 11 }
14 12
15 main() { 13 main() {
16 B b = new B(); 14 B b = new B();
17 Expect.equals("B.fooA.fooB.baz", b.foo()); 15 Expect.equals("B.fooA.fooB.baz", b.foo());
18 Expect.equals("B.hestfisk42", b.hest('fisk', 42)); 16 Expect.equals("B.hestfisk42", b.hest('fisk', 42));
19 } 17 }
OLDNEW
« no previous file with comments | « tests/compiler/dart2js_extra/string_interpolation_test.dart ('k') | tests/compiler/dart2js_extra/super_constructor1_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698