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

Unified Diff: tests/language_strong/closure_cycles_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/closure_cycles_test.dart
diff --git a/tests/language_strong/closure_cycles_test.dart b/tests/language_strong/closure_cycles_test.dart
index 7aded11a32465a4a9bf6bb4e3e4ba11fcaeced42..e66a391e1e30a81a26990f4d7129582ecc142977 100644
--- a/tests/language_strong/closure_cycles_test.dart
+++ b/tests/language_strong/closure_cycles_test.dart
@@ -10,7 +10,9 @@ import "dart:async";
class X {
Function onX;
- X() { Timer.run(() => onX(new Y())); }
+ X() {
+ Timer.run(() => onX(new Y()));
+ }
}
class Y {
@@ -19,7 +21,7 @@ class Y {
static var count = 0;
Y() {
// Consume large amounts of memory per iteration to fail/succeed quicker.
- heavyMemory = new List(10*1024*1024);
+ heavyMemory = new List(10 * 1024 * 1024);
// Terminate the test if we allocated enough memory without running out.
if (count++ > 100) return;
Timer.run(() => onY());
@@ -30,7 +32,7 @@ void doIt() {
var x = new X();
x.onX = (y) {
y.onY = () {
- y; // Capturing y can lead to endless context chains!
+ y; // Capturing y can lead to endless context chains!
doIt();
};
};

Powered by Google App Engine
This is Rietveld 408576698