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

Unified Diff: tests/compiler/dart2js_extra/deferred/deferred_constant2_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_extra/deferred/deferred_constant2_test.dart
diff --git a/tests/compiler/dart2js_extra/deferred/deferred_constant2_test.dart b/tests/compiler/dart2js_extra/deferred/deferred_constant2_test.dart
index 21c4a7d1b2442521cd007df6ef08f736100e8056..6ea37523cd75c7fc337001068c4b76181767da54 100644
--- a/tests/compiler/dart2js_extra/deferred/deferred_constant2_test.dart
+++ b/tests/compiler/dart2js_extra/deferred/deferred_constant2_test.dart
@@ -7,13 +7,11 @@ import 'package:expect/expect.dart';
import 'dart:async';
-@lazy import 'deferred_class_library2.dart' as lib;
-
-const lazy = const DeferredLibrary('deferred_class_library2');
+import 'deferred_class_library2.dart' deferred as lib;
main() {
asyncStart();
- lazy.load().then((_) {
+ lib.loadLibrary().then((_) {
Expect.equals(499, lib.C1.value);
asyncEnd();
});

Powered by Google App Engine
This is Rietveld 408576698