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

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

Issue 182603003: Add TypeVariableMirror.isStatic to the API and dart2js. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 10 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 | « tests/lib/mirrors/mirrors_reader.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/lib/mirrors/type_variable_is_static_test.dart
diff --git a/tests/language/vm/reflect_core_vm_test.dart b/tests/lib/mirrors/type_variable_is_static_test.dart
similarity index 57%
copy from tests/language/vm/reflect_core_vm_test.dart
copy to tests/lib/mirrors/type_variable_is_static_test.dart
index 2474b216f7bf0b641535f0b18af4573eb9c7e723..14209da99c91e4ff3d2c8c723695c131f758997d 100644
--- a/tests/language/vm/reflect_core_vm_test.dart
+++ b/tests/lib/mirrors/type_variable_is_static_test.dart
@@ -2,14 +2,16 @@
// 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.
-// Test reflection of private functions in core classes.
+library test.type_variable_owner;
-import "package:expect/expect.dart";
import "dart:mirrors";
+import "package:expect/expect.dart";
+
+class C<T> {}
+typedef bool Predicate<T>(T t);
+
main() {
- var s = "string";
- var im = reflect(s);
- Expect.throws(() => im.invoke(const Symbol("_setAt"), [0, 65]), (e) => e is NoSuchMethodError);
+ Expect.isFalse(reflectType(C).typeVariables.single.isStatic);
+ Expect.isFalse(reflectType(Predicate).typeVariables.single.isStatic);
}
-
« no previous file with comments | « tests/lib/mirrors/mirrors_reader.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698