document.head.js 578 B

12345678910111213141516
  1. loadPage("file:///res/html/misc/blank.html");
  2. afterInitialPageLoad(() => {
  3. test("Basic functionality", () => {
  4. expect(document.head).not.toBeNull();
  5. // FIXME: Add this in once HTMLHeadElement's constructor is implemented.
  6. //expect(document.head).toBeInstanceOf(HTMLHeadElement);
  7. expect(document.head.nodeName).toBe("head");
  8. });
  9. // FIXME: Add this in once removeChild is implemented.
  10. test.skip("Nullable", () => {
  11. document.documentElement.removeChild(document.head);
  12. expect(document.head).toBeNull();
  13. });
  14. });