OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 that exports are handled for libraries loaded prior to the entry point | 5 // Tests that exports are handled for libraries loaded prior to the entry point |
6 // library. | 6 // library. |
7 // | 7 // |
8 // This test uses the fact that dart2js loads dart:core before the | 8 // This test uses the fact that dart2js loads dart:core before the |
9 // reexport_core_helper and reexport_core_test libraries and the exports of | 9 // reexport_core_helper and reexport_core_test libraries and the exports of |
10 // dart:core is therefore computed before the exports of reexport_core_helper. | 10 // dart:core is therefore computed before the exports of reexport_core_helper. |
11 | 11 |
12 library reexport_core_test; | 12 library reexport_core_test; |
13 | 13 |
| 14 import "package:expect/expect.dart"; |
14 import 'reexport_core_helper.dart' as core; | 15 import 'reexport_core_helper.dart' as core; |
15 | 16 |
16 void main() { | 17 void main() { |
17 var o = new Object(); | 18 var o = new Object(); |
18 Expect.isTrue(o is core.Object); | 19 Expect.isTrue(o is core.Object); |
19 } | 20 } |
20 | 21 |
OLD | NEW |