<html> | |
<head> | |
<script src="../../resources/js-test.js"></script> | |
</head> | |
<body> | |
<script> | |
description("Tests the prototype chain of interface objects"); | |
shouldBe('Object.getPrototypeOf(HTMLBodyElement)', 'HTMLElement'); | |
shouldBe('Object.getPrototypeOf(HTMLElement)', 'Element'); | |
shouldBe('Object.getPrototypeOf(Element)', 'Node'); | |
shouldBe('Object.getPrototypeOf(Node)', 'EventTarget'); | |
shouldBe('Object.getPrototypeOf(EventTarget)', 'Function.prototype'); | |
</script> | |
</body> | |
</html> |