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

Unified Diff: tests/corelib_strong/uri_parse_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_strong/uri_parse_test.dart
diff --git a/tests/corelib_strong/uri_parse_test.dart b/tests/corelib_strong/uri_parse_test.dart
index 1e9ceb7ae04226346ff5aefbb919b31093e604ca..4c93b2be0e2c46f7ddc14861a3350c47ac6e2819 100644
--- a/tests/corelib_strong/uri_parse_test.dart
+++ b/tests/corelib_strong/uri_parse_test.dart
@@ -4,7 +4,6 @@
import "package:expect/expect.dart";
-
void testUriCombi() {
var schemes = ["", "file", "ws", "ftp"];
var fragments = ["", "#", "#f", "#fragment", "#l:?/"];
@@ -14,13 +13,13 @@ void testUriCombi() {
var hosts = ["", "h", "hhh", "h:4", "hhh:444", "[::1.2.3.4]"];
void check(uriString, scheme, fragment, query, path, user, host) {
- for (var uri in [Uri.parse(uriString),
- Uri.parse(">\u{10000}>$uriString<\u{10000}<",
- 4, uriString.length + 4),
- Uri.parse("http://example.com/$uriString#?:/[]\"",
- 19, uriString.length + 19),
- Uri.parse(uriString * 3,
- uriString.length, uriString.length * 2)]) {
+ for (var uri in [
+ Uri.parse(uriString),
+ Uri.parse(">\u{10000}>$uriString<\u{10000}<", 4, uriString.length + 4),
+ Uri.parse(
+ "http://example.com/$uriString#?:/[]\"", 19, uriString.length + 19),
+ Uri.parse(uriString * 3, uriString.length, uriString.length * 2)
+ ]) {
String name = "$uriString -> $uri";
Expect.equals(scheme, uri.scheme, name);
var uriFragment = uri.fragment;
@@ -51,14 +50,15 @@ void testUriCombi() {
if (user.isNotEmpty) auth = "$user@$auth";
if (auth.isNotEmpty) auth = "//$auth";
if (auth.isNotEmpty && !path.startsWith('/')) continue;
- check("$scheme${scheme.isEmpty ? "" : ":"}"
- "$auth$path$query$fragment",
- scheme,
- fragment,
- query,
- path,
- user,
- host);
+ check(
+ "$scheme${scheme.isEmpty ? "" : ":"}"
+ "$auth$path$query$fragment",
+ scheme,
+ fragment,
+ query,
+ path,
+ user,
+ host);
}
}
}

Powered by Google App Engine
This is Rietveld 408576698