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

Unified Diff: tests/language/cascade_2_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/cascade_2_test.dart
diff --git a/tests/language/cascade_2_test.dart b/tests/language/cascade_2_test.dart
index 4e5cdbc14ca47b569333417b9e4dd377b71e8805..1742f48f0fc5d95fc2a88a81225238b2adff2470 100644
--- a/tests/language/cascade_2_test.dart
+++ b/tests/language/cascade_2_test.dart
@@ -16,7 +16,7 @@ main() {
Expect.equals(a, a.path1[0]);
Expect.equals(a, a.path1[1]);
- Expect.equals(1, a.path2.length); // NPE.
+ Expect.equals(1, a.path2.length); // NPE.
var b = new Element(a);
Expect.equals(2, b.path0.length);
@@ -28,10 +28,9 @@ main() {
Expect.equals(a, b.path1[1]);
Expect.equals(b, b.path1[2]);
- Expect.equals(2, b.path2.length); // NPE.
+ Expect.equals(2, b.path2.length); // NPE.
}
-
class Element {
final Element parent;
@@ -46,7 +45,8 @@ class Element {
}
List<Element> get path1 {
- return (parent == null) ? <Element>[this] : parent.path1..add(this);
+ return (parent == null) ? <Element>[this] : parent.path1
+ ..add(this);
}
List<Element> get path2 {

Powered by Google App Engine
This is Rietveld 408576698