OLD | NEW |
1 #library('TypedArrays1Test'); | 1 #library('TypedArrays1Test'); |
2 #import('../../../testing/unittest/unittest.dart'); | 2 #import('../../../testing/unittest/unittest_dom.dart'); |
3 #import('dart:dom'); | 3 #import('dart:dom'); |
4 | 4 |
5 main() { | 5 main() { |
6 | 6 |
7 forLayoutTests(); | 7 forLayoutTests(); |
8 | 8 |
9 test('createByLengthTest', () { | 9 test('createByLengthTest', () { |
10 var a = new Float32Array(10); | 10 var a = new Float32Array(10); |
11 Expect.equals(10, a.length); | 11 Expect.equals(10, a.length); |
12 Expect.equals(0, a[4]); | 12 Expect.equals(0, a[4]); |
(...skipping 19 matching lines...) Expand all Loading... |
32 | 32 |
33 }); | 33 }); |
34 | 34 |
35 test('typeTests', () { | 35 test('typeTests', () { |
36 var a = new Float32Array(10); | 36 var a = new Float32Array(10); |
37 Expect.isTrue(a is List); | 37 Expect.isTrue(a is List); |
38 Expect.isTrue(a is List<num>); | 38 Expect.isTrue(a is List<num>); |
39 Expect.isTrue(a is! List<String>); | 39 Expect.isTrue(a is! List<String>); |
40 }); | 40 }); |
41 } | 41 } |
OLD | NEW |