mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 20:29:18 +00:00
LibWeb: Add more document tests, add comment, text and mixin tests
Also adds a TypeScript definition file for the test runner object.
This commit is contained in:
parent
8b807e65d7
commit
c2a2552e46
Notes:
sideshowbarker
2024-07-19 03:28:13 +09:00
Author: https://github.com/Lubrsi
Commit: c2a2552e46
Pull-request: https://github.com/SerenityOS/serenity/pull/3198
18 changed files with 224 additions and 15 deletions
|
@ -2,7 +2,15 @@ loadPage("file:///res/html/misc/blank.html");
|
|||
|
||||
afterInitialPageLoad(() => {
|
||||
test("Basic functionality", () => {
|
||||
expect(document.documentElement).not.toBe(null);
|
||||
expect(document.documentElement).not.toBeNull();
|
||||
// FIXME: Add this in once HTMLHtmlElement's constructor is implemented.
|
||||
//expect(document.documentElement).toBeInstanceOf(HTMLHtmlElement);
|
||||
expect(document.documentElement.nodeName).toBe("html");
|
||||
});
|
||||
|
||||
// FIXME: Add this in once removeChild is implemented.
|
||||
test.skip("Nullable", () => {
|
||||
document.removeChild(document.documentElement);
|
||||
expect(document.documentElement).toBeNull();
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue