mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-26 18:09:45 +00:00
Tests: Import some custom-property tests
To make it easier to track progress and regressions in subsequent changes.
This commit is contained in:
parent
a6ff088984
commit
59f2c8df7a
Notes:
github-actions[bot]
2025-07-09 15:46:45 +00:00
Author: https://github.com/AtkinsSJ
Commit: 59f2c8df7a
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5226
Reviewed-by: https://github.com/tcl3 ✅
6 changed files with 844 additions and 0 deletions
|
|
@ -0,0 +1,14 @@
|
|||
Harness status: OK
|
||||
|
||||
Found 8 tests
|
||||
|
||||
3 Pass
|
||||
5 Fail
|
||||
Pass e.style['width'] = "var(--x)" should set the property value
|
||||
Pass e.style['width'] = "var(--x,)" should set the property value
|
||||
Pass e.style['width'] = "var(--x, )" should set the property value
|
||||
Fail e.style['width'] = "var(--x ())" should not set the property value
|
||||
Fail e.style['width'] = "var(--x () )" should not set the property value
|
||||
Fail e.style['width'] = "var(--x() )" should not set the property value
|
||||
Fail e.style['width'] = "var(--x (),)" should not set the property value
|
||||
Fail e.style['width'] = "var(--x(),)" should not set the property value
|
||||
|
|
@ -0,0 +1,36 @@
|
|||
Harness status: OK
|
||||
|
||||
Found 30 tests
|
||||
|
||||
2 Pass
|
||||
28 Fail
|
||||
Pass `initial` as a value for an unregistered custom property
|
||||
Fail `inherit` as a value for an unregistered custom property
|
||||
Fail `unset` as a value for an unregistered custom property
|
||||
Fail `revert` as a value for an unregistered custom property
|
||||
Fail `revert-layer` as a value for an unregistered custom property
|
||||
Fail `initial` as a value for a non-inheriting registered custom property
|
||||
Fail `initial` as a value for an inheriting registered custom property
|
||||
Fail `inherit` as a value for a non-inheriting registered custom property
|
||||
Fail `inherit` as a value for an inheriting registered custom property
|
||||
Fail `unset` as a value for a non-inheriting registered custom property
|
||||
Fail `unset` as a value for an inheriting registered custom property
|
||||
Fail `revert` as a value for a non-inheriting registered custom property
|
||||
Fail `revert` as a value for an inheriting registered custom property
|
||||
Fail `revert-layer` as a value for a non-inheriting registered custom property
|
||||
Fail `revert-layer` as a value for an inheriting registered custom property
|
||||
Pass `initial` as a `var()` fallback for an unregistered custom property
|
||||
Fail `inherit` as a `var()` fallback for an unregistered custom property
|
||||
Fail `unset` as a `var()` fallback for an unregistered custom property
|
||||
Fail `revert` as a `var()` fallback for an unregistered custom property
|
||||
Fail `revert-layer` as a `var()` fallback for an unregistered custom property
|
||||
Fail `initial` as a `var()` fallback for a non-inheriting registered custom property
|
||||
Fail `initial` as a `var()` fallback for an inheriting registered custom property
|
||||
Fail `inherit` as a `var()` fallback for a non-inheriting registered custom property
|
||||
Fail `inherit` as a `var()` fallback for an inheriting registered custom property
|
||||
Fail `unset` as a `var()` fallback for a non-inheriting registered custom property
|
||||
Fail `unset` as a `var()` fallback for an inheriting registered custom property
|
||||
Fail `revert` as a `var()` fallback for a non-inheriting registered custom property
|
||||
Fail `revert` as a `var()` fallback for an inheriting registered custom property
|
||||
Fail `revert-layer` as a `var()` fallback for a non-inheriting registered custom property
|
||||
Fail `revert-layer` as a `var()` fallback for an inheriting registered custom property
|
||||
|
|
@ -0,0 +1,17 @@
|
|||
Harness status: OK
|
||||
|
||||
Found 11 tests
|
||||
|
||||
1 Pass
|
||||
10 Fail
|
||||
Fail Self-cycle
|
||||
Fail Simple a/b cycle
|
||||
Fail Three-var cycle
|
||||
Fail Cycle that starts in the middle of a chain
|
||||
Fail Cycle with extra edge
|
||||
Fail Cycle with extra edge (2)
|
||||
Fail Cycle with extra edge (3)
|
||||
Fail Cycle with secondary cycle
|
||||
Fail Cycle with overlapping secondary cycle
|
||||
Fail Cycle with deeper secondary cycle
|
||||
Pass Cycle in unused fallback
|
||||
Loading…
Add table
Add a link
Reference in a new issue