mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 03:17:35 +00:00
LibWeb: Fix nodeName attribute in tests
Commit 19731fc14c
(#6864) made all nodeName attributes on HTML elements
uppercased. This change fixes that in all HTML & DOM tests.
This commit is contained in:
parent
37685b0181
commit
737f6e97b2
7 changed files with 12 additions and 12 deletions
|
@ -5,7 +5,7 @@ afterInitialPageLoad(() => {
|
|||
expect(document.body).not.toBeNull();
|
||||
// FIXME: Add this in once HTMLBodyElement's constructor is implemented.
|
||||
//expect(document.body).toBeInstanceOf(HTMLBodyElement);
|
||||
expect(document.body.nodeName).toBe("body");
|
||||
expect(document.body.nodeName).toBe("BODY");
|
||||
});
|
||||
|
||||
// FIXME: Add this in once set_body is fully implemented.
|
||||
|
@ -20,7 +20,7 @@ afterInitialPageLoad(() => {
|
|||
document.body = newBody;
|
||||
|
||||
expect(document.body).not.toBeNull();
|
||||
expect(document.body.nodeName).toBe("body");
|
||||
expect(document.body.nodeName).toBe("BODY");
|
||||
|
||||
// FIXME: Add this in once HTMLBodyElement's constructor is implemented.
|
||||
//expect(document.body).toBeInstanceOf(HTMLBodyElement);
|
||||
|
@ -34,7 +34,7 @@ afterInitialPageLoad(() => {
|
|||
document.body = newFrameSet;
|
||||
|
||||
expect(document.body).not.toBeNull();
|
||||
expect(document.body.nodeName).toBe("frameset");
|
||||
expect(document.body.nodeName).toBe("FRAMESET");
|
||||
|
||||
// FIXME: Add this in once HTMLFrameSetElement's constructor is implemented.
|
||||
//expect(document.body).toBeInstanceOf(HTMLFrameSetElement);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue