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

Side by Side Diff: tests/kernel/unsorted/invocation_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 // Tests of invocations. 5 // Tests of invocations.
6 6
7 import 'expect.dart'; 7 import 'package:expect/expect.dart';
8 8
9 test0(x) { 9 test0(x) {
10 Expect.isTrue(x == 'argument0'); 10 Expect.isTrue(x == 'argument0');
11 return 'return0'; 11 return 'return0';
12 } 12 }
13 13
14 class C0 { 14 class C0 {
15 static test1(x) { 15 static test1(x) {
16 Expect.isTrue(x == 'argument1'); 16 Expect.isTrue(x == 'argument1');
17 return 'return1'; 17 return 'return1';
(...skipping 13 matching lines...) Expand all
31 } 31 }
32 } 32 }
33 33
34 main() { 34 main() {
35 Expect.isTrue(test0('argument0') == 'return0'); 35 Expect.isTrue(test0('argument0') == 'return0');
36 Expect.isTrue(C0.test1('argument1') == 'return1'); 36 Expect.isTrue(C0.test1('argument1') == 'return1');
37 Expect.isTrue(new C1().test2('argument2') == 'return2'); 37 Expect.isTrue(new C1().test2('argument2') == 'return2');
38 var c = new C2.test3('argument3'); 38 var c = new C2.test3('argument3');
39 Expect.isTrue(c is C2); 39 Expect.isTrue(c is C2);
40 } 40 }
OLDNEW
« no previous file with comments | « tests/kernel/unsorted/invocation_errors_test.dart ('k') | tests/kernel/unsorted/klass_field_initializer_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698