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); |
}); |
} |