blob: 8786dbe29490e57e92d0b0b3b8e7bdd791a10400 (
plain)
1
2
3
4
5
6
7
8
9
|
description("This test checks to see if document.head is available, readonly, and the same element as what we would expect by getting it by other means.");
shouldBe("document.head", "document.getElementsByTagName('head')[0]");
document.head = 1;
shouldBeTrue("document.head !== 1");
document.documentElement.removeChild(document.head);
shouldBeNull("document.head");
|