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

Unified Diff: dart/tests/lib/mirrors/mirrors_used_merge_test.dart

Issue 113283008: Use growable lists. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Use the right constructor to create a List from an iterable. Created 6 years, 11 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/sdk/lib/_internal/compiler/implementation/mirrors_used.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/tests/lib/mirrors/mirrors_used_merge_test.dart
diff --git a/dart/tests/compiler/dart2js_extra/mirrors_used_native_test.dart b/dart/tests/lib/mirrors/mirrors_used_merge_test.dart
similarity index 50%
copy from dart/tests/compiler/dart2js_extra/mirrors_used_native_test.dart
copy to dart/tests/lib/mirrors/mirrors_used_merge_test.dart
index a546682f0c82ad8145e358df464f8ea016b85000..534c5e71dd2ad7bd495a54afa24d99001495c707 100644
--- a/dart/tests/compiler/dart2js_extra/mirrors_used_native_test.dart
+++ b/dart/tests/lib/mirrors/mirrors_used_merge_test.dart
@@ -2,13 +2,14 @@
// 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.
-@MirrorsUsed(targets: 'List')
-import 'dart:mirrors';
+/// Test that two MirrorsUsed annotations can be merged with out crashing
+/// dart2js.
-import 'package:expect/expect.dart';
+@MirrorsUsed(symbols: const ['foo'])
+@MirrorsUsed(symbols: const ['bar'])
+import 'dart:mirrors';
main() {
- Expect.equals(3, reflect([1, 2, 3]).getField(#length).reflectee);
- Expect.throws(() => reflect({"hest": 42}).getField(#length),
- (e) => e is UnsupportedError);
+ // Do nothing, just make sure that merging the annotations doesn't crash
+ // dart2js.
}
« no previous file with comments | « dart/sdk/lib/_internal/compiler/implementation/mirrors_used.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698