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

Side by Side Diff: runtime/tests/vm/dart/byte_array_test.dart

Issue 12212016: Remove Expect from core library. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 10 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 // Library tag to be able to run in html test framework. 5 // Library tag to be able to run in html test framework.
6 library byte_array_test; 6 library byte_array_test;
7 7
8 import "package:expect/expect.dart";
8 import 'dart:scalarlist'; 9 import 'dart:scalarlist';
9 10
10 class ByteArrayTest { 11 class ByteArrayTest {
11 static testInt8ListImpl(Int8List array) { 12 static testInt8ListImpl(Int8List array) {
12 Expect.isTrue(array is List<int>); 13 Expect.isTrue(array is List<int>);
13 Expect.equals(10, array.length); 14 Expect.equals(10, array.length);
14 Expect.equals(1, array.bytesPerElement()); 15 Expect.equals(1, array.bytesPerElement());
15 Expect.equals(10, array.lengthInBytes()); 16 Expect.equals(10, array.lengthInBytes());
16 Expect.listEquals([0, 0, 0, 0, 0, 17 Expect.listEquals([0, 0, 0, 0, 0,
17 0, 0, 0, 0, 0], 18 0, 0, 0, 0, 0],
(...skipping 2382 matching lines...) Expand 10 before | Expand all | Expand 10 after
2400 testInt64ListView(); 2401 testInt64ListView();
2401 testUint64ListView(); 2402 testUint64ListView();
2402 testFloat32ListView(); 2403 testFloat32ListView();
2403 testFloat64ListView(); 2404 testFloat64ListView();
2404 } 2405 }
2405 } 2406 }
2406 2407
2407 main() { 2408 main() {
2408 ByteArrayTest.testMain(); 2409 ByteArrayTest.testMain();
2409 } 2410 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698