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/kernel/unsorted/global_field_initializer_test.dart

Issue 2434123003: Merge more Kernel infrastructure from kernel_sdk SDK fork. (Closed)
Patch Set: Created 4 years, 2 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
OLDNEW
(Empty)
1 import 'expect.dart';
Kevin Millikin (Google) 2016/10/21 09:10:57 Copyright header.
Vyacheslav Egorov (Google) 2016/10/21 13:39:43 Done.
2
3 var intField = 1;
4 var doubleField = 3.1415;
5 var stringField = "hello";
6 var nullField = null;
7 var nullField2;
8 var composed = "hello" + " " + "world";
9
10 class A {
11 static var intField = 1;
12 static var doubleField = 3.1415;
13 static var stringField = "hello";
14 static var nullField = null;
15 static var nullField2;
16 static var composed = "hello" + " " + "world";
17 }
18
19 main() {
20 Expect.isTrue(intField == 1);
21 Expect.isTrue(doubleField == 3.1415);
22 Expect.isTrue(stringField == "hello");
23 Expect.isTrue(nullField == null);
24 Expect.isTrue(nullField2 == null);
25 Expect.isTrue(composed == "hello world");
26
27 Expect.isTrue(A.intField == 1);
28 Expect.isTrue(A.doubleField == 3.1415);
29 Expect.isTrue(A.stringField == "hello");
30 Expect.isTrue(A.nullField == null);
31 Expect.isTrue(A.nullField2 == null);
32 Expect.isTrue(A.composed == "hello world");
33 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698