| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // BSD-style license that can be found in the LICENSE file. | |
| 4 | |
| 5 // Tests of invocations. | |
| 6 | |
| 7 import 'expect.dart'; | |
| 8 | |
| 9 test0(x) { | |
| 10 Expect.isTrue(x == 'argument0'); | |
| 11 return 'return0'; | |
| 12 } | |
| 13 | |
| 14 class C0 { | |
| 15 static test1(x) { | |
| 16 Expect.isTrue(x == 'argument1'); | |
| 17 return 'return1'; | |
| 18 } | |
| 19 } | |
| 20 | |
| 21 class C1 { | |
| 22 test2(x) { | |
| 23 Expect.isTrue(x == 'argument2'); | |
| 24 return 'return2'; | |
| 25 } | |
| 26 } | |
| 27 | |
| 28 class C2 { | |
| 29 C2.test3(x) { | |
| 30 Expect.isTrue(x == 'argument3'); | |
| 31 } | |
| 32 } | |
| 33 | |
| 34 main() { | |
| 35 Expect.isTrue(test0('argument0') == 'return0'); | |
| 36 Expect.isTrue(C0.test1('argument1') == 'return1'); | |
| 37 Expect.isTrue(new C1().test2('argument2') == 'return2'); | |
| 38 var c = new C2.test3('argument3'); | |
| 39 Expect.isTrue(c is C2); | |
| 40 } | |
| OLD | NEW |