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

Unified Diff: tests/language_strong/abstract_method_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/abstract_method_test.dart
diff --git a/tests/language_strong/abstract_method_test.dart b/tests/language_strong/abstract_method_test.dart
index a89694e4cdc4a0037ef633b21fb893aa97e7f76b..05370d28d31f8fd4e4d061541a152250f1d27c5e 100644
--- a/tests/language_strong/abstract_method_test.dart
+++ b/tests/language_strong/abstract_method_test.dart
@@ -7,8 +7,13 @@ import "package:expect/expect.dart";
// Checks that abstract instance methods are correctly resolved.
int get length => throw "error: top-level getter called";
-set height(x) { throw "error: top-level setter called"; }
-width() { throw "error: top-level function called"; }
+set height(x) {
+ throw "error: top-level setter called";
+}
+
+width() {
+ throw "error: top-level function called";
+}
abstract class A {
int get length; // Abstract instance getter.
@@ -24,8 +29,8 @@ abstract class A {
}
class A1 extends A {
- int length; // Implies a length getter.
- int height; // Implies a height setter.
+ int length; // Implies a length getter.
+ int height; // Implies a height setter.
int width() => 345;
A1(this.length);
}
@@ -38,4 +43,3 @@ main() {
Expect.equals(345, a.useWidth());
print([a.useLength, a.height, a.useWidth()]);
}
-

Powered by Google App Engine
This is Rietveld 408576698