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

Unified Diff: tests/compiler/dart2js/command_line_split_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/combinator_hint_test.dart ('k') | tests/compiler/dart2js/command_line_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/command_line_split_test.dart
diff --git a/tests/compiler/dart2js/command_line_split_test.dart b/tests/compiler/dart2js/command_line_split_test.dart
index 574e3406ebc692ef1de763124f057507a967ba5c..f4a2f43b1e6dc1a720d0472b56981d826b26843c 100644
--- a/tests/compiler/dart2js/command_line_split_test.dart
+++ b/tests/compiler/dart2js/command_line_split_test.dart
@@ -13,30 +13,40 @@ main() {
Expect.listEquals(["foo\\", "bar"], splitLine(r"foo\ bar", windows: true));
Expect.listEquals(["foo'", '"bar'], splitLine(r"""foo\' \"bar"""));
- Expect.listEquals(["foo\\'", '"bar'],
- splitLine(r"""foo\' \"bar""", windows: true));
+ Expect.listEquals(
+ ["foo\\'", '"bar'], splitLine(r"""foo\' \"bar""", windows: true));
Expect.listEquals(["foo'", '"bar'], splitLine(r"""foo"'" '"'bar"""));
Expect.throws(() => splitLine(r"""foo"'" '"'bar""", windows: true),
- (e) => e is FormatException);
- Expect.listEquals(["foo'", "''bar"],
- splitLine(r"""foo"'" '"'bar" """, windows: true));
+ (e) => e is FormatException);
+ Expect.listEquals(
+ ["foo'", "''bar"], splitLine(r"""foo"'" '"'bar" """, windows: true));
Expect.listEquals(["foo", "bar"], splitLine("'f''o''o' " + '"b""a""r"'));
// TODO(johnniwinther): This is not actual Windows behavior: "b""a" is
// interpreted as b"a but "b""a""r" is interpreted as b"ar.
Expect.listEquals(["'f''o''o'", "bar"],
- splitLine("'f''o''o' " + '"b""a""r"', windows: true));
-
- Expect.listEquals(["\n", "\r", "\t", "\b", "\f", "\v", "\\",
- "a", "Z", "-", '"', "'"],
- splitLine(r"""\n \r \t \b \f \v \\ \a \Z \- \" \'"""));
- Expect.listEquals(["\\n", "\\r", "\\t", "\\b", "\\f", "\\v",
- "\\", "\\a", "\\Z", "\\-", '"', "\\'"],
- splitLine(r"""\n \r \t \b \f \v \\ \a \Z \- \" \'""",
- windows: true));
- Expect.listEquals(["C:Users\foo\bar\baz.dart"],
- splitLine(r"C:\Users\foo\bar\baz.dart"));
+ splitLine("'f''o''o' " + '"b""a""r"', windows: true));
+
+ Expect.listEquals(
+ ["\n", "\r", "\t", "\b", "\f", "\v", "\\", "a", "Z", "-", '"', "'"],
+ splitLine(r"""\n \r \t \b \f \v \\ \a \Z \- \" \'"""));
+ Expect.listEquals([
+ "\\n",
+ "\\r",
+ "\\t",
+ "\\b",
+ "\\f",
+ "\\v",
+ "\\",
+ "\\a",
+ "\\Z",
+ "\\-",
+ '"',
+ "\\'"
+ ], splitLine(r"""\n \r \t \b \f \v \\ \a \Z \- \" \'""", windows: true));
+ Expect.listEquals(
+ ["C:Users\foo\bar\baz.dart"], splitLine(r"C:\Users\foo\bar\baz.dart"));
Expect.listEquals([r"C:\Users\foo\bar\baz.dart"],
splitLine(r"C:\Users\foo\bar\baz.dart", windows: true));
@@ -46,6 +56,6 @@ main() {
splitLine(r'"C:\Users\foo\bar\name with spaces.dart"', windows: true));
Expect.throws(() => splitLine(r"\"), (e) => e is FormatException);
- Expect.throws(() => splitLine(r"\", windows: true),
- (e) => e is FormatException);
+ Expect.throws(
+ () => splitLine(r"\", windows: true), (e) => e is FormatException);
}
« no previous file with comments | « tests/compiler/dart2js/combinator_hint_test.dart ('k') | tests/compiler/dart2js/command_line_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698