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

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

Issue 429883002: Remove support for the DeferredLibrary annotation and remove tests of it (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Deprecated until sdk 1.8 remove cruft from unused DeferredLibrary Created 6 years, 3 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_not_in_main_test.dart
diff --git a/tests/compiler/dart2js/deferred_not_in_main_test.dart b/tests/compiler/dart2js/deferred_not_in_main_test.dart
index 65e70fbdaba21ce635f2058e1298d618c19178f5..e2ba40a4c8966473a7dc4e6bd6d1b8a7526138d0 100644
--- a/tests/compiler/dart2js/deferred_not_in_main_test.dart
+++ b/tests/compiler/dart2js/deferred_not_in_main_test.dart
@@ -72,13 +72,12 @@ void main() {
"lib1.dart":"""
library lib1;
-import 'dart:async';
-@def import 'lib2.dart' as lib2;
+import 'lib2.dart' deferred as lib2;
const def = const DeferredLibrary('lib2');
void foo1() {
- def.load().then((_) => lib2.foo2());
+ lib1.loadLibrary().then((_) => lib2.foo2());
}
""",
"lib2.dart":"""

Powered by Google App Engine
This is Rietveld 408576698