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

Unified Diff: tests/language/regress_23046_test.dart

Issue 1056103002: Fix interpretation of string contents after interpolation expressions. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 9 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 | « pkg/analyzer/test/generated/parser_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/regress_23046_test.dart
diff --git a/tests/language/implicit_super_constructor_call_test.dart b/tests/language/regress_23046_test.dart
similarity index 50%
copy from tests/language/implicit_super_constructor_call_test.dart
copy to tests/language/regress_23046_test.dart
index 70a34af25a505ddb7ac1230ee5d4c7e8000b2529..cb7b84a04581d87f3c6d5beab0f4b524af6b9853 100644
--- a/tests/language/implicit_super_constructor_call_test.dart
+++ b/tests/language/regress_23046_test.dart
@@ -2,25 +2,16 @@
// 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.
-// This is a regression test for http://dartbug.com/22723.
-
import "package:expect/expect.dart";
-class A {
- final x;
+// Make sure the logic for skipping the initial quotes in a string isn't
+// re-triggered after an interpolation expression.
- @NoInline()
- A({this.x: "foo"}) {
- Expect.equals("foo", x.toString());
- }
-}
-
-class C extends A {
- C(foobar) { }
-}
+const String x = '$y"';
+const String y = 'foo';
+const Map m = const { x: 0, y: 1 };
main() {
- var c = new C(499);
- Expect.equals("foo", c.x.toString());
+ Expect.equals(x, 'foo"');
+ Expect.equals(m.length, 2);
}
-
« no previous file with comments | « pkg/analyzer/test/generated/parser_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698