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

Unified Diff: tests/compiler/dart2js_extra/deferred/deferred_function_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_extra/deferred/deferred_function_test.dart
diff --git a/tests/compiler/dart2js_extra/deferred/deferred_function_test.dart b/tests/compiler/dart2js_extra/deferred/deferred_function_test.dart
index e6f7f8827c8153204f08defedf3f41db687ef94d..9bb7fd2ab3f43a22e828023accd6bb202c35cc33 100644
--- a/tests/compiler/dart2js_extra/deferred/deferred_function_test.dart
+++ b/tests/compiler/dart2js_extra/deferred/deferred_function_test.dart
@@ -8,11 +8,7 @@
import 'package:async_helper/async_helper.dart';
import 'package:expect/expect.dart';
-import 'dart:async';
-
-@lazy import 'deferred_function_library.dart' as lib;
-
-const lazy = const DeferredLibrary('deferred_function_library');
+import 'deferred_function_library.dart' deferred as lib;
isError(e) => e is Error;
@@ -25,7 +21,7 @@ main() {
Expect.throws(readFoo, isError);
int counter = 0;
asyncStart();
- lazy.load().then((_) {
+ lib.loadLibrary().then((_) {
Expect.equals(1, ++counter);
print('lazy was loaded');
Expect.equals(42, lib.foo('b'));
@@ -34,7 +30,7 @@ main() {
});
Expect.equals(0, counter);
asyncStart();
- lazy.load().then((_) {
+ lib.loadLibrary().then((_) {
Expect.equals(2, ++counter);
print('lazy was loaded');
Expect.equals(42, lib.foo('b'));

Powered by Google App Engine
This is Rietveld 408576698