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

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

Issue 278823002: dart2dart: Method and constructor calls in new backend. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Added missing copyright notices. 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
Index: tests/compiler/dart2js/dart_backend_test.dart
diff --git a/tests/compiler/dart2js/dart_backend_test.dart b/tests/compiler/dart2js/dart_backend_test.dart
index 62a3651684f126695468587125c8d25ba001f8ac..ad595d96ff56d03c729c8a873f7e981ee52a6b68 100644
--- a/tests/compiler/dart2js/dart_backend_test.dart
+++ b/tests/compiler/dart2js/dart_backend_test.dart
@@ -173,7 +173,9 @@ testClassWithSynthesizedConstructor() {
}
testClassWithMethod() {
- testDart2Dart('main(){var a=new A();a.foo();}class A{void foo(){}}');
+ String src = r'main(){var a=new A();a.foo();}class A{void foo(){}}';
+ String expected = r'main(){new A().foo();}class A{void foo(){}}';
+ testDart2Dart(src, continuation: (result) => Expect.equals(expected, result));
}
testExtendsImplements() {
@@ -658,7 +660,7 @@ main() {
}
''';
var expectedResult =
- ' foo( arg){}main(){var localvar;foo("5");}';
+ ' foo( arg){}main(){foo("5");}';
testDart2Dart(src,
continuation: (String result) { Expect.equals(expectedResult, result); },
stripTypes: true);

Powered by Google App Engine
This is Rietveld 408576698