document.createComment.js 474 B

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