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

Unified Diff: tests/lib/async/deferred/deferred_api_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
« no previous file with comments | « tests/language/language.status ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/lib/async/deferred/deferred_api_test.dart
diff --git a/tests/lib/async/deferred/deferred_api_test.dart b/tests/lib/async/deferred/deferred_api_test.dart
index 7c6d3907bab7165af077dd66cc25152b02bdbf9d..f138935434b82f9316e831e105627acc211624af 100644
--- a/tests/lib/async/deferred/deferred_api_test.dart
+++ b/tests/lib/async/deferred/deferred_api_test.dart
@@ -12,7 +12,7 @@ import "package:expect/expect.dart";
import 'dart:async';
@lazy
-import 'deferred_api_library.dart';
+import 'deferred_api_library.dart' as lib;
const lazy = const DeferredLibrary('deferred_api_library');
@@ -23,14 +23,14 @@ main() {
lazy.load().then((bool didLoad) {
Expect.isTrue(didLoad);
Expect.equals(1, ++counter);
- Expect.equals(42, foo('b'));
+ Expect.equals(42, lib.foo('b'));
print('lazy was loaded');
});
Expect.equals(0, counter);
lazy.load().then((bool didLoad) {
Expect.isFalse(didLoad);
Expect.equals(2, ++counter);
- Expect.equals(42, foo('b'));
+ Expect.equals(42, lib.foo('b'));
print('lazy was loaded');
print('unittest-suite-success');
});
« no previous file with comments | « tests/language/language.status ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698