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

Unified Diff: tests/compiler/dart2js_extra/deferred/deferred_constant5_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_extra/deferred/deferred_constant5_test.dart
diff --git a/tests/compiler/dart2js_extra/deferred/deferred_constant5_test.dart b/tests/compiler/dart2js_extra/deferred/deferred_constant5_test.dart
index 14abc76705e7805801b8705f62180b4442b22075..e0d241caad2544529bc7b80298d2eaab2a945f73 100644
--- a/tests/compiler/dart2js_extra/deferred/deferred_constant5_test.dart
+++ b/tests/compiler/dart2js_extra/deferred/deferred_constant5_test.dart
@@ -7,7 +7,7 @@ import 'package:expect/expect.dart';
import 'dart:async';
-@lazy import 'deferred_class_library2.dart';
+@lazy import 'deferred_class_library2.dart' as lib;
const lazy = const DeferredLibrary('deferred_class_library2');
@@ -15,12 +15,12 @@ main() {
asyncStart();
lazy.load().then((bool didLoad) {
Expect.isTrue(didLoad);
- Expect.equals(321, const Gee.n321().value);
- Expect.equals(246, const Gee.n246().value);
- Expect.equals(888, const Gee.n888().value);
- Expect.equals(321, const Gee2.n321().value);
- Expect.equals(151, const Gee2.n151().value);
- Expect.equals(888, const Gee2.n888().value);
+ Expect.equals(321, const lib.Gee.n321().value);
+ Expect.equals(246, const lib.Gee.n246().value);
+ Expect.equals(888, const lib.Gee.n888().value);
+ Expect.equals(321, const lib.Gee2.n321().value);
+ Expect.equals(151, const lib.Gee2.n151().value);
+ Expect.equals(888, const lib.Gee2.n888().value);
asyncEnd();
});
}

Powered by Google App Engine
This is Rietveld 408576698