mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 06:37:43 +00:00
LibWeb: Add more document tests, add comment, text and mixin tests
Also adds a TypeScript definition file for the test runner object.
This commit is contained in:
parent
8b807e65d7
commit
c2a2552e46
18 changed files with 224 additions and 15 deletions
16
Libraries/LibWeb/Tests/libweb_tester.d.ts
vendored
Normal file
16
Libraries/LibWeb/Tests/libweb_tester.d.ts
vendored
Normal file
|
@ -0,0 +1,16 @@
|
|||
// NOTE: This file is only for syntax highlighting, documentation, etc.
|
||||
|
||||
interface LibwebTester {
|
||||
/**
|
||||
* Changes the page to the specified URL. Everything afterwards will refer to the new page.
|
||||
* @param url Page to load.
|
||||
*/
|
||||
changePage(url: string): void;
|
||||
}
|
||||
|
||||
interface Window {
|
||||
/**
|
||||
* Special test object used to ease test development for LibWeb.
|
||||
*/
|
||||
readonly libweb_tester: LibwebTester;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue