Summary

Harness status: OK

Found 27 tests

Details

ResultTest NameMessage
PassCommits styles
Asserts run
Pass
assert_approx_equals(0.2, 0.2, 0.0001, undefined)
    at assert_numeric_style_equals ( /web-animations/interfaces/Animation/commitStyles.html:19:10)
PassCommits styles for individual transform properties
Asserts run
Pass
assert_equals("200px", "200px")
    at Test.<anonymous> ( /web-animations/interfaces/Animation/commitStyles.html:64:3)
Pass
assert_equals("90deg", "90deg")
    at Test.<anonymous> ( /web-animations/interfaces/Animation/commitStyles.html:65:3)
Pass
assert_approx_equals(3, 3, 0.0001, undefined)
    at assert_numeric_style_equals ( /web-animations/interfaces/Animation/commitStyles.html:19:10)
PassCommits styles for an animation that has been removed
Asserts run
Pass
assert_approx_equals(0.2, 0.2, 0.0001, undefined)
    at assert_numeric_style_equals ( /web-animations/interfaces/Animation/commitStyles.html:19:10)
PassCommits shorthand styles
Asserts run
Pass
assert_equals("20px", "20px")
    at Test.<anonymous> ( /web-animations/interfaces/Animation/commitStyles.html:105:3)
PassCommits logical properties
Asserts run
Pass
assert_equals("20px", "20px")
    at Test.<anonymous> ( /web-animations/interfaces/Animation/commitStyles.html:122:3)
PassCommits logical properties as physical properties
Asserts run
Pass
assert_equals("20px", "20px")
    at Test.<anonymous> ( /web-animations/interfaces/Animation/commitStyles.html:139:3)
PassCommits values calculated mid-interval
Asserts run
Pass
assert_approx_equals(0.45, 0.45, 0.0001, undefined)
    at assert_numeric_style_equals ( /web-animations/interfaces/Animation/commitStyles.html:19:10)
PassCommits variable references as their computed values
Asserts run
Pass
assert_approx_equals(0.5, 0.5, 0.0001, undefined)
    at assert_numeric_style_equals ( /web-animations/interfaces/Animation/commitStyles.html:19:10)
Pass
assert_approx_equals(0.5, 0.5, 0.0001, undefined)
    at assert_numeric_style_equals ( /web-animations/interfaces/Animation/commitStyles.html:19:10)
PassCommits custom variables
Asserts run
Pass
assert_approx_equals(0.8, 0.8, 0.0001, undefined)
    at assert_numeric_style_equals ( /web-animations/interfaces/Animation/commitStyles.html:19:10)
PassCommits em units as pixel values
Asserts run
Pass
assert_approx_equals(100, 100, 0.0001, undefined)
    at assert_numeric_style_equals ( /web-animations/interfaces/Animation/commitStyles.html:19:10)
Pass
assert_approx_equals(100, 100, 0.0001, "Changes to the font-size should have no effect")
    at assert_numeric_style_equals ( /web-animations/interfaces/Animation/commitStyles.html:19:10)
PassCommits relative line-height
Asserts run
Pass
assert_approx_equals(15, 15, 0.0001, undefined)
    at assert_numeric_style_equals ( /web-animations/interfaces/Animation/commitStyles.html:19:10)
Pass
assert_equals("1.5", "1.5", "line-height is committed as a relative value")
    at Test.<anonymous> ( /web-animations/interfaces/Animation/commitStyles.html:222:3)
Pass
assert_approx_equals(30, 30, 0.0001, "Changes to the font-size should affect the committed line-height")
    at assert_numeric_style_equals ( /web-animations/interfaces/Animation/commitStyles.html:19:10)
PassCommits transforms
Asserts run
Pass
assert_equals("matrix(1, 0, 0, 1, 20, 20)", "matrix(1, 0, 0, 1, 20, 20)")
    at Test.<anonymous> ( /web-animations/interfaces/Animation/commitStyles.html:239:3)
