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

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

Issue 11368124: Fix library syntax (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 1 month 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 | « runtime/lib/utf/utf_vm.dart ('k') | runtime/tests/vm/dart/isolate_mirror_local_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("ByteArrayTest.dart"); 6 library ByteArrayTest;
Siggi Cherem (dart-lang) 2012/11/08 18:38:19 use lower_case_name to match the filename.
7 7
8 #import('dart:scalarlist'); 8 import 'dart:scalarlist';
9 9
10 class ByteArrayTest { 10 class ByteArrayTest {
11 static testInt8List() { 11 static testInt8List() {
12 Expect.throws(() { new Int8List(-1); }, 12 Expect.throws(() { new Int8List(-1); },
13 (e) { return e is ArgumentError; }); 13 (e) { return e is ArgumentError; });
14 var array = new Int8List(10); 14 var array = new Int8List(10);
15 Expect.isTrue(array is List<int>); 15 Expect.isTrue(array is List<int>);
16 Expect.equals(10, array.length); 16 Expect.equals(10, array.length);
17 Expect.equals(1, array.bytesPerElement()); 17 Expect.equals(1, array.bytesPerElement());
18 Expect.equals(10, array.lengthInBytes()); 18 Expect.equals(10, array.lengthInBytes());
(...skipping 2250 matching lines...) Expand 10 before | Expand all | Expand 10 after
2269 testInt64ListView(); 2269 testInt64ListView();
2270 testUint64ListView(); 2270 testUint64ListView();
2271 testFloat32ListView(); 2271 testFloat32ListView();
2272 testFloat64ListView(); 2272 testFloat64ListView();
2273 } 2273 }
2274 } 2274 }
2275 2275
2276 main() { 2276 main() {
2277 ByteArrayTest.testMain(); 2277 ByteArrayTest.testMain();
2278 } 2278 }
OLDNEW
« no previous file with comments | « runtime/lib/utf/utf_vm.dart ('k') | runtime/tests/vm/dart/isolate_mirror_local_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698