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

Unified Diff: tests/compiler/dart2js/find_my_name_test.dart

Issue 263103003: Remove warnings from dart2js test-suite. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Remove debug code. Created 6 years, 7 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/compiler/dart2js/deferred_not_in_main_test.dart ('k') | tests/compiler/dart2js/members_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/find_my_name_test.dart
diff --git a/tests/compiler/dart2js/find_my_name_test.dart b/tests/compiler/dart2js/find_my_name_test.dart
index 72f42fc1e702af74a8d2812d9db39813d4959f42..f36c662edcb5c09e669e483f66bd3c02e11d3db6 100644
--- a/tests/compiler/dart2js/find_my_name_test.dart
+++ b/tests/compiler/dart2js/find_my_name_test.dart
@@ -34,11 +34,11 @@ testClass(String code, MockCompiler compiler) {
int skip = code.indexOf('{');
ClassElement cls = parseUnit(code, compiler, compiler.mainApp).head;
cls.parseNode(compiler);
- for (Element e in cls.localMembers) {
+ cls.forEachLocalMember((Element e) {
String name = e.name;
if (e.isConstructor()) {
name = Elements.reconstructConstructorName(e).replaceFirst(r'$', '.');
}
Expect.equals(code.indexOf(name, skip), e.position().charOffset);
- }
+ });
}
« no previous file with comments | « tests/compiler/dart2js/deferred_not_in_main_test.dart ('k') | tests/compiler/dart2js/members_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698