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

Side by Side Diff: tests/kernel/unsorted/global_field_initializer_test.dart

Issue 2454993003: Remove custom expect.dart from Kernel tests (Closed)
Patch Set: Created 4 years, 1 month 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
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, 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 'expect.dart'; 5 import 'package:expect/expect.dart';
6 6
7 var intField = 1; 7 var intField = 1;
8 var doubleField = 3.1415; 8 var doubleField = 3.1415;
9 var stringField = "hello"; 9 var stringField = "hello";
10 var nullField = null; 10 var nullField = null;
11 var nullField2; 11 var nullField2;
12 var composed = "hello" + " " + "world"; 12 var composed = "hello" + " " + "world";
13 13
14 class A { 14 class A {
15 static var intField = 1; 15 static var intField = 1;
(...skipping 12 matching lines...) Expand all
28 Expect.isTrue(nullField2 == null); 28 Expect.isTrue(nullField2 == null);
29 Expect.isTrue(composed == "hello world"); 29 Expect.isTrue(composed == "hello world");
30 30
31 Expect.isTrue(A.intField == 1); 31 Expect.isTrue(A.intField == 1);
32 Expect.isTrue(A.doubleField == 3.1415); 32 Expect.isTrue(A.doubleField == 3.1415);
33 Expect.isTrue(A.stringField == "hello"); 33 Expect.isTrue(A.stringField == "hello");
34 Expect.isTrue(A.nullField == null); 34 Expect.isTrue(A.nullField == null);
35 Expect.isTrue(A.nullField2 == null); 35 Expect.isTrue(A.nullField2 == null);
36 Expect.isTrue(A.composed == "hello world"); 36 Expect.isTrue(A.composed == "hello world");
37 } 37 }
OLDNEW
« no previous file with comments | « tests/kernel/unsorted/getters_and_setters_test.dart ('k') | tests/kernel/unsorted/instance_getters_and_setters_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698