document.createComment.js 586 B

12345678910111213141516
  1. describe("createComment", () => {
  2. loadLocalPage("/res/html/misc/blank.html");
  3. afterInitialPageLoad(page => {
  4. test("Basic functionality", () => {
  5. const comment = page.document.createComment("Create Comment Test");
  6. // FIXME: Add this in once Comment's constructor is implemented.
  7. //expect(comment).toBeInstanceOf(Comment);
  8. expect(comment.nodeName).toBe("#comment");
  9. expect(comment.data).toBe("Create Comment Test");
  10. expect(comment.length).toBe(19);
  11. });
  12. });
  13. waitForPageToLoad();
  14. });