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

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: Created 6 years, 5 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 311e085ca47f9c1aaa06388353ed2797590ce26e..d9ffc99a861044e6dc4a5a160003e9dcfd744b54 100644
--- a/tests/compiler/dart2js/deferred_load_graph_segmentation_test.dart
+++ b/tests/compiler/dart2js/deferred_load_graph_segmentation_test.dart
@@ -119,18 +119,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();
});
});
}
@@ -141,16 +138,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();} ();
}
@@ -159,13 +154,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