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

Unified Diff: tests/html/native_gc_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/html/native_gc_test.dart
diff --git a/tests/html/native_gc_test.dart b/tests/html/native_gc_test.dart
index 5931cc840a747432b32d987e33546d3882601e2c..d13ea36517e318b5338a89467dda5974aada8431 100644
--- a/tests/html/native_gc_test.dart
+++ b/tests/html/native_gc_test.dart
@@ -1,4 +1,5 @@
library NativeGCTest;
+
import 'package:unittest/unittest.dart';
import 'package:unittest/html_config.dart';
import 'dart:html';
@@ -9,28 +10,28 @@ main() {
useHtmlConfiguration();
test('EventListener', () {
- final int N = 1000000;
- final int M = 1000;
-
- var div;
- for (int i = 0; i < M; ++i) {
- // This memory should be freed when the listener below is
- // collected.
- List l = new List(N);
-
- // Record the iteration number.
- l[N - 1] = i;
-
- div = new Element.tag('div');
- testEvent.forTarget(div).listen((_) {
- // Only the final iteration's listener should be invoked.
- // Note: the reference to l keeps the entire list alive.
- expect(l[N - 1], M - 1);
- });
- }
-
- final event = new Event('test');
- div.dispatchEvent(event);
+ final int N = 1000000;
+ final int M = 1000;
+
+ var div;
+ for (int i = 0; i < M; ++i) {
+ // This memory should be freed when the listener below is
+ // collected.
+ List l = new List(N);
+
+ // Record the iteration number.
+ l[N - 1] = i;
+
+ div = new Element.tag('div');
+ testEvent.forTarget(div).listen((_) {
+ // Only the final iteration's listener should be invoked.
+ // Note: the reference to l keeps the entire list alive.
+ expect(l[N - 1], M - 1);
+ });
+ }
+
+ final event = new Event('test');
+ div.dispatchEvent(event);
});
test('WindowEventListener', () {

Powered by Google App Engine
This is Rietveld 408576698