| OLD | NEW | 
|   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  Loading... | 
|  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 } | 
| OLD | NEW |