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

Side by Side Diff: tests/standalone/byte_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
« no previous file with comments | « tests/standalone/assert_test.dart ('k') | tests/standalone/constant_left_shift_test.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 byte arrays. 5 // Dart test program for testing native byte 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 ByteArrayTest; 8 library ByteArrayTest;
9 9
10 import "package:expect/expect.dart";
11 import 'dart:scalarlist'; 10 import 'dart:scalarlist';
12 11
13 void testCreateUint8ByteArray() { 12 void testCreateUint8ByteArray() {
14 Uint8List byteArray; 13 Uint8List byteArray;
15 14
16 byteArray = new Uint8List(0); 15 byteArray = new Uint8List(0);
17 Expect.isTrue(byteArray is Uint8List); 16 Expect.isTrue(byteArray is Uint8List);
18 Expect.isFalse(byteArray is Uint8ClampedList); 17 Expect.isFalse(byteArray is Uint8ClampedList);
19 Expect.equals(0, byteArray.length); 18 Expect.equals(0, byteArray.length);
20 19
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after
281 testSetRange(); 280 testSetRange();
282 testIndexOutOfRange(); 281 testIndexOutOfRange();
283 testIndexOf(); 282 testIndexOf();
284 testSubArray(); 283 testSubArray();
285 } 284 }
286 testByteArrayRange(true); 285 testByteArrayRange(true);
287 testUnsignedByteArrayRange(true); 286 testUnsignedByteArrayRange(true);
288 testExternalClampedUnsignedByteArrayRange(true); 287 testExternalClampedUnsignedByteArrayRange(true);
289 } 288 }
290 289
OLDNEW
« no previous file with comments | « tests/standalone/assert_test.dart ('k') | tests/standalone/constant_left_shift_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698