Chromium Code Reviews| 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'); |
| + }); |
| +} |