PassCommits transforms as a transform list
Asserts run
Pass
assert_equals("translate(20px, 20px)", "translate(20px, 20px)")
    at Test.<anonymous> ( /web-animations/interfaces/Animation/commitStyles.html:251:3)
PassCommits matrix-interpolated relative transforms
Asserts run
Pass
assert_equals("matrix(2, 0, 0, 2, 100, 0)", "matrix(2, 0, 0, 2, 100, 0)", "Resolved transform is correct after commit.")
    at Test.<anonymous> ( /web-animations/interfaces/Animation/commitStyles.html:267:3)
PassCommits "none" transform
Asserts run
Pass
assert_equals("none", "none", "Resolved transform is correct after commit.")
    at Test.<anonymous> ( /web-animations/interfaces/Animation/commitStyles.html:281:3)
PassCommits the intermediate value of an animation in the middle of stack
Asserts run
Pass
assert_approx_equals(0.4, 0.4, 0.0001, undefined)
    at assert_numeric_style_equals ( /web-animations/interfaces/Animation/commitStyles.html:19:10)
PassCommit composites on top of the underlying value
Asserts run
Pass
assert_approx_equals(0.5, 0.5, 0.0001, undefined)
    at assert_numeric_style_equals ( /web-animations/interfaces/Animation/commitStyles.html:19:10)
PassTriggers mutation observers when updating style
Asserts run
Pass
assert_equals(1, 1, "Should have one mutation record")
    at Test.<anonymous> ( /web-animations/interfaces/Animation/commitStyles.html:413:3)
Pass
assert_equals("attributes", "attributes")
    at Test.<anonymous> ( /web-animations/interfaces/Animation/commitStyles.html:416:3)
Pass
assert_equals("opacity: 0.1;", "opacity: 0.1;")
    at Test.<anonymous> ( /web-animations/interfaces/Animation/commitStyles.html:417:3)
PassDoes NOT trigger mutation observers when the change to style is redundant
Asserts run
Pass
assert_equals(0, 0, "Should have no mutation records")
    at Test.<anonymous> ( /web-animations/interfaces/Animation/commitStyles.html:445:3)
PassThrows if the target element is a pseudo element
Asserts run
Pass
assert_throws_dom("NoModificationAllowedError", function "() => {     animation.commitStyles();   }")
    at Test.<anonymous> ( /web-animations/interfaces/Animation/commitStyles.html:459:3)
PassThrows if the target element is not something with a style attribute
Asserts run
Pass
assert_throws_dom("NoModificationAllowedError", function "() => {     animation.commitStyles();   }")
    at Test.<anonymous> ( /web-animations/interfaces/Animation/commitStyles.html:475:3)
PassThrows if the target effect is display:none
Asserts run
Pass
assert_throws_dom("InvalidStateError", function "() => {     animation.commitStyles();   }")
    at Test.<anonymous> ( /web-animations/interfaces/Animation/commitStyles.html:491:3)
PassThrows if the target effect's ancestor is display:none
Asserts run
Pass
assert_throws_dom("InvalidStateError", function "() => {     animation.commitStyles();   }")
    at Test.<anonymous> ( /web-animations/interfaces/Animation/commitStyles.html:508:3)
PassTreats display:contents as rendered
Asserts runNo asserts ran
PassTreats display:contents in a display:none subtree as not rendered
Asserts run
Pass
assert_throws_dom("InvalidStateError", function "() => {     animation.commitStyles();   }")
    at Test.<anonymous> ( /web-animations/interfaces/Animation/commitStyles.html:542:3)
PassThrows if the target effect is disconnected
Asserts run
Pass
assert_throws_dom("InvalidStateError", function "() => {     animation.commitStyles();   }")
    at Test.<anonymous> ( /web-animations/interfaces/Animation/commitStyles.html:556:3)
PassChecks the pseudo element condition before the not rendered condition
Asserts run
Pass
assert_throws_dom("NoModificationAllowedError", function "() => {     animation.commitStyles();   }")
    at Test.<anonymous> ( /web-animations/interfaces/Animation/commitStyles.html:571:3)