mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 12:27:34 +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,15 +1,17 @@
|
|||
loadPage("file:///home/anon/web-tests/Pages/Comment.html");
|
||||
describe("Comments", () => {
|
||||
loadLocalPage("Comment.html");
|
||||
afterInitialPageLoad(page => {
|
||||
test("Basic functionality", () => {
|
||||
const comment = page.document.body.firstChild.nextSibling;
|
||||
expect(comment).not.toBeNull();
|
||||
|
||||
afterInitialPageLoad(() => {
|
||||
test("Basic functionality", () => {
|
||||
const comment = document.body.firstChild.nextSibling;
|
||||
expect(comment).not.toBeNull();
|
||||
// FIXME: Add this in once Comment's constructor is implemented.
|
||||
//expect(comment).toBeInstanceOf(Comment);
|
||||
|
||||
// FIXME: Add this in once Comment's constructor is implemented.
|
||||
//expect(comment).toBeInstanceOf(Comment);
|
||||
|
||||
expect(comment.nodeName).toBe("#comment");
|
||||
expect(comment.data).toBe("This is a comment");
|
||||
expect(comment).toHaveLength(17);
|
||||
expect(comment.nodeName).toBe("#comment");
|
||||
expect(comment.data).toBe("This is a comment");
|
||||
expect(comment).toHaveLength(17);
|
||||
});
|
||||
});
|
||||
waitForPageToLoad();
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue