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

Unified Diff: tests/compiler/dart2js/deferred_load_graph_segmentation_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_load_graph_segmentation_test.dart
diff --git a/tests/compiler/dart2js/deferred_load_graph_segmentation_test.dart b/tests/compiler/dart2js/deferred_load_graph_segmentation_test.dart
index 6aed0b7684ce1437b291d94f809d12a5c35c8fb7..35377dda1d19853c5ea5a0dfee28912445fe8b54 100644
--- a/tests/compiler/dart2js/deferred_load_graph_segmentation_test.dart
+++ b/tests/compiler/dart2js/deferred_load_graph_segmentation_test.dart
@@ -121,18 +121,15 @@ void main() {
const Map MEMORY_SOURCE_FILES = const {
"main.dart":"""
import "dart:async";
-@def_main_1 import 'lib1.dart' as l1;
-@def_main_2 import 'lib2.dart' as l2;
-
-const def_main_1 = const DeferredLibrary("lib1");
-const def_main_2 = const DeferredLibrary("lib2");
+import 'lib1.dart' deferred as lib1;
+import 'lib2.dart' deferred as lib2;
void main() {
- def_main_1.load().then((_) {
- l1.foo1();
- new l1.C();
- def_main_2.load().then((_) {
- l2.foo2();
+ lib1.loadLibrary().then((_) {
+ lib1.foo1();
+ new lib1.C();
+ lib2.loadLibrary().then((_) {
+ lib2.foo2();
});
});
}
@@ -143,16 +140,14 @@ import "dart:async";
import "dart:html";
import "lib3.dart" as l3;
-@def_1_1 import "lib4.dart" as l4;
-
-const def_1_1 = const DeferredLibrary("lib4_1");
+import "lib4.dart" deferred as lib4_1;
class C {}
foo1() {
new InputElement();
- def_1_1.load().then((_) {
- l4.bar1();
+ lib4_1.loadLibrary().then((_) {
+ lib4_1.bar1();
});
return () {return 1 + l3.foo3();} ();
}
@@ -161,13 +156,11 @@ foo1() {
library lib2;
import "dart:async";
import "lib3.dart" as l3;
-@def_2_1 import "lib4.dart" as l4;
-
-const def_2_1 = const DeferredLibrary("lib4_2");
+import "lib4.dart" deferred as lib4_2;
foo2() {
- def_2_1.load().then((_) {
- l4.bar2();
+ lib4_2.loadLibrary().then((_) {
+ lib4_2.bar2();
});
return () {return 2+l3.foo3();} ();
}

Powered by Google App Engine
This is Rietveld 408576698