mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 19:38:12 +00:00
LibWeb: Implement test-web in terms of LibTest/JavaScriptTestRunner
This deduplicates the test-js copy-ism :^)
This commit is contained in:
parent
f137c1bfaa
commit
d897abf4c2
26 changed files with 643 additions and 1159 deletions
|
@ -1,9 +1,12 @@
|
|||
loadPage("file:///res/html/misc/welcome.html");
|
||||
describe("HTMLElement", () => {
|
||||
loadLocalPage("/res/html/misc/welcome.html");
|
||||
|
||||
afterInitialPageLoad(() => {
|
||||
test("contentEditable attribute", () => {
|
||||
expect(document.body.contentEditable).toBe("inherit");
|
||||
expect(document.firstChild.nextSibling.nodeName).toBe("HTML");
|
||||
expect(document.firstChild.nextSibling.contentEditable).toBe("true");
|
||||
afterInitialPageLoad(page => {
|
||||
test("contentEditable attribute", () => {
|
||||
expect(page.document.body.contentEditable).toBe("inherit");
|
||||
expect(page.document.firstChild.nextSibling.nodeName).toBe("HTML");
|
||||
expect(page.document.firstChild.nextSibling.contentEditable).toBe("true");
|
||||
});
|
||||
});
|
||||
waitForPageToLoad();
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue