summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/Tests/DOM/document.createComment.js
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Libraries/LibWeb/Tests/DOM/document.createComment.js')
-rw-r--r--Userland/Libraries/LibWeb/Tests/DOM/document.createComment.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWeb/Tests/DOM/document.createComment.js b/Userland/Libraries/LibWeb/Tests/DOM/document.createComment.js
new file mode 100644
index 0000000000..a60d6bfcd5
--- /dev/null
+++ b/Userland/Libraries/LibWeb/Tests/DOM/document.createComment.js
@@ -0,0 +1,13 @@
+loadPage("file:///res/html/misc/blank.html");
+
+afterInitialPageLoad(() => {
+ test("Basic functionality", () => {
+ const comment = document.createComment("Create Comment Test");
+
+ // 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);
+ });
+});