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

Unified Diff: tests/lib_strong/html/typed_arrays_range_checks_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/lib_strong/html/typed_arrays_range_checks_test.dart
diff --git a/tests/lib_strong/html/typed_arrays_range_checks_test.dart b/tests/lib_strong/html/typed_arrays_range_checks_test.dart
index 4551f98910927b73763af36f14d5cef524bb27de..f6d8dbf9b04d49b9bbdbe1c8040bf09917e395a9 100644
--- a/tests/lib_strong/html/typed_arrays_range_checks_test.dart
+++ b/tests/lib_strong/html/typed_arrays_range_checks_test.dart
@@ -12,8 +12,8 @@ const N = 1024;
class _TestList {
_TestList(int n);
- operator[](int i) => i;
- operator[]=(int i, v) {}
+ operator [](int i) => i;
+ operator []=(int i, v) {}
}
_obfuscatedList() {
@@ -33,22 +33,22 @@ main() {
}
test('outOfRangeAccess', () {
- var a = _obfuscatedList();
+ var a = _obfuscatedList();
- expect(() => a[a.length], throws);
- expect(() => a[a.length + 1], throws);
- expect(() => a[a.length + N], throws);
+ expect(() => a[a.length], throws);
+ expect(() => a[a.length + 1], throws);
+ expect(() => a[a.length + N], throws);
- expect(() => a[-1], throws);
- expect(() => a[1.5], throws);
- expect(() => a['length'], throws);
+ expect(() => a[-1], throws);
+ expect(() => a[1.5], throws);
+ expect(() => a['length'], throws);
- expect(() => a[a.length] = 0xdeadbeef, throws);
- expect(() => a[a.length + 1] = 0xdeadbeef, throws);
- expect(() => a[a.length + N] = 0xdeadbeef, throws);
+ expect(() => a[a.length] = 0xdeadbeef, throws);
+ expect(() => a[a.length + 1] = 0xdeadbeef, throws);
+ expect(() => a[a.length + N] = 0xdeadbeef, throws);
- expect(() => a[-1] = 0xdeadbeef, throws);
- expect(() => a[1.5] = 0xdeadbeef, throws);
- expect(() => a['length'] = 1, throws);
+ expect(() => a[-1] = 0xdeadbeef, throws);
+ expect(() => a[1.5] = 0xdeadbeef, throws);
+ expect(() => a['length'] = 1, throws);
});
}

Powered by Google App Engine
This is Rietveld 408576698