mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 23:07:35 +00:00
Base+LibJS+LibWeb: Make prettier clean
Also use "// prettier-ignore" comments where necessary rather than excluding whole files (via .prettierignore).
This commit is contained in:
parent
76239f89c2
commit
5122f98198
24 changed files with 100 additions and 79 deletions
|
@ -1,9 +1,9 @@
|
|||
loadPage("file:///res/html/misc/welcome.html")
|
||||
loadPage("file:///res/html/misc/welcome.html");
|
||||
|
||||
afterInitialPageLoad(() => {
|
||||
test("contentEditable attribute", () => {
|
||||
test("contentEditable attribute", () => {
|
||||
expect(document.body.contentEditable).toBe("inherit");
|
||||
expect(document.firstChild.nextSibling.nodeName).toBe("html");
|
||||
expect(document.firstChild.nextSibling.contentEditable).toBe("true");
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
|
@ -4,7 +4,7 @@ afterInitialPageLoad(() => {
|
|||
test("Basic functionality", () => {
|
||||
const template = document.getElementById("template");
|
||||
expect(template).not.toBeNull();
|
||||
|
||||
|
||||
// The contents of a template element are not children of the actual element.
|
||||
// The document fragment is not a child of the element either.
|
||||
expect(template.firstChild).toBeNull();
|
||||
|
@ -17,7 +17,7 @@ afterInitialPageLoad(() => {
|
|||
expect(templateDiv.nodeName).toBe("div");
|
||||
expect(templateDiv.textContent).toBe("Hello template!");
|
||||
});
|
||||
|
||||
|
||||
test("Templates are inert (e.g. scripts won't run)", () => {
|
||||
// The page has a template element with a script element in it.
|
||||
// Templates are inert, for example, they won't run scripts.
|
||||
|
|
|
@ -49,7 +49,7 @@ afterInitialPageLoad(() => {
|
|||
|
||||
// FIXME: Add this in once removeChild is implemented.
|
||||
test.skip("Nullable", () => {
|
||||
document.documentElement.removeChild(document.body);
|
||||
expect(document.body).toBeNull();
|
||||
document.documentElement.removeChild(document.body);
|
||||
expect(document.body).toBeNull();
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue