mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-27 02:05:07 +02:00
Tests: Add a CSS Tokenizer test suite
Based on test-js-ast and test-js-bytecode, test-css-tokenizer finds CSS files in CSSTokenizer/input, tokenizes them, and then dumps the output, to compare against files in the expected/ directory. Our Tokenizer is in a good state currently, but this will let us track regressions, and also allow us to rewrite this in Rust and ensure that the output matches. To support test-css-tokenizer.py, we also have css-tokenizer.cpp which exposes the Tokenizer, which is usually only used internally. We'll want to expand this test suite over time, but this initial set of tests covers each type of Token.
This commit is contained in:
Notes:
github-actions[bot]
2026-04-15 09:24:08 +00:00
Author: https://github.com/AtkinsSJ Commit: https://github.com/LadybirdBrowser/ladybird/commit/59a860249b9 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/8857
1
Tests/LibWeb/CSSTokenizer/input/basic-rules.css
Normal file
1
Tests/LibWeb/CSSTokenizer/input/basic-rules.css
Normal file
@@ -0,0 +1 @@
|
||||
body { color: red; }
|
||||
Reference in New Issue
Block a user