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

Side by Side Diff: tests/compiler/dart2js_extra/field_initializer_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 // 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 class A { 5 class A {
8 static var a; 6 static var a;
9 static var b = c; 7 static var b = c;
10 static const var c = 499; 8 static const var c = 499;
11 static const var d = c; 9 static const var d = c;
12 static const var e = d; 10 static const var e = d;
13 static const var f = B.g; 11 static const var f = B.g;
14 static const var h = true; 12 static const var h = true;
15 static const var i = false; 13 static const var i = false;
16 static const var j = n; 14 static const var j = n;
(...skipping 30 matching lines...) Expand all
47 A.b = 42; 45 A.b = 42;
48 Expect.equals(42, A.b); 46 Expect.equals(42, A.b);
49 Expect.equals(499, A.c); 47 Expect.equals(499, A.c);
50 Expect.equals(499, A.a); 48 Expect.equals(499, A.a);
51 } 49 }
52 50
53 main() { 51 main() {
54 testInitialValues(); 52 testInitialValues();
55 testMutation(); 53 testMutation();
56 } 54 }
OLDNEW
« no previous file with comments | « tests/compiler/dart2js_extra/field_in_constructor_test.dart ('k') | tests/compiler/dart2js_extra/fields_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698