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

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

Issue 12212016: Remove Expect from core library. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated latest tests. 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 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 // Regression test case for dart2js bug where the getter for y wasn't 5 // Regression test case for dart2js bug where the getter for y wasn't
6 // properly mixed in. 6 // properly mixed in.
7 7
8 import "package:expect/expect.dart";
9
8 class C { 10 class C {
9 int x; 11 int x;
10 int get y => x; 12 int get y => x;
11 } 13 }
12 14
13 class E { 15 class E {
14 int z = 10; 16 int z = 10;
15 } 17 }
16 18
17 class D extends E with C { 19 class D extends E with C {
18 int w = 42; 20 int w = 42;
19 } 21 }
20 22
21 main() { 23 main() {
22 var d = new D(); 24 var d = new D();
23 d.x = 37; 25 d.x = 37;
24 Expect.equals(37, d.x); 26 Expect.equals(37, d.x);
25 Expect.equals(10, d.z); 27 Expect.equals(10, d.z);
26 Expect.equals(42, d.w); 28 Expect.equals(42, d.w);
27 Expect.equals(37, d.y); 29 Expect.equals(37, d.y);
28 } 30 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698