1
0
Fork 0

Added another subtype to test case to ensure parent property intialization of class instances is recursive

closure/master
Mike Gerwitz 2010-12-17 00:01:22 -05:00
parent ec27eb2286
commit 53a62742c5
1 changed files with 13 additions and 0 deletions

View File

@ -193,3 +193,16 @@ assert.throws( function()
});
}, Error, "__initProps() cannot be declared (internal method)" );
var SubSubAnotherFoo = AnotherFoo.extend(),
SubSubObj1 = new SubSubAnotherFoo(),
SubSubObj2 = new SubSubAnotherFoo();
// to ensure the effect is recursive
assert.ok(
( ( SubSubObj1.arr !== SubSubObj2.arr )
&& ( SubSubObj1.obj !== SubSubObj2.obj )
),
"Instances of subtypes do not share property references"
);