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

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

Issue 12212016: Remove Expect from core library. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated latest tests. 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) 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";
10 import 'dart:typeddata'; 11 import 'dart:typeddata';
11 12
12 void testCreateUint8TypedData() { 13 void testCreateUint8TypedData() {
13 Uint8List typed_data; 14 Uint8List typed_data;
14 15
15 typed_data = new Uint8List(0); 16 typed_data = new Uint8List(0);
16 Expect.isTrue(typed_data is Uint8List); 17 Expect.isTrue(typed_data is Uint8List);
17 Expect.isFalse(typed_data is Uint8ClampedList); 18 Expect.isFalse(typed_data is Uint8ClampedList);
18 Expect.equals(0, typed_data.length); 19 Expect.equals(0, typed_data.length);
19 20
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 testExternalClampedUnsignedTypedDataRange(false); 231 testExternalClampedUnsignedTypedDataRange(false);
231 testSetRange(); 232 testSetRange();
232 testIndexOutOfRange(); 233 testIndexOutOfRange();
233 testIndexOf(); 234 testIndexOf();
234 } 235 }
235 testTypedDataRange(true); 236 testTypedDataRange(true);
236 testUnsignedTypedDataRange(true); 237 testUnsignedTypedDataRange(true);
237 testExternalClampedUnsignedTypedDataRange(true); 238 testExternalClampedUnsignedTypedDataRange(true);
238 } 239 }
239 240
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698