| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 // | 4 // |
| 5 // Dart test program for testing typed data. | 5 // Dart test program for testing typed data. |
| 6 | 6 |
| 7 // Library tag to be able to run in html test framework. | 7 // Library tag to be able to run in html test framework. |
| 8 library TypedDataTest; | 8 library TypedDataTest; |
| 9 | 9 |
| 10 import "package:expect/expect.dart"; | |
| 11 import 'dart:typeddata'; | 10 import 'dart:typeddata'; |
| 12 | 11 |
| 13 void testCreateUint8TypedData() { | 12 void testCreateUint8TypedData() { |
| 14 Uint8List typed_data; | 13 Uint8List typed_data; |
| 15 | 14 |
| 16 typed_data = new Uint8List(0); | 15 typed_data = new Uint8List(0); |
| 17 Expect.isTrue(typed_data is Uint8List); | 16 Expect.isTrue(typed_data is Uint8List); |
| 18 Expect.isFalse(typed_data is Uint8ClampedList); | 17 Expect.isFalse(typed_data is Uint8ClampedList); |
| 19 Expect.equals(0, typed_data.length); | 18 Expect.equals(0, typed_data.length); |
| 20 | 19 |
| (...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 231 testExternalClampedUnsignedTypedDataRange(false); | 230 testExternalClampedUnsignedTypedDataRange(false); |
| 232 testSetRange(); | 231 testSetRange(); |
| 233 testIndexOutOfRange(); | 232 testIndexOutOfRange(); |
| 234 testIndexOf(); | 233 testIndexOf(); |
| 235 } | 234 } |
| 236 testTypedDataRange(true); | 235 testTypedDataRange(true); |
| 237 testUnsignedTypedDataRange(true); | 236 testUnsignedTypedDataRange(true); |
| 238 testExternalClampedUnsignedTypedDataRange(true); | 237 testExternalClampedUnsignedTypedDataRange(true); |
| 239 } | 238 } |
| 240 | 239 |
| OLD | NEW |