OLD | NEW |
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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 'dart:async'; | 5 import 'dart:async'; |
6 import 'package:async_helper/async_helper.dart'; | 6 import 'package:async_helper/async_helper.dart'; |
7 import 'package:expect/expect.dart'; | |
8 import 'compiler_helper.dart'; | 7 import 'compiler_helper.dart'; |
9 | 8 |
10 const String TEST_1 = r""" | 9 const String TEST_1 = r""" |
11 import 'dart:_foreign_helper'; | 10 import 'dart:_foreign_helper'; |
12 main() { | 11 main() { |
13 // present: 'Moose' | 12 // present: 'Moose' |
14 JS('', 'Moose'); | 13 JS('', 'Moose'); |
15 | 14 |
16 // absent: 'Phantom' - pure. | 15 // absent: 'Phantom' - pure. |
17 JS('returns: bool;effects:none;depends:none;throws:never', 'Phantom'); | 16 JS('returns: bool;effects:none;depends:none;throws:never', 'Phantom'); |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 } | 97 } |
99 | 98 |
100 asyncTest(() => Future.wait([ | 99 asyncTest(() => Future.wait([ |
101 check(TEST_1), | 100 check(TEST_1), |
102 check(TEST_2), | 101 check(TEST_2), |
103 check(TEST_3), | 102 check(TEST_3), |
104 check(TEST_4), | 103 check(TEST_4), |
105 check(TEST_5), | 104 check(TEST_5), |
106 ])); | 105 ])); |
107 } | 106 } |
OLD | NEW |