Summary

Harness status: OK

Found 11 tests

Details

ResultTest NameMessage
Passuppercase property
Asserts run
Pass
assert_equals("", "")
    at Test.<anonymous> ( /css/cssom/cssstyledeclaration-csstext.html:24:13)
Passuppercase value
Asserts run
Pass
assert_equals("color: red;", "color: red;")
    at Test.<anonymous> ( /css/cssom/cssstyledeclaration-csstext.html:33:13)
Fail
assert_equals("color: red;", "color: RED;")
    at Test.<anonymous> ( /css/cssom/cssstyledeclaration-csstext.html:33:13)
Passoverwriting with invalid value
Asserts run
Pass
assert_equals("color: red;", "color: red;")
    at Test.<anonymous> ( /css/cssom/cssstyledeclaration-csstext.html:44:13)
Passuse rgb
Asserts run
Pass
assert_equals("color: rgb(255, 0, 0);", "color: rgb(255, 0, 0);")
    at Test.<anonymous> ( /css/cssom/cssstyledeclaration-csstext.html:52:13)
PasscssText order
Asserts run
Pass
assert_equals("color: red; font-size: 10pt; font-weight: bold;", "color: red; font-size: 10pt; font-weight: bold;")
    at Test.<anonymous> ( /css/cssom/cssstyledeclaration-csstext.html:64:13)
Passanother cssText order (non-alphabetical order)
Asserts run
Pass
assert_equals("font-weight: bold; color: red; font-size: 10pt;", "font-weight: bold; color: red; font-size: 10pt;")
    at Test.<anonymous> ( /css/cssom/cssstyledeclaration-csstext.html:76:13)
Passwhitespaces in value
Asserts run
Pass
assert_equals("color: red; font-size: 10pt;", "color: red; font-size: 10pt;")
    at Test.<anonymous> ( /css/cssom/cssstyledeclaration-csstext.html:86:13)
Passinvalid property does not appear
Asserts run
Pass
assert_equals("color: red; font-size: 10pt;", "color: red; font-size: 10pt;")
    at Test.<anonymous> ( /css/cssom/cssstyledeclaration-csstext.html:96:13)
FailShorthands aren't serialized if there are other properties with different logical groups in betweenassert_equals: expected "margin-top: 10px; margin-right: 10px; margin-left: 10px; margin-inline-start: 10px; margin-block: 10px; margin-inline-end: 10px; margin-bottom: 10px;" but got "margin: 10px; margin-inline: 10px; margin-block: 10px;"
    at Test.<anonymous> (https://www1.wpt.live/css/cssom/cssstyledeclaration-csstext.html:103:13)
    at Test.step (https://www1.wpt.live/resources/testharness.js:2684:25)
    at test (https://www1.wpt.live/resources/testharness.js:633:30)
    at https://www1.wpt.live/css/cssom/cssstyledeclaration-csstext.html:100:9
Asserts run
Fail
assert_equals("margin: 10px; margin-inline: 10px; margin-block: 10px;", "margin-top: 10px; margin-right: 10px; margin-left: 10px; margin-inline-start: 10px; margin-block: 10px; margin-inline-end: 10px; margin-bottom: 10px;")
    at Test.<anonymous> ( /css/cssom/cssstyledeclaration-csstext.html:103:13)
PassShorthands _are_ serialized if there are no other properties with different logical groups in between
Asserts run
Pass
assert_equals("margin: 10px; margin-inline: 10px; margin-block: 10px;", "margin: 10px; margin-inline: 10px; margin-block: 10px;")
    at Test.<anonymous> ( /css/cssom/cssstyledeclaration-csstext.html:109:13)
PasscssText on computed style declaration returns the empty string
Asserts run
Pass
assert_not_equals(383, 0, "Should have a style")
    at Test.<anonymous> ( /css/cssom/cssstyledeclaration-csstext.html:121:13)
Pass
assert_equals("", "", "cssText is empty")
    at Test.<anonymous> ( /css/cssom/cssstyledeclaration-csstext.html:122:13)