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

Unified Diff: tests/standalone/src/ByteArrayTest.dart

Issue 10252020: test rename overhaul: step 12 - standalone (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tests/standalone/src/BlackListedTest.dart ('k') | tests/standalone/src/DeoptimizationTest.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/src/ByteArrayTest.dart
diff --git a/tests/standalone/src/ByteArrayTest.dart b/tests/standalone/src/ByteArrayTest.dart
deleted file mode 100644
index 9e950622404d0ec496c95073edf36d07fd5f5f93..0000000000000000000000000000000000000000
--- a/tests/standalone/src/ByteArrayTest.dart
+++ /dev/null
@@ -1,62 +0,0 @@
-// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-//
-// Dart test program for testing native byte arrays.
-
-void testCreateByteArray() {
- ByteArray byteArray;
-
- byteArray = new ByteArray(0);
- Expect.equals(0, byteArray.length);
-
- byteArray = new ByteArray(10);
- Expect.equals(10, byteArray.length);
- for (int i = 0; i < 10; i++) {
- Expect.equals(0, byteArray[i]);
- }
-}
-
-void testSetRange() {
- ByteArray byteArray = new ByteArray(3);
-
- List<int> list = [10, 11, 12];
- byteArray.setRange(0, 3, list);
- for (int i = 0; i < 3; i++) {
- Expect.equals(10 + i, byteArray[i]);
- }
-
- byteArray[0] = 20;
- byteArray[1] = 21;
- byteArray[2] = 22;
- list.setRange(0, 3, byteArray);
- for (int i = 0; i < 3; i++) {
- Expect.equals(20 + i, list[i]);
- }
-
- byteArray.setRange(1, 2, const [8, 9]);
- Expect.equals(20, byteArray[0]);
- Expect.equals(8, byteArray[1]);
- Expect.equals(9, byteArray[2]);
-}
-
-void testIndexOutOfRange() {
- ByteArray byteArray = new ByteArray(3);
- List<int> list = const [0, 1, 2, 3];
-
- Expect.throws(() {
- byteArray.setRange(0, 4, list);
- });
-
- Expect.throws(() {
- byteArray.setRange(3, 1, list);
- });
-}
-
-main() {
- for (int i = 0; i < 2000; i++) {
- testCreateByteArray();
- testSetRange();
- testIndexOutOfRange();
- }
-}
« no previous file with comments | « tests/standalone/src/BlackListedTest.dart ('k') | tests/standalone/src/DeoptimizationTest.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698