| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 // VMOptions=--support_find_in_context=true |
| 6 |
| 5 // Regression test: this used to crash the VM. | 7 // Regression test: this used to crash the VM. |
| 6 | 8 |
| 7 library test.find_in_context_fake_function; | 9 library test.find_in_context_fake_function; |
| 8 | 10 |
| 9 import "dart:mirrors"; | 11 import "dart:mirrors"; |
| 10 import "package:expect/expect.dart"; | 12 import "package:expect/expect.dart"; |
| 11 | 13 |
| 12 var topLevelField = 1; | 14 var topLevelField = 1; |
| 13 get topLevelGetter => 2; | 15 get topLevelGetter => 2; |
| 14 topLevelFunction() => 3; | 16 topLevelFunction() => 3; |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 dontFindInContext(cm, #field); | 70 dontFindInContext(cm, #field); |
| 69 dontFindInContext(cm, #getter); | 71 dontFindInContext(cm, #getter); |
| 70 dontFindInContext(cm, #method); | 72 dontFindInContext(cm, #method); |
| 71 dontFindInContext(cm, #staticField); | 73 dontFindInContext(cm, #staticField); |
| 72 dontFindInContext(cm, #staticGetter); | 74 dontFindInContext(cm, #staticGetter); |
| 73 dontFindInContext(cm, #staticFunction); | 75 dontFindInContext(cm, #staticFunction); |
| 74 dontFindInContext(cm, #topLevelField); | 76 dontFindInContext(cm, #topLevelField); |
| 75 dontFindInContext(cm, #topLevelGetter); | 77 dontFindInContext(cm, #topLevelGetter); |
| 76 dontFindInContext(cm, #topLevelFunction); | 78 dontFindInContext(cm, #topLevelFunction); |
| 77 } | 79 } |
| OLD | NEW |