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

Unified Diff: tests/corelib/src/ListImplementation2VMTest.dart

Issue 8339015: Rename GrowableObjectArray to ListImplementation. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 9 years, 2 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/corelib/src/GrowableObjectArrayVMTest.dart ('k') | tests/corelib/src/ListImplementationVMTest.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/corelib/src/ListImplementation2VMTest.dart
===================================================================
--- tests/corelib/src/ListImplementation2VMTest.dart (revision 505)
+++ tests/corelib/src/ListImplementation2VMTest.dart (working copy)
@@ -3,14 +3,14 @@
// BSD-style license that can be found in the LICENSE file.
// Test GrowableArray.dart.
-#library("GrowableObjectArray2Test.dart");
+#library("ListImplementation2Test.dart");
#import("dart:coreimpl");
-class GrowableObjectArray2Test {
+class ListImplementation2Test {
static testMain() {
- var g = new GrowableObjectArray();
+ var g = new ListImplementation();
Expect.equals(true, g is List);
- Expect.equals(true, g is GrowableObjectArray);
+ Expect.equals(true, g is ListImplementation);
Expect.equals(true, g.isEmpty());
for (int i = 0; i < 100; i++) {
g.add(1);
@@ -23,7 +23,7 @@
Expect.equals(1001, g.removeLast());
Expect.equals(100, g.length);
- var f = new GrowableObjectArray();
+ var f = new ListImplementation();
var list = new List(20);
for (int i = 0; i < list.length; i++) {
f.add(2);
@@ -45,7 +45,7 @@
Expect.equals(true, exceptionCaught);
List<int> plainArray = [4, 3, 9, 12, -4, 9];
- GrowableObjectArray h = new GrowableObjectArray.withCapacity(4);
+ ListImplementation h = new ListImplementation.withCapacity(4);
plainArray.forEach((elem) { h.add(elem); });
int compare(a, b) {
if (a < b) return -1;
@@ -70,5 +70,5 @@
}
main() {
- GrowableObjectArray2Test.testMain();
+ ListImplementation2Test.testMain();
}
« no previous file with comments | « tests/corelib/src/GrowableObjectArrayVMTest.dart ('k') | tests/corelib/src/ListImplementationVMTest.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698