mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-02 12:32:20 +02: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:
Notes:
sideshowbarker
2024-07-19 03:28:13 +09:00
Author: https://github.com/Lubrsi Commit: https://github.com/SerenityOS/serenity/commit/c2a2552e465 Pull-request: https://github.com/SerenityOS/serenity/pull/3198
@@ -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();
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user