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

Unified Diff: runtime/vm/object_test.cc

Issue 10521004: Eliminate RawObject::class_ field entirely. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 6 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
Index: runtime/vm/object_test.cc
diff --git a/runtime/vm/object_test.cc b/runtime/vm/object_test.cc
index 7d5d870b6fddfdf396b5d87df69246b2d05359f9..78bf706ff76cf3f03a053594d56ba5a6b10ba48d 100644
--- a/runtime/vm/object_test.cc
+++ b/runtime/vm/object_test.cc
@@ -1786,14 +1786,14 @@ TEST_CASE(GrowableObjectArray) {
// Test the MakeArray functionality to make sure the resulting array
// object is properly setup.
- // 1. Should produce an array of length 2 and a remainder array of length 0.
+ // 1. Should produce an array of length 2 and a remainder array of length 1.
Array& new_array = Array::Handle();
Object& obj = Object::Handle();
uword addr = 0;
intptr_t used_size = 0;
- array = GrowableObjectArray::New(kArrayLen);
- EXPECT_EQ(kArrayLen, array.Capacity());
+ array = GrowableObjectArray::New(kArrayLen + 1);
+ EXPECT_EQ(kArrayLen + 1, array.Capacity());
EXPECT_EQ(0, array.Length());
for (intptr_t i = 0; i < 2; i++) {
value = Smi::New(i);
@@ -1850,7 +1850,7 @@ TEST_CASE(GrowableObjectArray) {
obj = RawObject::FromAddr(addr);
EXPECT(obj.IsArray());
new_array ^= obj.raw();
- EXPECT_EQ(2, new_array.Length());
+ EXPECT_EQ(4, new_array.Length());
}

Powered by Google App Engine
This is Rietveld 408576698