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

Unified Diff: tests/corelib/collection_length_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/corelib/collection_length_test.dart
diff --git a/tests/corelib/collection_length_test.dart b/tests/corelib/collection_length_test.dart
index 3259ab258ae7cd737f725f9602c212e51e2e8047..8d618fdb9156e9eb936ed60c367daf161c6f81dc 100644
--- a/tests/corelib/collection_length_test.dart
+++ b/tests/corelib/collection_length_test.dart
@@ -3,6 +3,7 @@
// BSD-style license that can be found in the LICENSE file.
library map_test;
+
import 'dart:collection';
// Test that length/isEmpty opertions are constant time on
@@ -48,9 +49,8 @@ void testList(List list, n) {
testLength(list, n);
}
-
void testLength(var lengthable, int size) {
- print(lengthable.runtimeType); // Show what hangs the test.
+ print(lengthable.runtimeType); // Show what hangs the test.
int length = 0;
// If length, isEmpty or isNotEmpty is not a constant-time (or very fast)
// operation, this will timeout.
@@ -61,7 +61,6 @@ void testLength(var lengthable, int size) {
if (length != size * 200000) throw "Bad length: $length / size: $size";
}
-
main() {
const int N = 100000;
testMap(new HashMap(), N);

Powered by Google App Engine
This is Rietveld 408576698