2 "This tests that isPrototypeOf works according to the ECMA spec."
5 shouldBeFalse("Object.isPrototypeOf('string')");
6 shouldBeTrue("Array.prototype.isPrototypeOf(new Array())");
10 ObjectB.prototype = new ObjectA();
11 var objb = new ObjectB();
12 shouldBeTrue("ObjectA.prototype.isPrototypeOf(objb)");
15 ObjectC.prototype = new ObjectB();
16 var objc = new ObjectC();
17 shouldBeTrue("ObjectA.prototype.isPrototypeOf(objc)");