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

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

Issue 10831285: Revert "Register toString dynamic invocation in the presence of string interpolation." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 4 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/concrete_type_inference_test.dart ('k') | tests/language/language.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/resolver_test.dart
diff --git a/tests/compiler/dart2js/resolver_test.dart b/tests/compiler/dart2js/resolver_test.dart
index 629ddc061fe679719688493ecf61393f79e3a52a..b6044da86b667d5cab6eff2c330124f813c8201e 100644
--- a/tests/compiler/dart2js/resolver_test.dart
+++ b/tests/compiler/dart2js/resolver_test.dart
@@ -2,13 +2,10 @@
// 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.
-#import('dart:uri');
-
#import("../../../lib/compiler/implementation/leg.dart");
#import("../../../lib/compiler/implementation/elements/elements.dart");
#import("../../../lib/compiler/implementation/tree/tree.dart");
#import("../../../lib/compiler/implementation/util/util.dart");
-#import("compiler_helper.dart");
#import("mock_compiler.dart");
#import("parser_helper.dart");
@@ -72,7 +69,6 @@ main() {
testThis();
testSuperCalls();
testTypeVariables();
- testToString();
}
testTypeVariables() {
@@ -722,18 +718,3 @@ List<String> asSortedStrings(Link link) {
result.sort((s1, s2) => s1.compareTo(s2));
return result;
}
-
-testToString() {
- Uri uri = new Uri.fromComponents(scheme: 'source');
- MockCompiler compiler = compilerFor(
- @"class C { toString() => 'C'; } main() { '${new C()}'; }",
- uri);
- compiler.runCompiler(uri);
-
- Element toStringMethod = findElement(compiler, 'C')
- .lookupLocalMember(buildSourceString('toString'));
- Expect.isNotNull(toStringMethod);
-
- Expect.isNotNull(
- compiler.enqueuer.resolution.getCachedElements(toStringMethod));
-}
« no previous file with comments | « tests/compiler/dart2js/concrete_type_inference_test.dart ('k') | tests/language/language.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698