Index: tests/lib/mirrors/find_in_context_test.dart |
diff --git a/tests/lib/mirrors/closure_mirror_find_in_context_test.dart b/tests/lib/mirrors/find_in_context_test.dart |
similarity index 94% |
rename from tests/lib/mirrors/closure_mirror_find_in_context_test.dart |
rename to tests/lib/mirrors/find_in_context_test.dart |
index b26a1400dbec0d435268b2f42069689169bb0159..348cd3a5ed60436b2c8aae37e3806b1b9f92bc2c 100644 |
--- a/tests/lib/mirrors/closure_mirror_find_in_context_test.dart |
+++ b/tests/lib/mirrors/find_in_context_test.dart |
@@ -2,6 +2,8 @@ |
// 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. |
+// VMOptions=--support_find_in_context=true |
+ |
import "dart:mirrors"; |
import "stringify.dart"; |
@@ -69,12 +71,16 @@ main() { |
Expect.equals(null, result); |
result = cm.findInContext(#staticFooInS); |
+ Expect.isFalse(result is InstanceMirror); |
+ Expect.equals(null, result); |
+ |
+ result = cm.findInContext(#S.staticFooInS); |
Expect.isTrue(result is ClosureMirror); |
expect("Instance(value = staticFooInS)", result.apply(const [])); |
result = cm.findInContext(#C.staticFooInS); |
- Expect.isTrue(result is ClosureMirror); |
- expect("Instance(value = staticFooInS)", result.apply(const [])); |
+ Expect.isFalse(result is InstanceMirror); |
+ Expect.equals(null, result); |
result = cm.findInContext(#C.staticInC); |
expect("Instance(value = staticInC)", result); |