Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Implement support for StylePropertyMap.append()
https://bugs.webkit.org/show_bug.cgi?id=248400 Reviewed by Alex Christensen. Implement support for StylePropertyMap.append(): - https://drafts.css-houdini.org/css-typed-om/#dom-stylepropertymap-append * LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/declared/append.tentative-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/inline/append.tentative-expected.txt: * Source/WebCore/css/typedom/StylePropertyMap.cpp: (WebCore::StylePropertyMap::append): Canonical link: https://commits.webkit.org/257123@main
- Loading branch information
Showing
6 changed files
with
104 additions
and
189 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
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 |
---|---|---|
@@ -1,32 +1,14 @@ | ||
|
||
FAIL Calling StylePropertyMap.append with an unsupported property name throws TypeError assert_throws_js: function "() => styleMap.append(property, ...values)" threw object "NotSupportedError: append() is not yet supported" ("NotSupportedError") expected instance of function "function TypeError() { | ||
[native code] | ||
}" ("TypeError") | ||
FAIL Calling StylePropertyMap.append with an null property name throws TypeError assert_throws_js: function "() => styleMap.append(property, ...values)" threw object "NotSupportedError: append() is not yet supported" ("NotSupportedError") expected instance of function "function TypeError() { | ||
[native code] | ||
}" ("TypeError") | ||
FAIL Calling StylePropertyMap.append with a property that is not list valued throws TypeError assert_throws_js: function "() => styleMap.append(property, ...values)" threw object "NotSupportedError: append() is not yet supported" ("NotSupportedError") expected instance of function "function TypeError() { | ||
[native code] | ||
}" ("TypeError") | ||
FAIL Calling StylePropertyMap.append with a shorthand property throws TypeError assert_throws_js: function "() => styleMap.append(property, ...values)" threw object "NotSupportedError: append() is not yet supported" ("NotSupportedError") expected instance of function "function TypeError() { | ||
[native code] | ||
}" ("TypeError") | ||
FAIL Calling StylePropertyMap.append with an invalid CSSStyleValue throws TypeError assert_throws_js: function "() => styleMap.append(property, ...values)" threw object "NotSupportedError: append() is not yet supported" ("NotSupportedError") expected instance of function "function TypeError() { | ||
[native code] | ||
}" ("TypeError") | ||
FAIL Calling StylePropertyMap.append with an invalid String value throws TypeError assert_throws_js: function "() => styleMap.append(property, ...values)" threw object "NotSupportedError: append() is not yet supported" ("NotSupportedError") expected instance of function "function TypeError() { | ||
[native code] | ||
}" ("TypeError") | ||
FAIL Calling StylePropertyMap.append with a mix of valid and invalid values throws TypeError assert_throws_js: function "() => styleMap.append(property, ...values)" threw object "NotSupportedError: append() is not yet supported" ("NotSupportedError") expected instance of function "function TypeError() { | ||
[native code] | ||
}" ("TypeError") | ||
FAIL Calling StylePropertyMap.append with a CSSUnparsedValue throws TypeError assert_throws_js: function "() => styleMap.append(property, ...values)" threw object "NotSupportedError: append() is not yet supported" ("NotSupportedError") expected instance of function "function TypeError() { | ||
[native code] | ||
}" ("TypeError") | ||
FAIL Calling StylePropertyMap.append with a var ref throws TypeError assert_throws_js: function "() => styleMap.append(property, ...values)" threw object "NotSupportedError: append() is not yet supported" ("NotSupportedError") expected instance of function "function TypeError() { | ||
[native code] | ||
}" ("TypeError") | ||
FAIL Appending a list-valued property with CSSStyleValue or String updates its values append() is not yet supported | ||
FAIL Appending a list-valued property with list-valued string updates its values append() is not yet supported | ||
FAIL StylePropertyMap.append is case-insensitive append() is not yet supported | ||
PASS Calling StylePropertyMap.append with an unsupported property name throws TypeError | ||
PASS Calling StylePropertyMap.append with an null property name throws TypeError | ||
PASS Calling StylePropertyMap.append with a property that is not list valued throws TypeError | ||
PASS Calling StylePropertyMap.append with a shorthand property throws TypeError | ||
PASS Calling StylePropertyMap.append with an invalid CSSStyleValue throws TypeError | ||
PASS Calling StylePropertyMap.append with an invalid String value throws TypeError | ||
PASS Calling StylePropertyMap.append with a mix of valid and invalid values throws TypeError | ||
PASS Calling StylePropertyMap.append with a CSSUnparsedValue throws TypeError | ||
PASS Calling StylePropertyMap.append with a var ref throws TypeError | ||
PASS Appending a list-valued property with CSSStyleValue or String updates its values | ||
PASS Appending a list-valued property with list-valued string updates its values | ||
PASS StylePropertyMap.append is case-insensitive | ||
|
Oops, something went wrong.