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

Unified Diff: tests/language/deferred_constraints_constants_test.dart

Issue 201613006: Introduces the new syntax for deferred loading (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 9 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/language/deferred_constraints_constants_test.dart
diff --git a/tests/language/deferred_constraints_constants_test.dart b/tests/language/deferred_constraints_constants_test.dart
index be446424d67a309b17d019136cb1bb6a95f15015..cbeb1024ea8e95d5b583a5ecd09660a53621241c 100644
--- a/tests/language/deferred_constraints_constants_test.dart
+++ b/tests/language/deferred_constraints_constants_test.dart
@@ -2,13 +2,10 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-import "dart:async";
import 'package:expect/expect.dart';
import 'package:async_helper/async_helper.dart';
-@lazy import "deferred_constraints_constants_lib.dart" as lib;
-
-const lazy = const DeferredLibrary('lib');
+import "deferred_constraints_constants_lib.dart" deferred as lib;
const myConst1 =
lib.constantInstance; /// reference1: compile-time error
@@ -47,7 +44,7 @@ void main() {
var a2 = myConst2;
asyncStart();
- lazy.load().then((_) {
+ lib.loadLibrary().then((_) {
var instance = lib.constantInstance;
var c1 = const lib.Const(); /// constructor1: compile-time error
var c2 = const lib.Const.namedConstructor(); /// constructor2: compile-time error

Powered by Google App Engine
This is Rietveld 408576698