assertNull(fun.getParameterSlot(2));
assertTrue(fun.getInstanceType().isInstance());
}
public void testInstance() {
ConcreteInstanceType obj = createInstance("MyObj", "a", "b");
assertTrue(obj.isInstance());
assertNotNull(obj.getPropertySlot("a"));
assertNotNull(obj.getPropertySlot("b"));
assertNull(obj.getPropertySlot("c"));
// The prototype chain should be: MyObj -> MyObj.prototype -> Object ->
// Object.prototype -> null.
for (int i = 0; i < 3; ++i) {
assertNotNull(obj = obj.getImplicitPrototype());
assertTrue(obj.isInstance());
}
assertNull(obj.getImplicitPrototype());
}