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

Unified Diff: test_reflectable/test/metadata_test.dart

Issue 1289933004: Implements support for reflection on parameters. (Closed) Base URL: https://github.com/dart-lang/reflectable.git@master
Patch Set: Merging with code from Sigurd, caused several adjustments Created 5 years, 4 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 | « test_reflectable/test/declarations_test.dart ('k') | test_reflectable/test/parameter_mirrors_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test_reflectable/test/metadata_test.dart
diff --git a/test_reflectable/test/metadata_test.dart b/test_reflectable/test/metadata_test.dart
index fcd0a3bbe1208ec99169090e80d27c4de8ca9cf5..8c9d39036d2b1c2ac6f12dff3d830ef87a7ff756 100644
--- a/test_reflectable/test/metadata_test.dart
+++ b/test_reflectable/test/metadata_test.dart
@@ -11,8 +11,9 @@ import 'package:reflectable/reflectable.dart';
import 'package:unittest/unittest.dart';
class MyReflectable extends Reflectable {
- const MyReflectable() : super(
- metadataCapability, instanceInvokeCapability, staticInvokeCapability);
+ const MyReflectable()
+ : super(metadataCapability, instanceInvokeCapability,
+ staticInvokeCapability, declarationsCapability);
}
const myReflectable = const MyReflectable();
@@ -25,7 +26,9 @@ class MyReflectable2 extends Reflectable {
const myReflectable2 = const MyReflectable2();
const b = 13;
-const c = const [const Bar(const {"a": 14})];
+const c = const [
+ const Bar(const {"a": 14})
+];
const d = true;
class K {
@@ -81,13 +84,17 @@ main() {
2: 6
}),
13,
- const [const Bar(const {"a": 14})]
+ const [
+ const Bar(const {"a": 14})
+ ]
]);
expect(myReflectable.reflectType(Foo).declarations["foo"].metadata, [
const Bar(const {}),
13,
- const [const Bar(const {"a": 14})]
+ const [
+ const Bar(const {"a": 14})
+ ]
]);
expect(myReflectable.reflectType(Foo).declarations["x"].metadata, [b]);
« no previous file with comments | « test_reflectable/test/declarations_test.dart ('k') | test_reflectable/test/parameter_mirrors_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698