Index: tests/compiler/dart2js/string_escapes_test.dart |
diff --git a/tests/compiler/dart2js/string_escapes_test.dart b/tests/compiler/dart2js/string_escapes_test.dart |
index 1c62a250f1161f15094e089ec4dd2e44123917e1..b792e7db379ba33cdde392f126dc2c78ba3b609f 100644 |
--- a/tests/compiler/dart2js/string_escapes_test.dart |
+++ b/tests/compiler/dart2js/string_escapes_test.dart |
@@ -16,54 +16,57 @@ Future<String> compileExpression(String expression) { |
main() { |
asyncTest(() => Future.wait([ |
- compileExpression("''' \n\r\u2028\u2029'''").then((String generated) { |
- Expect.isTrue(generated.contains(r'"\r\u2028\u2029"') || |
- generated.contains(r"'\r\u2028\u2029'")); |
- }), |
- compileExpression("r''' \n\r\u2028\u2029'''").then((String generated) { |
- Expect.isTrue(generated.contains(r'"\r\u2028\u2029"') || |
- generated.contains(r"'\r\u2028\u2029'")); |
- }), |
- compileExpression("r''' \r\n\u2028\u2029'''").then((String generated) { |
- Expect.isTrue(generated.contains(r'"\u2028\u2029"') || |
- generated.contains(r"'\u2028\u2029'")); |
- }), |
- compileExpression("r''' \r\u2028\u2029'''").then((String generated) { |
- Expect.isTrue(generated.contains(r'"\u2028\u2029"') || |
- generated.contains(r"'\u2028\u2029'")); |
- }), |
- compileExpression("r''' \n\u2028\u2029'''").then((String generated) { |
- Expect.isTrue(generated.contains(r'"\u2028\u2029"') || |
- generated.contains(r"'\u2028\u2029'")); |
- }), |
- compileExpression("r'''\t\t \t\t \t\t \t \t \n\r\u2028\u2029'''") |
- .then((String generated) { |
- Expect.isTrue(generated.contains(r'"\r\u2028\u2029"') || |
- generated.contains(r"'\r\u2028\u2029'")); |
- }), |
- compileExpression("r'''\\\t\\\t \\ \\ \t\\\t \t \\\n\r\u2028\u2029'''") |
- .then((String generated) { |
- Expect.isTrue(generated.contains(r'"\r\u2028\u2029"') || |
- generated.contains(r"'\r\u2028\u2029'")); |
- }), |
- compileExpression("r'''\t\t \t\t \t\t \t \t \\\n\r\u2028\u2029'''") |
- .then((String generated) { |
- Expect.isTrue(generated.contains(r'"\r\u2028\u2029"') || |
- generated.contains(r"'\r\u2028\u2029'")); |
- }), |
- compileExpression("r'''\\\t\\\t \\ \\ \t\\\t \\\r\n\u2028\u2029'''") |
- .then((String generated) { |
- Expect.isTrue(generated.contains(r'"\u2028\u2029"') || |
- generated.contains(r"'\u2028\u2029'")); |
- }), |
- compileExpression("r'''\\\t\\\t \\ \\ \t\\\t \\\r\u2028\u2029'''") |
- .then((String generated) { |
- Expect.isTrue(generated.contains(r'"\u2028\u2029"') || |
- generated.contains(r"'\u2028\u2029'")); |
- }), |
- compileExpression("'\u2028\u2029'").then((String generated) { |
- Expect.isTrue(generated.contains(r'"\u2028\u2029"') || |
- generated.contains(r"'\u2028\u2029'")); |
- }), |
- ])); |
+ compileExpression("''' \n\r\u2028\u2029'''").then((String generated) { |
+ Expect.isTrue(generated.contains(r'"\r\u2028\u2029"') || |
+ generated.contains(r"'\r\u2028\u2029'")); |
+ }), |
+ compileExpression("r''' \n\r\u2028\u2029'''").then((String generated) { |
+ Expect.isTrue(generated.contains(r'"\r\u2028\u2029"') || |
+ generated.contains(r"'\r\u2028\u2029'")); |
+ }), |
+ compileExpression("r''' \r\n\u2028\u2029'''").then((String generated) { |
+ Expect.isTrue(generated.contains(r'"\u2028\u2029"') || |
+ generated.contains(r"'\u2028\u2029'")); |
+ }), |
+ compileExpression("r''' \r\u2028\u2029'''").then((String generated) { |
+ Expect.isTrue(generated.contains(r'"\u2028\u2029"') || |
+ generated.contains(r"'\u2028\u2029'")); |
+ }), |
+ compileExpression("r''' \n\u2028\u2029'''").then((String generated) { |
+ Expect.isTrue(generated.contains(r'"\u2028\u2029"') || |
+ generated.contains(r"'\u2028\u2029'")); |
+ }), |
+ compileExpression("r'''\t\t \t\t \t\t \t \t \n\r\u2028\u2029'''") |
+ .then((String generated) { |
+ Expect.isTrue(generated.contains(r'"\r\u2028\u2029"') || |
+ generated.contains(r"'\r\u2028\u2029'")); |
+ }), |
+ compileExpression( |
+ "r'''\\\t\\\t \\ \\ \t\\\t \t \\\n\r\u2028\u2029'''") |
+ .then((String generated) { |
+ Expect.isTrue(generated.contains(r'"\r\u2028\u2029"') || |
+ generated.contains(r"'\r\u2028\u2029'")); |
+ }), |
+ compileExpression( |
+ "r'''\t\t \t\t \t\t \t \t \\\n\r\u2028\u2029'''") |
+ .then((String generated) { |
+ Expect.isTrue(generated.contains(r'"\r\u2028\u2029"') || |
+ generated.contains(r"'\r\u2028\u2029'")); |
+ }), |
+ compileExpression( |
+ "r'''\\\t\\\t \\ \\ \t\\\t \\\r\n\u2028\u2029'''") |
+ .then((String generated) { |
+ Expect.isTrue(generated.contains(r'"\u2028\u2029"') || |
+ generated.contains(r"'\u2028\u2029'")); |
+ }), |
+ compileExpression("r'''\\\t\\\t \\ \\ \t\\\t \\\r\u2028\u2029'''") |
+ .then((String generated) { |
+ Expect.isTrue(generated.contains(r'"\u2028\u2029"') || |
+ generated.contains(r"'\u2028\u2029'")); |
+ }), |
+ compileExpression("'\u2028\u2029'").then((String generated) { |
+ Expect.isTrue(generated.contains(r'"\u2028\u2029"') || |
+ generated.contains(r"'\u2028\u2029'")); |
+ }), |
+ ])); |
} |