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

Unified Diff: dart/tests/lib/async/deferred/deferred_constant_test.dart

Issue 15096006: Handle constants that mix eager and deferred types. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 7 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: dart/tests/lib/async/deferred/deferred_constant_test.dart
diff --git a/dart/tests/lib/async/deferred/deferred_constant_test.dart b/dart/tests/lib/async/deferred/deferred_constant_test.dart
new file mode 100644
index 0000000000000000000000000000000000000000..e15812a51e3e97939233a123e8687e3bfa783f15
--- /dev/null
+++ b/dart/tests/lib/async/deferred/deferred_constant_test.dart
@@ -0,0 +1,20 @@
+// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
ngeoffray 2013/05/14 07:17:38 Could you provide a test that fails too, when the
ahe 2013/05/14 10:01:24 http://dartbug.com/10640
+// 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 "package:expect/expect.dart";
+import 'dart:async';
+
+@lazy
+import 'deferred_constant_library.dart';
+
+const lazy = const DeferredLibrary('deferred_constant_library');
+
+main() {
+ print('unittest-suite-wait-for-done');
+
+ lazy.load().then((_) {
+ Expect.listEquals(const [const Constant(42)], [new Constant(42)]);
+ print('unittest-suite-success');
+ });
+}

Powered by Google App Engine
This is Rietveld 408576698