mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-11-06 00:00:58 +00:00
16 lines
519 B
JavaScript
16 lines
519 B
JavaScript
|
|
loadPage("file:///home/anon/web-tests/Pages/Comment.html");
|
||
|
|
|
||
|
|
afterInitialPageLoad(() => {
|
||
|
|
test("Basic functionality", () => {
|
||
|
|
const comment = document.body.firstChild.nextSibling;
|
||
|
|
expect(comment).not.toBeNull();
|
||
|
|
|
||
|
|
// FIXME: Add this in once Comment's constructor is implemented.
|
||
|
|
//expect(comment).toBeInstanceOf(Comment);
|
||
|
|
|
||
|
|
expect(comment.nodeName).toBe("#comment");
|
||
|
|
expect(comment.data).toBe("This is a comment");
|
||
|
|
expect(comment).toHaveLength(17);
|
||
|
|
});
|
||
|
|
});
|