-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
https://bugs.webkit.org/show_bug.cgi?id=268954 Reviewed by Aditya Keerthi. Imports CSS parsing and HTML rendering tests for the field-sizing CSS property Upstream commit: web-platform-tests/wpt@3c00d74 * LayoutTests/TestExpectations: * LayoutTests/imported/w3c/web-platform-tests/css/css-ui/parsing/field-sizing-computed-expected.txt: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-ui/parsing/field-sizing-computed.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-ui/parsing/field-sizing-invalid-expected.txt: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-ui/parsing/field-sizing-invalid.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-ui/parsing/field-sizing-valid-expected.txt: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-ui/parsing/field-sizing-valid.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-ui/parsing/w3c-import.log: * LayoutTests/imported/w3c/web-platform-tests/html/rendering/widgets/field-sizing-input-number-expected.txt: Renamed from LayoutTests/imported/w3c/web-platform-tests/html/rendering/widgets/field-sizing-input-number.tentative-expected.txt. * LayoutTests/imported/w3c/web-platform-tests/html/rendering/widgets/field-sizing-input-number.html: Renamed from LayoutTests/imported/w3c/web-platform-tests/html/rendering/widgets/field-sizing-input-number.tentative.html. * LayoutTests/imported/w3c/web-platform-tests/html/rendering/widgets/field-sizing-input-text-expected.txt: Renamed from LayoutTests/imported/w3c/web-platform-tests/html/rendering/widgets/field-sizing-input-text.tentative-expected.txt. * LayoutTests/imported/w3c/web-platform-tests/html/rendering/widgets/field-sizing-input-text.html: Renamed from LayoutTests/imported/w3c/web-platform-tests/html/rendering/widgets/field-sizing-input-text.tentative.html. * LayoutTests/imported/w3c/web-platform-tests/html/rendering/widgets/field-sizing-select-expected.txt: Renamed from LayoutTests/imported/w3c/web-platform-tests/html/rendering/widgets/field-sizing-select.tentative-expected.txt. * LayoutTests/imported/w3c/web-platform-tests/html/rendering/widgets/field-sizing-select.html: Renamed from LayoutTests/imported/w3c/web-platform-tests/html/rendering/widgets/field-sizing-select.tentative.html. * LayoutTests/imported/w3c/web-platform-tests/html/rendering/widgets/field-sizing-textarea-expected.txt: Renamed from LayoutTests/imported/w3c/web-platform-tests/html/rendering/widgets/field-sizing-textarea.tentative-expected.txt. * LayoutTests/imported/w3c/web-platform-tests/html/rendering/widgets/field-sizing-textarea.html: Renamed from LayoutTests/imported/w3c/web-platform-tests/html/rendering/widgets/field-sizing-textarea.tentative.html. * LayoutTests/imported/w3c/web-platform-tests/html/rendering/widgets/w3c-import.log: * LayoutTests/platform/glib/TestExpectations: Canonical link: https://commits.webkit.org/274299@main
- Loading branch information
1 parent
829ee3d
commit 24a12aa
Showing
18 changed files
with
75 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
...sts/imported/w3c/web-platform-tests/css/css-ui/parsing/field-sizing-computed-expected.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
|
||
FAIL Property field-sizing value 'fixed' assert_true: field-sizing doesn't seem to be supported in the computed style expected true got false | ||
FAIL Property field-sizing value 'content' assert_true: field-sizing doesn't seem to be supported in the computed style expected true got false | ||
|
14 changes: 14 additions & 0 deletions
14
LayoutTests/imported/w3c/web-platform-tests/css/css-ui/parsing/field-sizing-computed.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<!DOCTYPE html> | ||
<title>CSS UI: getComputedStyle().fieldSizing</title> | ||
<link rel="help" href="https://drafts.csswg.org/css-ui-4/#field-sizing"> | ||
<link rel="author" title="Kent Tamura" href="mailto:tkent@chromium.org"> | ||
<script src="/resources/testharness.js"></script> | ||
<script src="/resources/testharnessreport.js"></script> | ||
<script src="/css/support/computed-testcommon.js"></script> | ||
<body> | ||
<div id="target"></div> | ||
<script> | ||
test_computed_value('field-sizing', 'fixed'); | ||
test_computed_value('field-sizing', 'content'); | ||
</script> | ||
</body> |
9 changes: 9 additions & 0 deletions
9
...ests/imported/w3c/web-platform-tests/css/css-ui/parsing/field-sizing-invalid-expected.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
|
||
PASS e.style['field-sizing'] = "none" should not set the property value | ||
PASS e.style['field-sizing'] = "legacy" should not set the property value | ||
PASS e.style['field-sizing'] = "auto" should not set the property value | ||
PASS e.style['field-sizing'] = "normal" should not set the property value | ||
PASS e.style['field-sizing'] = "normal auto" should not set the property value | ||
PASS e.style['field-sizing'] = "100%" should not set the property value | ||
PASS e.style['field-sizing'] = "10px" should not set the property value | ||
|
18 changes: 18 additions & 0 deletions
18
LayoutTests/imported/w3c/web-platform-tests/css/css-ui/parsing/field-sizing-invalid.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<!DOCTYPE html> | ||
<title>CSS UI: parsing field-sizing with invalid values</title> | ||
<link rel="help" href="https://drafts.csswg.org/css-ui-4/#field-sizing"> | ||
<link rel="author" title="Kent Tamura" href="mailto:tkent@chromium.org"> | ||
<script src="/resources/testharness.js"></script> | ||
<script src="/resources/testharnessreport.js"></script> | ||
<script src="/css/support/parsing-testcommon.js"></script> | ||
<body> | ||
<script> | ||
test_invalid_value('field-sizing', 'none'); | ||
test_invalid_value('field-sizing', 'legacy'); | ||
test_invalid_value('field-sizing', 'auto'); | ||
test_invalid_value('field-sizing', 'normal'); | ||
test_invalid_value('field-sizing', 'normal auto'); | ||
test_invalid_value('field-sizing', '100%'); | ||
test_invalid_value('field-sizing', '10px'); | ||
</script> | ||
</body> |
4 changes: 4 additions & 0 deletions
4
...tTests/imported/w3c/web-platform-tests/css/css-ui/parsing/field-sizing-valid-expected.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
|
||
FAIL e.style['field-sizing'] = "fixed" should set the property value assert_not_equals: property should be set got disallowed value "" | ||
FAIL e.style['field-sizing'] = "content" should set the property value assert_not_equals: property should be set got disallowed value "" | ||
|
13 changes: 13 additions & 0 deletions
13
LayoutTests/imported/w3c/web-platform-tests/css/css-ui/parsing/field-sizing-valid.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<!DOCTYPE html> | ||
<title>CSS UI: parsing field-sizing with valid values</title> | ||
<link rel="help" href="https://drafts.csswg.org/css-ui-4/#field-sizing"> | ||
<link rel="author" title="Kent Tamura" href="mailto:tkent@chromium.org"> | ||
<script src="/resources/testharness.js"></script> | ||
<script src="/resources/testharnessreport.js"></script> | ||
<script src="/css/support/parsing-testcommon.js"></script> | ||
<body> | ||
<script> | ||
test_valid_value('field-sizing', 'fixed'); | ||
test_valid_value('field-sizing', 'content'); | ||
</script> | ||
</body> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters