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

Unified Diff: tests/language_strong/named_parameters_with_dollars_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/language_strong/named_parameters_with_dollars_test.dart
diff --git a/tests/language_strong/named_parameters_with_dollars_test.dart b/tests/language_strong/named_parameters_with_dollars_test.dart
index cc28cd6995c57e1d279895d0a23e5b502e90d679..9088af43ed1aa624939cadd78b7cec19e260618f 100644
--- a/tests/language_strong/named_parameters_with_dollars_test.dart
+++ b/tests/language_strong/named_parameters_with_dollars_test.dart
@@ -16,8 +16,8 @@ class TestClass {
psycho({$, $$, $$$, $$$$}) => [$, $$, $$$, $$$$];
}
-globalMethod({a, b, a$b, a$$b}) => [a, b, a$b, a$$b];
+globalMethod({a, b, a$b, a$$b}) => [a, b, a$b, a$$b];
format(thing) {
if (thing == null) return '-';
@@ -39,8 +39,13 @@ format(thing) {
makeTestClass(n) => [new TestClass(), new Decoy(), 'string'][n % 3];
class Decoy {
- method([a$b, b, a]) { throw new UnimplementedError(); }
- psycho([$$$, $$, $]) { throw new UnimplementedError(); }
+ method([a$b, b, a]) {
+ throw new UnimplementedError();
+ }
+
+ psycho([$$$, $$, $]) {
+ throw new UnimplementedError();
+ }
}
testDollar() {
@@ -52,7 +57,7 @@ testDollar() {
Expect.equals('[-, -, 3, -]', format(globalMethod(a$b: 3)));
Expect.equals('[-, -, -, 4]', format(globalMethod(a$$b: 4)));
- TestClass t = new TestClass(); // Statically typed.
+ TestClass t = new TestClass(); // Statically typed.
Expect.equals('[-, -, -, -]', format(t.method()));
Expect.equals('[1, 2, -, -]', format(t.method(a: 1, b: 2)));
@@ -70,17 +75,17 @@ testDollar() {
}
testPsycho() {
- TestClass t = new TestClass(); // Statically typed.
+ TestClass t = new TestClass(); // Statically typed.
- Expect.equals('[1, 2, 3, -]', format(t.psycho($:1, $$:2, $$$:3)));
- Expect.equals('[1, 2, 3, -]', format(t.psycho($$$:3, $$:2, $:1)));
- Expect.equals('[1, 2, -, -]', format(t.psycho($:1, $$:2)));
+ Expect.equals('[1, 2, 3, -]', format(t.psycho($: 1, $$: 2, $$$: 3)));
+ Expect.equals('[1, 2, 3, -]', format(t.psycho($$$: 3, $$: 2, $: 1)));
+ Expect.equals('[1, 2, -, -]', format(t.psycho($: 1, $$: 2)));
Expect.equals('[-, -, -, 4]', format(t.psycho($$$$: 4)));
var obj = makeTestClass(0);
- Expect.equals('[1, 2, -, -]', format(obj.psycho($:1, $$:2)));
+ Expect.equals('[1, 2, -, -]', format(obj.psycho($: 1, $$: 2)));
Expect.equals('[-, -, -, 4]', format(obj.psycho($$$$: 4)));
- Expect.equals('[1, 2, 3, -]', format(obj.psycho($:1, $$:2, $$$:3)));
- Expect.equals('[1, 2, 3, -]', format(obj.psycho($$$:3, $$:2, $:1)));
+ Expect.equals('[1, 2, 3, -]', format(obj.psycho($: 1, $$: 2, $$$: 3)));
+ Expect.equals('[1, 2, 3, -]', format(obj.psycho($$$: 3, $$: 2, $: 1)));
}

Powered by Google App Engine
This is Rietveld 408576698