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

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

Issue 23496037: Turn a Dart String + String into a JavaScript String + String. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 3 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/string_add_test.dart
===================================================================
--- tests/compiler/dart2js/string_add_test.dart (revision 27277)
+++ tests/compiler/dart2js/string_add_test.dart (working copy)
@@ -8,12 +8,7 @@
main() {
asyncTest(() => compileAll(
- r'''main() { return "${2}${true}${'a'}${3.14}"; }''').then((code) {
- Expect.isTrue(code.contains(r'2truea3.14'));
+ r'''main() { return "foo" + "bar"; }''').then((code) {
+ Expect.isTrue(!code.contains(r'$add'));
}));
-
- asyncTest(() => compileAll(
- r'''main() { return "foo ${new Object()}"; }''').then((code) {
- Expect.isFalse(code.contains(r'concat'));
- }));
}
« no previous file with comments | « sdk/lib/_internal/compiler/implementation/ssa/optimize.dart ('k') | tests/compiler/dart2js/string_interpolation_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698