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

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

Issue 12212016: Remove Expect from core library. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Add deprecation comment for ExpectException and revert one test. 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 | « pkg/yaml/test/yaml_test.dart ('k') | runtime/tests/vm/dart/byte_array_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 // 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:typeddata'; 9 import 'dart:typeddata';
9 10
10 // This test exercises optimized [] and []= operators 11 // This test exercises optimized [] and []= operators
11 // on byte array views. 12 // on byte array views.
12 class OptimizedByteArrayTest { 13 class OptimizedByteArrayTest {
13 static testInt8ListImpl(Int8List array) { 14 static testInt8ListImpl(Int8List array) {
14 Expect.isTrue(array is List<int>); 15 Expect.isTrue(array is List<int>);
15 Expect.equals(10, array.length); 16 Expect.equals(10, array.length);
16 Expect.equals(1, array.elementSizeInBytes); 17 Expect.equals(1, array.elementSizeInBytes);
17 Expect.equals(10, array.lengthInBytes); 18 Expect.equals(10, array.lengthInBytes);
(...skipping 2147 matching lines...) Expand 10 before | Expand all | Expand 10 after
2165 testFloat32ListView(); 2166 testFloat32ListView();
2166 testFloat64ListView(); 2167 testFloat64ListView();
2167 } 2168 }
2168 } 2169 }
2169 2170
2170 main() { 2171 main() {
2171 for (var i=0; i<1000; i++) { 2172 for (var i=0; i<1000; i++) {
2172 OptimizedByteArrayTest.testMain(); 2173 OptimizedByteArrayTest.testMain();
2173 } 2174 }
2174 } 2175 }
OLDNEW
« no previous file with comments | « pkg/yaml/test/yaml_test.dart ('k') | runtime/tests/vm/dart/byte_array_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698