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

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

Issue 2345083003: dart2js: run dartfmt on tests (Closed)
Patch Set: revert another multipart test Created 4 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
« no previous file with comments | « tests/compiler/dart2js/string_add_test.dart ('k') | tests/compiler/dart2js/string_interpolation_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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'"));
+ }),
+ ]));
}
« no previous file with comments | « tests/compiler/dart2js/string_add_test.dart ('k') | tests/compiler/dart2js/string_interpolation_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698