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

Unified Diff: tests/language_strong/method_override4_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/method_override4_test.dart
diff --git a/tests/language_strong/method_override4_test.dart b/tests/language_strong/method_override4_test.dart
index 42ed8b936e2aa0a65c3f06a1ca53eaf15dfcc443..ea6c90d62d55c24bec1b99a65c62adbf81ec9d55 100644
--- a/tests/language_strong/method_override4_test.dart
+++ b/tests/language_strong/method_override4_test.dart
@@ -5,26 +5,24 @@
import 'package:expect/expect.dart';
class A {
- foo(required1, { named1: 499}) => -(required1 + named1 * 3);
- bar(required1, required2, { named1: 13, named2: 17})
- => -(required1 + required2 * 3 + named1 * 5 + named2 * 7);
+ foo(required1, {named1: 499}) => -(required1 + named1 * 3);
+ bar(required1, required2, {named1: 13, named2: 17}) =>
+ -(required1 + required2 * 3 + named1 * 5 + named2 * 7);
gee({named1: 31}) => -named1;
}
class B extends A {
foo(required1) => required1;
- bar(required1, required2, { named1: 29 })
- => required1 + required2 * 3 + named1 * 5;
+ bar(required1, required2, {named1: 29}) =>
+ required1 + required2 * 3 + named1 * 5;
gee({named2: 11}) => named2 * 99;
}
main() {
var b = new B();
Expect.throws(() => b.foo(499, named1: 88), (e) => e is NoSuchMethodError);
- Expect.throws(() => b.bar(1, 2, named1: 3, named2: 88),
- (e) => e is NoSuchMethodError);
- Expect.throws(() => b.bar(1, 2, named2: 88),
- (e) => e is NoSuchMethodError);
- Expect.throws(() => b.gee(named1: 3),
- (e) => e is NoSuchMethodError);
+ Expect.throws(
+ () => b.bar(1, 2, named1: 3, named2: 88), (e) => e is NoSuchMethodError);
+ Expect.throws(() => b.bar(1, 2, named2: 88), (e) => e is NoSuchMethodError);
+ Expect.throws(() => b.gee(named1: 3), (e) => e is NoSuchMethodError);
}

Powered by Google App Engine
This is Rietveld 408576698