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

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

Issue 10969006: Fixes to tests and updating status file to make buildbot green. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 3 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 | « no previous file | tests/standalone/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.
6 #library("ByteArrayTest.dart");
7
5 #import('dart:scalarlist'); 8 #import('dart:scalarlist');
6 9
7 class ByteArrayTest { 10 class ByteArrayTest {
8 static testInt8List() { 11 static testInt8List() {
9 Expect.throws(() { new Int8List(-1); }, 12 Expect.throws(() { new Int8List(-1); },
10 (e) { return e is IllegalArgumentException; }); 13 (e) { return e is IllegalArgumentException; });
11 var array = new Int8List(10); 14 var array = new Int8List(10);
12 Expect.isTrue(array is List<int>); 15 Expect.isTrue(array is List<int>);
13 Expect.equals(10, array.length); 16 Expect.equals(10, array.length);
14 Expect.equals(1, array.bytesPerElement()); 17 Expect.equals(1, array.bytesPerElement());
(...skipping 2251 matching lines...) Expand 10 before | Expand all | Expand 10 after
2266 testInt64ListView(); 2269 testInt64ListView();
2267 testUint64ListView(); 2270 testUint64ListView();
2268 testFloat32ListView(); 2271 testFloat32ListView();
2269 testFloat64ListView(); 2272 testFloat64ListView();
2270 } 2273 }
2271 } 2274 }
2272 2275
2273 main() { 2276 main() {
2274 ByteArrayTest.testMain(); 2277 ByteArrayTest.testMain();
2275 } 2278 }
OLDNEW
« no previous file with comments | « no previous file | tests/standalone/byte_array_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698