mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-28 02:27:19 +02:00
LibWeb: Implement test-web in terms of LibTest/JavaScriptTestRunner
This deduplicates the test-js copy-ism :^)
This commit is contained in:
committed by
Linus Groh
parent
f137c1bfaa
commit
d897abf4c2
Notes:
sideshowbarker
2024-07-18 17:49:46 +09:00
Author: https://github.com/alimpfard Commit: https://github.com/SerenityOS/serenity/commit/d897abf4c2e Pull-request: https://github.com/SerenityOS/serenity/pull/7255 Reviewed-by: https://github.com/linusg
@@ -1,13 +1,15 @@
|
||||
loadPage("file:///res/html/misc/blank.html");
|
||||
describe("createTextNode", () => {
|
||||
loadLocalPage("/res/html/misc/blank.html");
|
||||
afterInitialPageLoad(page => {
|
||||
test("Basic functionality", () => {
|
||||
const text = page.document.createTextNode("Create Text Test");
|
||||
|
||||
afterInitialPageLoad(() => {
|
||||
test("Basic functionality", () => {
|
||||
const text = document.createTextNode("Create Text Test");
|
||||
|
||||
// FIXME: Add this in once Text's constructor is implemented.
|
||||
//expect(text).toBeInstanceOf(Text);
|
||||
expect(text.nodeName).toBe("#text");
|
||||
expect(text.data).toBe("Create Text Test");
|
||||
expect(text.length).toBe(16);
|
||||
// FIXME: Add this in once Text's constructor is implemented.
|
||||
//expect(text).toBeInstanceOf(Text);
|
||||
expect(text.nodeName).toBe("#text");
|
||||
expect(text.data).toBe("Create Text Test");
|
||||
expect(text.length).toBe(16);
|
||||
});
|
||||
});
|
||||
waitForPageToLoad();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user