summaryrefslogtreecommitdiff
path: root/Libraries/LibWeb/Tests/DOM/mixins/ParentNode.js
diff options
context:
space:
mode:
Diffstat (limited to 'Libraries/LibWeb/Tests/DOM/mixins/ParentNode.js')
-rw-r--r--Libraries/LibWeb/Tests/DOM/mixins/ParentNode.js25
1 files changed, 0 insertions, 25 deletions
diff --git a/Libraries/LibWeb/Tests/DOM/mixins/ParentNode.js b/Libraries/LibWeb/Tests/DOM/mixins/ParentNode.js
deleted file mode 100644
index 3558c0352f..0000000000
--- a/Libraries/LibWeb/Tests/DOM/mixins/ParentNode.js
+++ /dev/null
@@ -1,25 +0,0 @@
-loadPage("file:///home/anon/web-tests/Pages/ParentNode.html");
-
-afterInitialPageLoad(() => {
- test("querySelector basics", () => {
- const firstDuplicateElement = document.querySelector(".duplicate");
- expect(firstDuplicateElement).not.toBeNull();
- expect(firstDuplicateElement.nodeName).toBe("div");
- expect(firstDuplicateElement.innerHTML).toBe("First");
-
- const noElement = document.querySelector(".nonexistent");
- expect(noElement).toBeNull();
- });
-
- test("querySelectorAll basics", () => {
- const allDuplicates = document.querySelectorAll(".duplicate");
- expect(allDuplicates).toHaveLength(2);
- expect(allDuplicates[0].nodeName).toBe("div");
- expect(allDuplicates[0].innerHTML).toBe("First");
- expect(allDuplicates[1].nodeName).toBe("div");
- expect(allDuplicates[1].innerHTML).toBe("Second");
-
- const noElements = document.querySelectorAll(".nonexistent");
- expect(noElements).toHaveLength(0);
- });
-});