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

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. Marked raw_string_test as pass for dart2js-ff and dart2dart 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 b0e0a0b72509dc3e8c6cad5df970de17d1c95621..726d37fe09cb80bce40eeeb2ae65637cd22c0a5d 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; }
« no previous file with comments | « tests/compiler/dart2js/redundant_phi_eliminator_test.dart ('k') | tests/compiler/dart2js/return_type_inferer_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698