2021-05-18 18:46:54 +04:30
|
|
|
describe("createDocumentFragment", () => {
|
|
|
|
|
loadLocalPage("/res/html/misc/blank.html");
|
2020-08-17 21:04:46 +01:00
|
|
|
|
2021-05-18 18:46:54 +04:30
|
|
|
afterInitialPageLoad(page => {
|
|
|
|
|
test("Basic functionality", () => {
|
|
|
|
|
const fragment = page.document.createDocumentFragment();
|
2020-08-17 21:04:46 +01:00
|
|
|
|
2021-05-18 18:46:54 +04:30
|
|
|
// FIXME: Add this in once DocumentFragment's constructor is implemented.
|
|
|
|
|
//expect(fragment).toBeInstanceOf(DocumentFragment);
|
|
|
|
|
expect(fragment.nodeName).toBe("#document-fragment");
|
|
|
|
|
});
|
2020-08-17 21:04:46 +01:00
|
|
|
});
|
2021-05-18 18:46:54 +04:30
|
|
|
|
|
|
|
|
waitForPageToLoad();
|
2020-08-17 21:04:46 +01:00
|
|
|
});
|