Comment.js 519 B

123456789101112131415
  1. loadPage("file:///home/anon/web-tests/Pages/Comment.html");
  2. afterInitialPageLoad(() => {
  3. test("Basic functionality", () => {
  4. const comment = document.body.firstChild.nextSibling;
  5. expect(comment).not.toBeNull();
  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("This is a comment");
  10. expect(comment).toHaveLength(17);
  11. });
  12. });