mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-21 23:20:20 +00:00
Documentation: Explain how to use the rebaseline-libweb-test script
Some checks are pending
CI / Lagom (false, FUZZ, ubuntu-22.04, Linux, Clang) (push) Waiting to run
CI / Lagom (false, NO_FUZZ, macos-14, macOS, Clang) (push) Waiting to run
CI / Lagom (false, NO_FUZZ, ubuntu-22.04, Linux, GNU) (push) Waiting to run
CI / Lagom (true, NO_FUZZ, ubuntu-22.04, Linux, Clang) (push) Waiting to run
Package the js repl as a binary artifact / build-and-package (macos-14, macOS, macOS-universal2) (push) Waiting to run
Package the js repl as a binary artifact / build-and-package (ubuntu-22.04, Linux, Linux-x86_64) (push) Waiting to run
Run test262 and test-wasm / run_and_update_results (push) Waiting to run
Lint Code / lint (push) Waiting to run
Push notes / build (push) Waiting to run
Some checks are pending
CI / Lagom (false, FUZZ, ubuntu-22.04, Linux, Clang) (push) Waiting to run
CI / Lagom (false, NO_FUZZ, macos-14, macOS, Clang) (push) Waiting to run
CI / Lagom (false, NO_FUZZ, ubuntu-22.04, Linux, GNU) (push) Waiting to run
CI / Lagom (true, NO_FUZZ, ubuntu-22.04, Linux, Clang) (push) Waiting to run
Package the js repl as a binary artifact / build-and-package (macos-14, macOS, macOS-universal2) (push) Waiting to run
Package the js repl as a binary artifact / build-and-package (ubuntu-22.04, Linux, Linux-x86_64) (push) Waiting to run
Run test262 and test-wasm / run_and_update_results (push) Waiting to run
Lint Code / lint (push) Waiting to run
Push notes / build (push) Waiting to run
This change adds documentation on using the rebaseline-libweb-test script to regenerate the expectations file for a LibWeb/Text/input test.
This commit is contained in:
parent
59f2b4fefc
commit
55aad12fe3
Notes:
github-actions[bot]
2024-09-01 12:16:34 +00:00
Author: https://github.com/sideshowbarker Commit: https://github.com/LadybirdBrowser/ladybird/commit/55aad12fe35 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1235 Reviewed-by: https://github.com/AtkinsSJ
1 changed files with 10 additions and 2 deletions
|
@ -152,8 +152,16 @@ with `Meta/ladybird.sh test` or run just the LibWeb tests with `Meta/ladybird.sh
|
||||||
way is to invoke the headless browser test runner directly. See the invocation in `Ladybird/CMakeLists.txt` for the
|
way is to invoke the headless browser test runner directly. See the invocation in `Ladybird/CMakeLists.txt` for the
|
||||||
expected command line arguments.
|
expected command line arguments.
|
||||||
|
|
||||||
The script `add_libweb_test.py` can be used to create a new test file. It will create a new test file with the correct
|
Running `Tests/LibWeb/add_libweb_test.py your-new-test-name` will create a new test HTML file in
|
||||||
boilerplate code for a Text test. Future versions of the script will support Layout and Ref tests.
|
`Tests/LibWeb/Text/input/your-new-test-name.html` with the correct boilerplate code for a Text test — along with
|
||||||
|
a corresponding expectations file in `Tests/LibWeb/Text/expected/your-new-test-name.txt`.
|
||||||
|
|
||||||
|
After you update/replace the generated boilerplate in your `your-new-test-name.html` test file with your actual test,
|
||||||
|
running `./Tests/LibWeb/rebaseline-libweb-test file:///opt/ladybird/Tests/LibWeb/Text/input/foobar.html` will
|
||||||
|
regenerate the corresponding expectations file — to match the actual output from your updated test (where
|
||||||
|
`/opt/ladybird` should be replaced with the absolute path your ladybird clone in your local environment).
|
||||||
|
|
||||||
|
Future versions of the `add_libweb_test.py` script will support Layout and Ref tests.
|
||||||
|
|
||||||
### Text tests
|
### Text tests
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue