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

Unified Diff: tests/corelib/uri_path_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_path_test.dart
diff --git a/tests/corelib/uri_path_test.dart b/tests/corelib/uri_path_test.dart
index 6274e8b5ee731bcfba3102e230dccbc0010f46cd..d46c3a7fcb423b3ab7f54eaae5a00c8a04ed60b1 100644
--- a/tests/corelib/uri_path_test.dart
+++ b/tests/corelib/uri_path_test.dart
@@ -6,8 +6,7 @@ import "dart:collection";
import "package:expect/expect.dart";
-void testInvalidArguments() {
-}
+void testInvalidArguments() {}
void testPath() {
void test(s, uri) {
@@ -19,13 +18,13 @@ void testPath() {
test("http://host/xxx", new Uri(scheme: "http", host: "host", path: "xxx"));
test("http://host/xxx", new Uri(scheme: "http", host: "host", path: "/xxx"));
test("http://host/xxx",
- new Uri(scheme: "http", host: "host", pathSegments: ["xxx"]));
+ new Uri(scheme: "http", host: "host", pathSegments: ["xxx"]));
test("http://host/xxx/yyy",
- new Uri(scheme: "http", host: "host", path: "xxx/yyy"));
+ new Uri(scheme: "http", host: "host", path: "xxx/yyy"));
test("http://host/xxx/yyy",
- new Uri(scheme: "http", host: "host", path: "/xxx/yyy"));
+ new Uri(scheme: "http", host: "host", path: "/xxx/yyy"));
test("http://host/xxx/yyy",
- new Uri(scheme: "http", host: "host", pathSegments: ["xxx", "yyy"]));
+ new Uri(scheme: "http", host: "host", pathSegments: ["xxx", "yyy"]));
test("urn:", new Uri(scheme: "urn"));
test("urn:xxx", new Uri(scheme: "urn", path: "xxx"));
@@ -67,8 +66,8 @@ void testPathSegments() {
test("name;v=1.1/name,v=1.1", ["name;v=1.1", "name,v=1.1"]);
var unreserved = "-._~0123456789"
- "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
- "abcdefghijklmnopqrstuvwxyz";
+ "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
+ "abcdefghijklmnopqrstuvwxyz";
var subDelimiters = r"!$&'()*+,;=";
var additionalPathChars = ":@";
var pchar = unreserved + subDelimiters + additionalPathChars;
@@ -99,27 +98,25 @@ void testPathSegments() {
uri = new Uri(pathSegments: new DoubleLinkedQueue.from(pathSegments));
Expect.equals(3, uri.pathSegments.length);
- uri = new Uri(scheme: "http",
- host: "host",
- pathSegments: pathSegments);
+ uri = new Uri(scheme: "http", host: "host", pathSegments: pathSegments);
Expect.equals(3, uri.pathSegments.length);
- uri = new Uri(scheme: "http",
- host: "host",
- pathSegments: pathSegments.where((_) => true));
+ uri = new Uri(
+ scheme: "http",
+ host: "host",
+ pathSegments: pathSegments.where((_) => true));
Expect.equals(3, uri.pathSegments.length);
- uri = new Uri(scheme: "http",
- host: "host",
- pathSegments: new DoubleLinkedQueue.from(pathSegments));
+ uri = new Uri(
+ scheme: "http",
+ host: "host",
+ pathSegments: new DoubleLinkedQueue.from(pathSegments));
Expect.equals(3, uri.pathSegments.length);
- uri = new Uri(scheme: "file",
- pathSegments: pathSegments);
+ uri = new Uri(scheme: "file", pathSegments: pathSegments);
Expect.equals(3, uri.pathSegments.length);
- uri = new Uri(scheme: "file",
- pathSegments: pathSegments.where((_) => true));
+ uri = new Uri(scheme: "file", pathSegments: pathSegments.where((_) => true));
Expect.equals(3, uri.pathSegments.length);
- uri = new Uri(scheme: "file",
- pathSegments: new DoubleLinkedQueue.from(pathSegments));
+ uri = new Uri(
+ scheme: "file", pathSegments: new DoubleLinkedQueue.from(pathSegments));
Expect.equals(3, uri.pathSegments.length);
}
@@ -130,17 +127,17 @@ void testPathCompare() {
}
test(new Uri(scheme: "http", host: "host", path: "xxx"),
- new Uri(scheme: "http", host: "host", path: "/xxx"));
+ new Uri(scheme: "http", host: "host", path: "/xxx"));
test(new Uri(scheme: "http", host: "host", pathSegments: ["xxx"]),
- new Uri(scheme: "http", host: "host", path: "/xxx"));
+ new Uri(scheme: "http", host: "host", path: "/xxx"));
test(new Uri(scheme: "http", host: "host", pathSegments: ["xxx"]),
- new Uri(scheme: "http", host: "host", path: "xxx"));
+ new Uri(scheme: "http", host: "host", path: "xxx"));
test(new Uri(scheme: "file", path: "xxx"),
- new Uri(scheme: "file", path: "/xxx"));
+ new Uri(scheme: "file", path: "/xxx"));
test(new Uri(scheme: "file", pathSegments: ["xxx"]),
- new Uri(scheme: "file", path: "/xxx"));
+ new Uri(scheme: "file", path: "/xxx"));
test(new Uri(scheme: "file", pathSegments: ["xxx"]),
- new Uri(scheme: "file", path: "xxx"));
+ new Uri(scheme: "file", path: "xxx"));
}
testPathSegmentsUnmodifiableList() {

Powered by Google App Engine
This is Rietveld 408576698