Changeset 15497 in webkit for trunk/JavaScriptCore/API/testapi.js
- Timestamp:
- Jul 17, 2006, 9:33:46 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/API/testapi.js
r15473 r15497 106 106 shouldThrow("MyObject.nullCall()"); 107 107 shouldThrow("MyObject.hasPropertyLie"); 108 109 derived = new Derived(); 110 111 // base properties and functions return 1 when called/gotten; derived, 2 112 shouldBe("derived.baseProtoDup()", 2); 113 shouldBe("derived.baseProto()", 1); 114 shouldBe("derived.baseDup", 2); 115 shouldBe("derived.baseOnly", 1); 116 shouldBe("derived.protoOnly()", 2); 117 shouldBe("derived.protoDup", 2); 118 shouldBe("derived.derivedOnly", 2) 119 120 // base properties throw 1 when set; derived, 2 121 shouldBe("derived.baseDup = 0", 2); 122 shouldBe("derived.baseOnly = 0", 1); 123 shouldBe("derived.derivedOnly = 0", 2) 124 shouldBe("derived.protoDup = 0", 2);
Note:
See TracChangeset
for help on using the changeset viewer.