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

Unified Diff: test/codegen/language/reexport_core_test.dart

Issue 1263583005: implement exports, fixes #141 (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: rebase Created 5 years, 4 months 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 side-by-side diff with in-line comments
Download patch
Index: test/codegen/language/reexport_core_test.dart
diff --git a/test/codegen/language/reexport_core_test.dart b/test/codegen/language/reexport_core_test.dart
new file mode 100644
index 0000000000000000000000000000000000000000..23964c4782c82b7a34170e5c2b0007ee4a5863dd
--- /dev/null
+++ b/test/codegen/language/reexport_core_test.dart
@@ -0,0 +1,21 @@
+// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
+// for details. All rights reserved. Use of this source code is governed by a
+// BSD-style license that can be found in the LICENSE file.
+
+// Tests that exports are handled for libraries loaded prior to the entry point
+// library.
+//
+// This test uses the fact that dart2js loads dart:core before the
+// reexport_core_helper and reexport_core_test libraries and the exports of
+// dart:core is therefore computed before the exports of reexport_core_helper.
+
+library reexport_core_test;
+
+import "package:expect/expect.dart";
+import 'reexport_core_helper.dart' as core;
+
+void main() {
+ var o = new Object();
+ Expect.isTrue(o is core.Object);
+}
+

Powered by Google App Engine
This is Rietveld 408576698