mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-31 14:48:17 +00:00
Tests: Import WPT tests from /css/css-sizing/parsing
This commit is contained in:
parent
037c034468
commit
ce6a7ba050
Notes:
github-actions[bot]
2024-10-27 20:03:52 +00:00
Author: https://github.com/awesomekling
Commit: ce6a7ba050
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2007
40 changed files with 1256 additions and 0 deletions
|
@ -0,0 +1,12 @@
|
|||
Summary
|
||||
|
||||
Harness status: OK
|
||||
|
||||
Rerun
|
||||
|
||||
Found 2 tests
|
||||
|
||||
2 Pass
|
||||
Details
|
||||
Result Test Name MessagePass Property box-sizing value 'content-box'
|
||||
Pass Property box-sizing value 'border-box'
|
|
@ -0,0 +1,18 @@
|
|||
Summary
|
||||
|
||||
Harness status: OK
|
||||
|
||||
Rerun
|
||||
|
||||
Found 7 tests
|
||||
|
||||
6 Pass
|
||||
1 Fail
|
||||
Details
|
||||
Result Test Name MessagePass e.style['box-sizing'] = "margin-box" should not set the property value
|
||||
Pass e.style['box-sizing'] = "padding-box" should not set the property value
|
||||
Pass e.style['box-sizing'] = "fill-box" should not set the property value
|
||||
Pass e.style['box-sizing'] = "stroke-box" should not set the property value
|
||||
Pass e.style['box-sizing'] = "view-box" should not set the property value
|
||||
Pass e.style['box-sizing'] = "content-box border-box" should not set the property value
|
||||
Fail e.style['box-sizing'] = "content-box, border-box" should not set the property value assert_equals: expected "" but got "content-box"
|
|
@ -0,0 +1,12 @@
|
|||
Summary
|
||||
|
||||
Harness status: OK
|
||||
|
||||
Rerun
|
||||
|
||||
Found 2 tests
|
||||
|
||||
2 Pass
|
||||
Details
|
||||
Result Test Name MessagePass e.style['box-sizing'] = "content-box" should set the property value
|
||||
Pass e.style['box-sizing'] = "border-box" should set the property value
|
|
@ -0,0 +1,14 @@
|
|||
Summary
|
||||
|
||||
Harness status: OK
|
||||
|
||||
Rerun
|
||||
|
||||
Found 4 tests
|
||||
|
||||
4 Pass
|
||||
Details
|
||||
Result Test Name MessagePass e.style['height'] = "none" should not set the property value
|
||||
Pass e.style['height'] = "min-content max-content" should not set the property value
|
||||
Pass e.style['height'] = "-10%" should not set the property value
|
||||
Pass e.style['height'] = "-0.5em" should not set the property value
|
|
@ -0,0 +1,21 @@
|
|||
Summary
|
||||
|
||||
Harness status: OK
|
||||
|
||||
Rerun
|
||||
|
||||
Found 10 tests
|
||||
|
||||
6 Pass
|
||||
4 Fail
|
||||
Details
|
||||
Result Test Name MessagePass e.style['height'] = "auto" should set the property value
|
||||
Pass e.style['height'] = "min-content" should set the property value
|
||||
Pass e.style['height'] = "max-content" should set the property value
|
||||
Pass e.style['height'] = "0" should set the property value
|
||||
Pass e.style['height'] = "10%" should set the property value
|
||||
Pass e.style['height'] = "0.5em" should set the property value
|
||||
Fail e.style['height'] = "calc(10% - 0.5em)" should set the property value assert_equals: serialization should be canonical expected "calc(10% - 0.5em)" but got "calc(10% + (0 - 0.5em))"
|
||||
Fail e.style['height'] = "fit-content(10%)" should set the property value assert_not_equals: property should be set got disallowed value ""
|
||||
Fail e.style['height'] = "fit-content(0.5em)" should set the property value assert_not_equals: property should be set got disallowed value ""
|
||||
Fail e.style['height'] = "fit-content(calc(10% - 0.5em))" should set the property value assert_not_equals: property should be set got disallowed value ""
|
|
@ -0,0 +1,23 @@
|
|||
Summary
|
||||
|
||||
Harness status: OK
|
||||
|
||||
Rerun
|
||||
|
||||
Found 12 tests
|
||||
|
||||
4 Pass
|
||||
8 Fail
|
||||
Details
|
||||
Result Test Name MessagePass Property max-height value 'none'
|
||||
Fail Property max-height value 'min-content' assert_true: 'min-content' is a supported value for max-height. expected true got false
|
||||
Fail Property max-height value 'max-content' assert_true: 'max-content' is a supported value for max-height. expected true got false
|
||||
Pass Property max-height value '10px'
|
||||
Pass Property max-height value '20%'
|
||||
Pass Property max-height value 'calc(10% + 40px)'
|
||||
Fail Property max-height value 'calc(10px - 0.5em)' assert_equals: expected "0px" but got "calc(10px + (0 - 0.5em))"
|
||||
Fail Property max-height value 'calc(10px + 0.5em)' assert_equals: expected "30px" but got "calc(10px + 0.5em)"
|
||||
Fail Property max-height value 'fit-content(10px)' assert_true: 'fit-content(10px)' is a supported value for max-height. expected true got false
|
||||
Fail Property max-height value 'fit-content(20%)' assert_true: 'fit-content(20%)' is a supported value for max-height. expected true got false
|
||||
Fail Property max-height value 'fit-content(calc(10% + 40px))' assert_true: 'fit-content(calc(10% + 40px))' is a supported value for max-height. expected true got false
|
||||
Fail Property max-height value 'fit-content(calc(10px + 0.5em))' assert_true: 'fit-content(calc(10px + 0.5em))' is a supported value for max-height. expected true got false
|
|
@ -0,0 +1,14 @@
|
|||
Summary
|
||||
|
||||
Harness status: OK
|
||||
|
||||
Rerun
|
||||
|
||||
Found 4 tests
|
||||
|
||||
4 Pass
|
||||
Details
|
||||
Result Test Name MessagePass e.style['max-height'] = "auto" should not set the property value
|
||||
Pass e.style['max-height'] = "min-content max-content" should not set the property value
|
||||
Pass e.style['max-height'] = "-10%" should not set the property value
|
||||
Pass e.style['max-height'] = "-0.5em" should not set the property value
|
|
@ -0,0 +1,21 @@
|
|||
Summary
|
||||
|
||||
Harness status: OK
|
||||
|
||||
Rerun
|
||||
|
||||
Found 10 tests
|
||||
|
||||
4 Pass
|
||||
6 Fail
|
||||
Details
|
||||
Result Test Name MessagePass e.style['max-height'] = "none" should set the property value
|
||||
Fail e.style['max-height'] = "min-content" should set the property value assert_not_equals: property should be set got disallowed value ""
|
||||
Fail e.style['max-height'] = "max-content" should set the property value assert_not_equals: property should be set got disallowed value ""
|
||||
Pass e.style['max-height'] = "0" should set the property value
|
||||
Pass e.style['max-height'] = "10%" should set the property value
|
||||
Pass e.style['max-height'] = "0.5em" should set the property value
|
||||
Fail e.style['max-height'] = "calc(10% - 0.5em)" should set the property value assert_equals: serialization should be canonical expected "calc(10% - 0.5em)" but got "calc(10% + (0 - 0.5em))"
|
||||
Fail e.style['max-height'] = "fit-content(10%)" should set the property value assert_not_equals: property should be set got disallowed value ""
|
||||
Fail e.style['max-height'] = "fit-content(0.5em)" should set the property value assert_not_equals: property should be set got disallowed value ""
|
||||
Fail e.style['max-height'] = "fit-content(calc(10% - 0.5em))" should set the property value assert_not_equals: property should be set got disallowed value ""
|
|
@ -0,0 +1,23 @@
|
|||
Summary
|
||||
|
||||
Harness status: OK
|
||||
|
||||
Rerun
|
||||
|
||||
Found 12 tests
|
||||
|
||||
6 Pass
|
||||
6 Fail
|
||||
Details
|
||||
Result Test Name MessagePass Property max-width value 'none'
|
||||
Pass Property max-width value 'min-content'
|
||||
Pass Property max-width value 'max-content'
|
||||
Pass Property max-width value '10px'
|
||||
Pass Property max-width value '20%'
|
||||
Pass Property max-width value 'calc(10% + 40px)'
|
||||
Fail Property max-width value 'calc(10px - 0.5em)' assert_equals: expected "0px" but got "calc(10px + (0 - 0.5em))"
|
||||
Fail Property max-width value 'calc(10px + 0.5em)' assert_equals: expected "30px" but got "calc(10px + 0.5em)"
|
||||
Fail Property max-width value 'fit-content(10px)' assert_true: 'fit-content(10px)' is a supported value for max-width. expected true got false
|
||||
Fail Property max-width value 'fit-content(20%)' assert_true: 'fit-content(20%)' is a supported value for max-width. expected true got false
|
||||
Fail Property max-width value 'fit-content(calc(10% + 40px))' assert_true: 'fit-content(calc(10% + 40px))' is a supported value for max-width. expected true got false
|
||||
Fail Property max-width value 'fit-content(calc(10px + 0.5em))' assert_true: 'fit-content(calc(10px + 0.5em))' is a supported value for max-width. expected true got false
|
|
@ -0,0 +1,14 @@
|
|||
Summary
|
||||
|
||||
Harness status: OK
|
||||
|
||||
Rerun
|
||||
|
||||
Found 4 tests
|
||||
|
||||
4 Pass
|
||||
Details
|
||||
Result Test Name MessagePass e.style['max-width'] = "auto" should not set the property value
|
||||
Pass e.style['max-width'] = "min-content max-content" should not set the property value
|
||||
Pass e.style['max-width'] = "-10%" should not set the property value
|
||||
Pass e.style['max-width'] = "-0.5em" should not set the property value
|
|
@ -0,0 +1,21 @@
|
|||
Summary
|
||||
|
||||
Harness status: OK
|
||||
|
||||
Rerun
|
||||
|
||||
Found 10 tests
|
||||
|
||||
6 Pass
|
||||
4 Fail
|
||||
Details
|
||||
Result Test Name MessagePass e.style['max-width'] = "none" should set the property value
|
||||
Pass e.style['max-width'] = "min-content" should set the property value
|
||||
Pass e.style['max-width'] = "max-content" should set the property value
|
||||
Pass e.style['max-width'] = "0" should set the property value
|
||||
Pass e.style['max-width'] = "10%" should set the property value
|
||||
Pass e.style['max-width'] = "0.5em" should set the property value
|
||||
Fail e.style['max-width'] = "calc(10% - 0.5em)" should set the property value assert_equals: serialization should be canonical expected "calc(10% - 0.5em)" but got "calc(10% + (0 - 0.5em))"
|
||||
Fail e.style['max-width'] = "fit-content(10%)" should set the property value assert_not_equals: property should be set got disallowed value ""
|
||||
Fail e.style['max-width'] = "fit-content(0.5em)" should set the property value assert_not_equals: property should be set got disallowed value ""
|
||||
Fail e.style['max-width'] = "fit-content(calc(10% - 0.5em))" should set the property value assert_not_equals: property should be set got disallowed value ""
|
|
@ -0,0 +1,22 @@
|
|||
Summary
|
||||
|
||||
Harness status: OK
|
||||
|
||||
Rerun
|
||||
|
||||
Found 11 tests
|
||||
|
||||
3 Pass
|
||||
8 Fail
|
||||
Details
|
||||
Result Test Name MessageFail Property min-height value 'min-content' assert_true: 'min-content' is a supported value for min-height. expected true got false
|
||||
Fail Property min-height value 'max-content' assert_true: 'max-content' is a supported value for min-height. expected true got false
|
||||
Pass Property min-height value '10px'
|
||||
Pass Property min-height value '20%'
|
||||
Pass Property min-height value 'calc(10% + 40px)'
|
||||
Fail Property min-height value 'calc(10px - 0.5em)' assert_equals: expected "0px" but got "calc(10px + (0 - 0.5em))"
|
||||
Fail Property min-height value 'calc(10px + 0.5em)' assert_equals: expected "30px" but got "calc(10px + 0.5em)"
|
||||
Fail Property min-height value 'fit-content(10px)' assert_true: 'fit-content(10px)' is a supported value for min-height. expected true got false
|
||||
Fail Property min-height value 'fit-content(20%)' assert_true: 'fit-content(20%)' is a supported value for min-height. expected true got false
|
||||
Fail Property min-height value 'fit-content(calc(10% + 40px))' assert_true: 'fit-content(calc(10% + 40px))' is a supported value for min-height. expected true got false
|
||||
Fail Property min-height value 'fit-content(calc(10px + 0.5em))' assert_true: 'fit-content(calc(10px + 0.5em))' is a supported value for min-height. expected true got false
|
|
@ -0,0 +1,22 @@
|
|||
Summary
|
||||
|
||||
Harness status: OK
|
||||
|
||||
Rerun
|
||||
|
||||
Found 11 tests
|
||||
|
||||
9 Pass
|
||||
2 Fail
|
||||
Details
|
||||
Result Test Name MessageFail e.style['min-height'] = "none" should not set the property value assert_equals: expected "" but got "none"
|
||||
Pass e.style['min-height'] = "complex" should not set the property value
|
||||
Pass e.style['min-height'] = "-10%" should not set the property value
|
||||
Pass e.style['min-height'] = "-0.5em" should not set the property value
|
||||
Pass e.style['min-height'] = "60" should not set the property value
|
||||
Pass e.style['min-height'] = "10px 20%" should not set the property value
|
||||
Pass e.style['min-height'] = "max-content 10px" should not set the property value
|
||||
Pass e.style['min-height'] = "min-content max-content" should not set the property value
|
||||
Pass e.style['min-height'] = "available" should not set the property value
|
||||
Fail e.style['min-height'] = "10px border-box" should not set the property value assert_equals: expected "" but got "10px"
|
||||
Pass e.style['min-height'] = "content-box 20%" should not set the property value
|
|
@ -0,0 +1,21 @@
|
|||
Summary
|
||||
|
||||
Harness status: OK
|
||||
|
||||
Rerun
|
||||
|
||||
Found 10 tests
|
||||
|
||||
4 Pass
|
||||
6 Fail
|
||||
Details
|
||||
Result Test Name MessagePass e.style['min-height'] = "auto" should set the property value
|
||||
Fail e.style['min-height'] = "min-content" should set the property value assert_not_equals: property should be set got disallowed value ""
|
||||
Fail e.style['min-height'] = "max-content" should set the property value assert_not_equals: property should be set got disallowed value ""
|
||||
Pass e.style['min-height'] = "0" should set the property value
|
||||
Pass e.style['min-height'] = "10%" should set the property value
|
||||
Pass e.style['min-height'] = "0.5em" should set the property value
|
||||
Fail e.style['min-height'] = "calc(10% - 0.5em)" should set the property value assert_equals: serialization should be canonical expected "calc(10% - 0.5em)" but got "calc(10% + (0 - 0.5em))"
|
||||
Fail e.style['min-height'] = "fit-content(10%)" should set the property value assert_not_equals: property should be set got disallowed value ""
|
||||
Fail e.style['min-height'] = "fit-content(0.5em)" should set the property value assert_not_equals: property should be set got disallowed value ""
|
||||
Fail e.style['min-height'] = "fit-content(calc(10% - 0.5em))" should set the property value assert_not_equals: property should be set got disallowed value ""
|
|
@ -0,0 +1,22 @@
|
|||
Summary
|
||||
|
||||
Harness status: OK
|
||||
|
||||
Rerun
|
||||
|
||||
Found 11 tests
|
||||
|
||||
5 Pass
|
||||
6 Fail
|
||||
Details
|
||||
Result Test Name MessagePass Property min-width value 'min-content'
|
||||
Pass Property min-width value 'max-content'
|
||||
Pass Property min-width value '10px'
|
||||
Pass Property min-width value '20%'
|
||||
Pass Property min-width value 'calc(10% + 40px)'
|
||||
Fail Property min-width value 'calc(10px - 0.5em)' assert_equals: expected "0px" but got "calc(10px + (0 - 0.5em))"
|
||||
Fail Property min-width value 'calc(10px + 0.5em)' assert_equals: expected "30px" but got "calc(10px + 0.5em)"
|
||||
Fail Property min-width value 'fit-content(10px)' assert_true: 'fit-content(10px)' is a supported value for min-width. expected true got false
|
||||
Fail Property min-width value 'fit-content(20%)' assert_true: 'fit-content(20%)' is a supported value for min-width. expected true got false
|
||||
Fail Property min-width value 'fit-content(calc(10% + 40px))' assert_true: 'fit-content(calc(10% + 40px))' is a supported value for min-width. expected true got false
|
||||
Fail Property min-width value 'fit-content(calc(10px + 0.5em))' assert_true: 'fit-content(calc(10px + 0.5em))' is a supported value for min-width. expected true got false
|
|
@ -0,0 +1,22 @@
|
|||
Summary
|
||||
|
||||
Harness status: OK
|
||||
|
||||
Rerun
|
||||
|
||||
Found 11 tests
|
||||
|
||||
9 Pass
|
||||
2 Fail
|
||||
Details
|
||||
Result Test Name MessageFail e.style['min-width'] = "none" should not set the property value assert_equals: expected "" but got "none"
|
||||
Pass e.style['min-width'] = "complex" should not set the property value
|
||||
Pass e.style['min-width'] = "-10%" should not set the property value
|
||||
Pass e.style['min-width'] = "-0.5em" should not set the property value
|
||||
Pass e.style['min-width'] = "60" should not set the property value
|
||||
Pass e.style['min-width'] = "10px 20%" should not set the property value
|
||||
Pass e.style['min-width'] = "max-content 10px" should not set the property value
|
||||
Pass e.style['min-width'] = "min-content max-content" should not set the property value
|
||||
Pass e.style['min-width'] = "available" should not set the property value
|
||||
Fail e.style['min-width'] = "10px border-box" should not set the property value assert_equals: expected "" but got "10px"
|
||||
Pass e.style['min-width'] = "content-box 20%" should not set the property value
|
|
@ -0,0 +1,21 @@
|
|||
Summary
|
||||
|
||||
Harness status: OK
|
||||
|
||||
Rerun
|
||||
|
||||
Found 10 tests
|
||||
|
||||
6 Pass
|
||||
4 Fail
|
||||
Details
|
||||
Result Test Name MessagePass e.style['min-width'] = "auto" should set the property value
|
||||
Pass e.style['min-width'] = "min-content" should set the property value
|
||||
Pass e.style['min-width'] = "max-content" should set the property value
|
||||
Pass e.style['min-width'] = "0" should set the property value
|
||||
Pass e.style['min-width'] = "10%" should set the property value
|
||||
Pass e.style['min-width'] = "0.5em" should set the property value
|
||||
Fail e.style['min-width'] = "calc(10% - 0.5em)" should set the property value assert_equals: serialization should be canonical expected "calc(10% - 0.5em)" but got "calc(10% + (0 - 0.5em))"
|
||||
Fail e.style['min-width'] = "fit-content(10%)" should set the property value assert_not_equals: property should be set got disallowed value ""
|
||||
Fail e.style['min-width'] = "fit-content(0.5em)" should set the property value assert_not_equals: property should be set got disallowed value ""
|
||||
Fail e.style['min-width'] = "fit-content(calc(10% - 0.5em))" should set the property value assert_not_equals: property should be set got disallowed value ""
|
|
@ -0,0 +1,14 @@
|
|||
Summary
|
||||
|
||||
Harness status: OK
|
||||
|
||||
Rerun
|
||||
|
||||
Found 4 tests
|
||||
|
||||
4 Pass
|
||||
Details
|
||||
Result Test Name MessagePass e.style['width'] = "none" should not set the property value
|
||||
Pass e.style['width'] = "min-content max-content" should not set the property value
|
||||
Pass e.style['width'] = "-10%" should not set the property value
|
||||
Pass e.style['width'] = "-0.5em" should not set the property value
|
|
@ -0,0 +1,21 @@
|
|||
Summary
|
||||
|
||||
Harness status: OK
|
||||
|
||||
Rerun
|
||||
|
||||
Found 10 tests
|
||||
|
||||
6 Pass
|
||||
4 Fail
|
||||
Details
|
||||
Result Test Name MessagePass e.style['width'] = "auto" should set the property value
|
||||
Pass e.style['width'] = "min-content" should set the property value
|
||||
Pass e.style['width'] = "max-content" should set the property value
|
||||
Pass e.style['width'] = "0" should set the property value
|
||||
Pass e.style['width'] = "10%" should set the property value
|
||||
Pass e.style['width'] = "0.5em" should set the property value
|
||||
Fail e.style['width'] = "calc(10% - 0.5em)" should set the property value assert_equals: serialization should be canonical expected "calc(10% - 0.5em)" but got "calc(10% + (0 - 0.5em))"
|
||||
Fail e.style['width'] = "fit-content(10%)" should set the property value assert_not_equals: property should be set got disallowed value ""
|
||||
Fail e.style['width'] = "fit-content(0.5em)" should set the property value assert_not_equals: property should be set got disallowed value ""
|
||||
Fail e.style['width'] = "fit-content(calc(10% - 0.5em))" should set the property value assert_not_equals: property should be set got disallowed value ""
|
Loading…
Add table
Add a link
Reference in a new issue