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

Side by Side Diff: tests/standalone/float_array_test.dart

Issue 14426006: Rename dart:typeddata to dart:typed_data. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « tests/standalone/bytedata_test.dart ('k') | tests/standalone/int_array_deopt.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 native float arrays. 5 // Dart test program for testing native float arrays.
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 FloatArrayTest; 8 library FloatArrayTest;
9 9
10 import "package:expect/expect.dart"; 10 import "package:expect/expect.dart";
11 import 'dart:typeddata'; 11 import 'dart:typed_data';
12 12
13 void testCreateFloat32Array() { 13 void testCreateFloat32Array() {
14 Float32List floatArray; 14 Float32List floatArray;
15 15
16 floatArray = new Float32List(0); 16 floatArray = new Float32List(0);
17 Expect.equals(0, floatArray.length); 17 Expect.equals(0, floatArray.length);
18 18
19 floatArray = new Float32List(10); 19 floatArray = new Float32List(10);
20 Expect.equals(10, floatArray.length); 20 Expect.equals(10, floatArray.length);
21 for (int i = 0; i < 10; i++) { 21 for (int i = 0; i < 10; i++) {
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 testBadValues32(); 207 testBadValues32();
208 testBadValues64(); 208 testBadValues64();
209 // Check optimized (inlined) version of []= 209 // Check optimized (inlined) version of []=
210 Expect.throws(() { 210 Expect.throws(() {
211 storeIt32(a32, 1, 2); 211 storeIt32(a32, 1, 2);
212 }); 212 });
213 Expect.throws(() { 213 Expect.throws(() {
214 storeIt64(a64, 1, 2); 214 storeIt64(a64, 1, 2);
215 }); 215 });
216 } 216 }
OLDNEW
« no previous file with comments | « tests/standalone/bytedata_test.dart ('k') | tests/standalone/int_array_deopt.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698