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

Side by Side Diff: tests/lib/mirrors/find_in_context_fake_function_test.dart

Issue 52953002: Hide ClosureMirror.findInContext behind a flag for 1.0. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: rebase Created 7 years, 1 month 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « tests/lib/mirrors/closure_mirror_find_in_context_test.dart ('k') | tests/lib/mirrors/find_in_context_private_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698