mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 15:57:45 +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,11 +1,15 @@
|
|||
loadPage("file:///res/html/misc/blank.html");
|
||||
describe("createDocumentFragment", () => {
|
||||
loadLocalPage("/res/html/misc/blank.html");
|
||||
|
||||
afterInitialPageLoad(() => {
|
||||
test("Basic functionality", () => {
|
||||
const fragment = document.createDocumentFragment();
|
||||
afterInitialPageLoad(page => {
|
||||
test("Basic functionality", () => {
|
||||
const fragment = page.document.createDocumentFragment();
|
||||
|
||||
// FIXME: Add this in once DocumentFragment's constructor is implemented.
|
||||
//expect(fragment).toBeInstanceOf(DocumentFragment);
|
||||
expect(fragment.nodeName).toBe("#document-fragment");
|
||||
// FIXME: Add this in once DocumentFragment's constructor is implemented.
|
||||
//expect(fragment).toBeInstanceOf(DocumentFragment);
|
||||
expect(fragment.nodeName).toBe("#document-fragment");
|
||||
});
|
||||
});
|
||||
|
||||
waitForPageToLoad();
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue