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