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

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

Issue 10920066: issue 4817 fixed. Implemented raw strings with 'r' instead of '@' for dart2js (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebased, weird problem with patch in string_interpolation_test.dart hopefully fixed Created 8 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/resolver_test.dart
diff --git a/tests/compiler/dart2js/resolver_test.dart b/tests/compiler/dart2js/resolver_test.dart
index 623094186cb9bcac8168c6f83c676c639f49bc8f..75b8966d94da8b2f5c6777fe397dfea61f9aa097 100644
--- a/tests/compiler/dart2js/resolver_test.dart
+++ b/tests/compiler/dart2js/resolver_test.dart
@@ -663,7 +663,7 @@ testInitializers() {
A.a() : this.b(0);
A.b(int i);
}""";
- resolveConstructor(script, "A a = new A.a();", "A", @"A$a", 1,
+ resolveConstructor(script, "A a = new A.a();", "A", r"A$a", 1,
[], []);
script = """class A {
@@ -671,7 +671,7 @@ testInitializers() {
A.a() : i = 42, this(0);
A(int i);
}""";
- resolveConstructor(script, "A a = new A.a();", "A", @"A$a", 2,
+ resolveConstructor(script, "A a = new A.a();", "A", r"A$a", 2,
[], [MessageKind.REDIRECTING_CONSTRUCTOR_HAS_INITIALIZER]);
script = """class A {
@@ -743,7 +743,7 @@ checkMemberResolved(compiler, className, memberName) {
}
testToString() {
- final script = @"class C { toString() => 'C'; } main() { '${new C()}'; }";
+ final script = r"class C { toString() => 'C'; } main() { '${new C()}'; }";
final compiler = compileScript(script);
checkMemberResolved(compiler, 'C', buildSourceString('toString'));
@@ -754,7 +754,7 @@ operatorName(op, isUnary) {
}
testIndexedOperator() {
- final script = @"""
+ final script = r"""
class C {
operator[](ix) => ix;
operator[]=(ix, v) {}
@@ -767,7 +767,7 @@ testIndexedOperator() {
}
testIncrementsAndDecrements() {
- final script = @"""
+ final script = r"""
class A { operator+(o)=>null; }
class B { operator+(o)=>null; }
class C { operator-(o)=>null; }

Powered by Google App Engine
This is Rietveld 408576698