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

Unified Diff: dart/tests/compiler/dart2js_extra/mirrors_test.dart

Issue 14646031: Implement invoke, setField, and getField (unminified). (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Address review comments. 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
« no previous file with comments | « dart/tests/compiler/dart2js_extra/mirror_test.dart ('k') | dart/tests/lib/mirrors/mirrors_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
}
« no previous file with comments | « dart/tests/compiler/dart2js_extra/mirror_test.dart ('k') | dart/tests/lib/mirrors/mirrors_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698