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

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

Issue 870353004: cps-ir: Implement string concatenation. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 11 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/js_backend_cps_ir_basic_test.dart
diff --git a/tests/compiler/dart2js/js_backend_cps_ir_basic_test.dart b/tests/compiler/dart2js/js_backend_cps_ir_basic_test.dart
index 1243ba2d337d322edfa90d67ecccf0ec5bf6ae19..15a8e9d4ac611065ce23b95c6ab00950accc49b4 100644
--- a/tests/compiler/dart2js/js_backend_cps_ir_basic_test.dart
+++ b/tests/compiler/dart2js/js_backend_cps_ir_basic_test.dart
@@ -10,6 +10,36 @@ library basic_tests;
import 'js_backend_cps_ir.dart';
const List<TestEntry> tests = const [
+ const TestEntry(r"""
+main() {
+ var e = 1;
+ var l = [1, 2, 3];
+ var m = {'s': 1};
+
+ print('(' ')');
+ print('(${true})');
+ print('(${1})');
+ print('(${[1, 2, 3]})');
+ print('(${{'s': 1}})');
+ print('($e)');
+ print('($l)');
+ print('($m)');
+}""",r"""
+function() {
+ var e, l, m;
+ e = 1;
+ l = [1, 2, 3];
+ m = P.LinkedHashMap_LinkedHashMap$_literal(["s", 1]);
+ P.print("()");
+ P.print("(" + true + ")");
+ P.print("(" + 1 + ")");
+ P.print("(" + H.S([1, 2, 3]) + ")");
+ P.print("(" + H.S(P.LinkedHashMap_LinkedHashMap$_literal(["s", 1])) + ")");
+ P.print("(" + H.S(e) + ")");
+ P.print("(" + H.S(l) + ")");
+ P.print("(" + H.S(m) + ")");
+ return null;
+}"""),
const TestEntry("""
foo(a, [b = "b"]) => b;
bar(a, {b: "b", c: "c"}) => c;

Powered by Google App Engine
This is Rietveld 408576698