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

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

Issue 12743005: Revert "Remove Expect from core library." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Reupload (first upload failed). Created 7 years, 9 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
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 int arrays. 5 // Dart test program for testing native int 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 IntArrayTest; 8 library IntArrayTest;
9 9
10 import "package:expect/expect.dart";
11 import 'dart:typeddata'; 10 import 'dart:typeddata';
12 11
13 void testInt16() { 12 void testInt16() {
14 Int16List intArray = new Int16List(4); 13 Int16List intArray = new Int16List(4);
15 intArray[0] = 0; 14 intArray[0] = 0;
16 intArray[1] = -1; 15 intArray[1] = -1;
17 intArray[2] = -2; 16 intArray[2] = -2;
18 intArray[3] = -3; 17 intArray[3] = -3;
19 for (int i = 0; i < intArray.length; i++) { 18 for (int i = 0; i < intArray.length; i++) {
20 intArray[i]++; 19 intArray[i]++;
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 testUint64ToSmi(); 130 testUint64ToSmi();
132 for (int i = 0; i < 2000; i++) { 131 for (int i = 0; i < 2000; i++) {
133 testInt16(); 132 testInt16();
134 testUint16(); 133 testUint16();
135 testInt32ToSmi(); 134 testInt32ToSmi();
136 testUint32ToSmi(); 135 testUint32ToSmi();
137 testInt64ToSmi(); 136 testInt64ToSmi();
138 testUint64ToSmi(); 137 testUint64ToSmi();
139 } 138 }
140 } 139 }
OLDNEW
« no previous file with comments | « tests/standalone/int_array_load_elimination_test.dart ('k') | tests/standalone/io/dart_std_io_pipe_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698