Chromium Code Reviews| OLD | NEW |
|---|---|
| (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 } | |
| OLD | NEW |