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

Unified Diff: tests/compiler/dart2js/deferred_load_graph_segmentation2_test.dart

Issue 169703003: Add prefix constraints for deferred imports. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 10 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: tests/compiler/dart2js/deferred_load_graph_segmentation2_test.dart
diff --git a/tests/compiler/dart2js/deferred_load_graph_segmentation2_test.dart b/tests/compiler/dart2js/deferred_load_graph_segmentation2_test.dart
index 5f21cc5129fa1eaa71e6ce1eb5158107565a7be8..3de5634674dcd9cc9f2acc734eeb866812ec2d7e 100644
--- a/tests/compiler/dart2js/deferred_load_graph_segmentation2_test.dart
+++ b/tests/compiler/dart2js/deferred_load_graph_segmentation2_test.dart
@@ -59,7 +59,7 @@ void main() {
const Map MEMORY_SOURCE_FILES = const {"main.dart": """
import "dart:async";
-@def import 'lib.dart' show f1;
+@def import 'lib.dart' as lib show f1;
import 'lib.dart' show f2;
const def = const DeferredLibrary("deferred");
@@ -67,7 +67,7 @@ const def = const DeferredLibrary("deferred");
void main() {
print(f2());
def.load().then((_) {
- print(f1());
+ print(lib.f1());
});
}
""", "lib.dart": """
« no previous file with comments | « tests/compiler/dart2js/deferred_emit_type_checks_test.dart ('k') | tests/compiler/dart2js/deferred_not_in_main_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698