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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // 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
2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file.
4
5 import "package:expect/expect.dart";
6 import 'dart:async';
7
8 @lazy
9 import 'deferred_constant_library.dart';
10
11 const lazy = const DeferredLibrary('deferred_constant_library');
12
13 main() {
14 print('unittest-suite-wait-for-done');
15
16 lazy.load().then((_) {
17 Expect.listEquals(const [const Constant(42)], [new Constant(42)]);
18 print('unittest-suite-success');
19 });
20 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698