2021-05-18 18:46:54 +04:30
|
|
|
describe("createComment", () => {
|
|
|
|
|
loadLocalPage("/res/html/misc/blank.html");
|
2020-08-17 21:04:46 +01:00
|
|
|
|
2021-05-18 18:46:54 +04:30
|
|
|
afterInitialPageLoad(page => {
|
|
|
|
|
test("Basic functionality", () => {
|
|
|
|
|
const comment = page.document.createComment("Create Comment Test");
|
2020-08-17 21:04:46 +01:00
|
|
|
|
2021-05-18 18:46:54 +04:30
|
|
|
// FIXME: Add this in once Comment's constructor is implemented.
|
|
|
|
|
//expect(comment).toBeInstanceOf(Comment);
|
|
|
|
|
expect(comment.nodeName).toBe("#comment");
|
|
|
|
|
expect(comment.data).toBe("Create Comment Test");
|
|
|
|
|
expect(comment.length).toBe(19);
|
|
|
|
|
});
|
2020-08-17 21:04:46 +01:00
|
|
|
});
|
2021-05-18 18:46:54 +04:30
|
|
|
waitForPageToLoad();
|
2020-08-17 21:04:46 +01:00
|
|
|
});
|