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

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

Issue 18670003: Remove support for conflicting constructors. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated cf. comments. Created 7 years, 5 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/deprecated_features_test.dart ('k') | tests/compiler/dart2js/mirrors_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 d5e7d0f0957826ff7712af618c05f613313d9b3e..dc24326ddf3dbbb3470e5474737d37adfaabebc1 100644
--- a/tests/compiler/dart2js/find_my_name_test.dart
+++ b/tests/compiler/dart2js/find_my_name_test.dart
@@ -36,7 +36,9 @@ testClass(String code, MockCompiler compiler) {
cls.parseNode(compiler);
for (Element e in cls.localMembers) {
String name = e.name.slowToString();
- if (e.isConstructor()) name = name.replaceFirst(r'$', '.');
+ 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/deprecated_features_test.dart ('k') | tests/compiler/dart2js/mirrors_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698