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

Unified Diff: tests/corelib/uri_example_test.dart

Issue 2771453003: Format all tests. (Closed)
Patch Set: Format files Created 3 years, 8 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/corelib/uri_example_test.dart
diff --git a/tests/corelib/uri_example_test.dart b/tests/corelib/uri_example_test.dart
index 8868a9a398431f3db33954a1118c57c12f671044..388f717a65790db02bfb829dbac2692056807e75 100644
--- a/tests/corelib/uri_example_test.dart
+++ b/tests/corelib/uri_example_test.dart
@@ -14,7 +14,7 @@ import 'dart:convert';
main() {
// Uri.http
test("http://example.org/path?q=dart",
- new Uri.http("example.org", "/path", { "q" : "dart" }));
+ new Uri.http("example.org", "/path", {"q": "dart"}));
test("http://user:pass@localhost:8080",
new Uri.http("user:pass@localhost:8080", ""));
test("http://example.org/a%20b", new Uri.http("example.org", "a b"));
@@ -43,24 +43,24 @@ main() {
// toFilePath.
Expect.equals(r"xxx/yyy", Uri.parse("xxx/yyy").toFilePath(windows: false));
Expect.equals(r"xxx/yyy/", Uri.parse("xxx/yyy/").toFilePath(windows: false));
- Expect.equals(r"/xxx/yyy",
- Uri.parse("file:///xxx/yyy").toFilePath(windows: false));
- Expect.equals(r"/xxx/yyy/",
- Uri.parse("file:///xxx/yyy/").toFilePath(windows: false));
+ Expect.equals(
+ r"/xxx/yyy", Uri.parse("file:///xxx/yyy").toFilePath(windows: false));
+ Expect.equals(
+ r"/xxx/yyy/", Uri.parse("file:///xxx/yyy/").toFilePath(windows: false));
Expect.equals(r"/C:", Uri.parse("file:///C:").toFilePath(windows: false));
Expect.equals(r"/C:a", Uri.parse("file:///C:a").toFilePath(windows: false));
Expect.equals(r"xxx\yyy", Uri.parse("xxx/yyy").toFilePath(windows: true));
Expect.equals(r"xxx\yyy\", Uri.parse("xxx/yyy/").toFilePath(windows: true));
- Expect.equals(r"\xxx\yyy",
- Uri.parse("file:///xxx/yyy").toFilePath(windows: true));
- Expect.equals(r"\xxx\yyy\",
- Uri.parse("file:///xxx/yyy/").toFilePath(windows: true));
- Expect.equals(r"C:\xxx\yyy",
- Uri.parse("file:///C:/xxx/yyy").toFilePath(windows: true));
+ Expect.equals(
+ r"\xxx\yyy", Uri.parse("file:///xxx/yyy").toFilePath(windows: true));
+ Expect.equals(
+ r"\xxx\yyy\", Uri.parse("file:///xxx/yyy/").toFilePath(windows: true));
+ Expect.equals(
+ r"C:\xxx\yyy", Uri.parse("file:///C:/xxx/yyy").toFilePath(windows: true));
Expect.throws(() => Uri.parse("file:C:xxx/yyy").toFilePath(windows: true));
Expect.equals(r"\\server\share\file",
- Uri.parse("file://server/share/file").toFilePath(windows: true)); //
+ Uri.parse("file://server/share/file").toFilePath(windows: true)); //
// replace.
Uri uri1 = Uri.parse("a://b@c:4/d/e?f#g");

Powered by Google App Engine
This is Rietveld 408576698