| Index: dart/tests/compiler/dart2js_extra/mirrors_test.dart
|
| diff --git a/dart/tests/language/closure_in_field_initializer_test.dart b/dart/tests/compiler/dart2js_extra/mirrors_test.dart
|
| similarity index 55%
|
| copy from dart/tests/language/closure_in_field_initializer_test.dart
|
| copy to dart/tests/compiler/dart2js_extra/mirrors_test.dart
|
| index bf0198aa4b3ae78e6ad50f19e4e08a573daf80d4..d9df6c57ea8b7e9d50f251cedf92a4337c8605cb 100644
|
| --- a/dart/tests/language/closure_in_field_initializer_test.dart
|
| +++ b/dart/tests/compiler/dart2js_extra/mirrors_test.dart
|
| @@ -2,15 +2,11 @@
|
| // 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";
|
| +// This test should be removed when dart2js can pass all mirror tests.
|
| +// TODO(ahe): Remove this test.
|
|
|
| -class Foo {
|
| - var closures = {
|
| - 'a': (x, y) => x + y
|
| - };
|
| -}
|
| +import '../../lib/mirrors/mirrors_test.dart';
|
|
|
| main() {
|
| - var closures = new Foo().closures;
|
| - Expect.equals(6, closures['a'](4, 2));
|
| + mainWithArgument(isDart2js: true);
|
| }
|
|
|