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

Side by Side Diff: tests/kernel/unsorted/field_dispatcher_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 class A { 7 class A {
8 Function fun; 8 Function fun;
9 A(this.fun); 9 A(this.fun);
10 } 10 }
11 11
12 globalFunctionPositional(int a, [int b = 42]) => a + b; 12 globalFunctionPositional(int a, [int b = 42]) => a + b;
13 13
14 globalFunctionNamed(int a, {int b: 42}) => a + b; 14 globalFunctionNamed(int a, {int b: 42}) => a + b;
15 15
(...skipping 12 matching lines...) Expand all
28 Expect.isTrue(new A(globalFunctionPositional).fun(1) == 43); 28 Expect.isTrue(new A(globalFunctionPositional).fun(1) == 43);
29 Expect.isTrue(new A(globalFunctionNamed).fun(1, b: 2) == 3); 29 Expect.isTrue(new A(globalFunctionNamed).fun(1, b: 2) == 3);
30 Expect.isTrue(new A(globalFunctionNamed).fun(1) == 43); 30 Expect.isTrue(new A(globalFunctionNamed).fun(1) == 43);
31 31
32 var foo = new Foo(100); 32 var foo = new Foo(100);
33 Expect.isTrue(new A(foo.methodFunctionPositional).fun(1, 2) == 103); 33 Expect.isTrue(new A(foo.methodFunctionPositional).fun(1, 2) == 103);
34 Expect.isTrue(new A(foo.methodFunctionPositional).fun(1) == 143); 34 Expect.isTrue(new A(foo.methodFunctionPositional).fun(1) == 143);
35 Expect.isTrue(new A(foo.methodFunctionNamed).fun(1, b: 2) == 103); 35 Expect.isTrue(new A(foo.methodFunctionNamed).fun(1, b: 2) == 103);
36 Expect.isTrue(new A(foo.methodFunctionNamed).fun(1) == 143); 36 Expect.isTrue(new A(foo.methodFunctionNamed).fun(1) == 143);
37 } 37 }
OLDNEW
« no previous file with comments | « tests/kernel/unsorted/factory_regression_test.dart ('k') | tests/kernel/unsorted/finally_contexts_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698