Summary

Harness status: OK

Found 41 tests

Details

ResultTest NameMessage
Passthe event is an instance of AnimationEvent
Asserts run
Pass
assert_true(true)
    at Test.<anonymous> ( /css/css-animations/animationevent-interface.js:4:5)
Passthe event inherts from Event
Asserts run
Pass
assert_true(true)
    at Test.<anonymous> ( /css/css-animations/animationevent-interface.js:9:5)
PassMissing type argument
Asserts run
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "function() {       new AnimationEvent();     }", "First argument is required, so was expecting a TypeError.")
    at Test.<anonymous> ( /css/css-animations/animationevent-interface.js:13:5)
Passtype argument is string
Asserts run
Pass
assert_equals("test", "test")
    at Test.<anonymous> ( /css/css-animations/animationevent-interface.js:20:5)
Passtype argument is null
Asserts run
Pass
assert_equals("null", "null")
    at Test.<anonymous> ( /css/css-animations/animationevent-interface.js:25:5)
Passevent type set to undefined
Asserts run
Pass
assert_equals("undefined", "undefined")
    at Test.<anonymous> ( /css/css-animations/animationevent-interface.js:30:5)
PassanimationName has default value of empty string
Asserts run
Pass
assert_equals("", "")
    at Test.<anonymous> ( /css/css-animations/animationevent-interface.js:35:5)
PasselapsedTime has default value of 0.0
Asserts run
Pass
assert_equals(0, 0)
    at Test.<anonymous> ( /css/css-animations/animationevent-interface.js:40:5)
PassanimationName is readonly
Asserts run
Pass
assert_readonly(object "[object AnimationEvent]", "animationName", "readonly attribute value")
    at Test.<anonymous> ( /css/css-animations/animationevent-interface.js:45:5)
PasselapsedTime is readonly
Asserts run
Pass
assert_readonly(object "[object AnimationEvent]", "elapsedTime", "readonly attribute value")
    at Test.<anonymous> ( /css/css-animations/animationevent-interface.js:50:5)
PassanimationEventInit argument is null
Asserts run
Pass
assert_equals("", "")
    at Test.<anonymous> ( /css/css-animations/animationevent-interface.js:55:5)
Pass
assert_equals(0, 0)
    at Test.<anonymous> ( /css/css-animations/animationevent-interface.js:56:5)
PassanimationEventInit argument is undefined
Asserts run
Pass
assert_equals("", "")
    at Test.<anonymous> ( /css/css-animations/animationevent-interface.js:61:5)
Pass
assert_equals(0, 0)
    at Test.<anonymous> ( /css/css-animations/animationevent-interface.js:62:5)
PassanimationEventInit argument is empty dictionary
Asserts run
Pass
assert_equals("", "")
    at Test.<anonymous> ( /css/css-animations/animationevent-interface.js:67:5)
Pass
assert_equals(0, 0)
    at Test.<anonymous> ( /css/css-animations/animationevent-interface.js:68:5)
PassAnimationEvent.pseudoElement initialized from the dictionary
Asserts run
Pass
assert_equals("::testPseudo", "::testPseudo")
    at Test.<anonymous> ( /css/css-animations/animationevent-interface.js:73:5)
PassanimationName set to 'sample'
Asserts run
Pass
assert_equals("sample", "sample")
    at Test.<anonymous> ( /css/css-animations/animationevent-interface.js:78:5)
PassanimationName set to undefined
Asserts run
Pass
assert_equals("", "")
    at Test.<anonymous> ( /css/css-animations/animationevent-interface.js:83:5)
PassanimationName set to null
Asserts run
Pass
assert_equals("null", "null")
    at Test.<anonymous> ( /css/css-animations/animationevent-interface.js:88:5)
PassanimationName set to false
Asserts run
Pass
assert_equals("false", "false")
    at Test.<anonymous> ( /css/css-animations/animationevent-interface.js:93:5)
PassanimationName set to true
Asserts run
Pass
assert_equals("true", "true")
    at Test.<anonymous> ( /css/css-animations/animationevent-interface.js:98:5)
PassanimationName set to a number
Asserts run
Pass
assert_equals("0.5", "0.5")
    at Test.<anonymous> ( /css/css-animations/animationevent-interface.js:103:5)
PassanimationName set to []
Asserts run
Pass
assert_equals("", "")
    at Test.<anonymous> ( /css/css-animations/animationevent-interface.js:108:5)
PassanimationName set to [1, 2, 3]
Asserts run
Pass
assert_equals("1,2,3", "1,2,3")
    at Test.<anonymous> ( /css/css-animations/animationevent-interface.js:113:5)
PassanimationName set to an object
Asserts run
Pass
assert_equals("[object Object]", "[object Object]")
    at Test.<anonymous> ( /css/css-animations/animationevent-interface.js:118:5)
PassanimationName set to an object with a valueOf function
Asserts run
Pass
assert_equals("[object Object]", "[object Object]")
    at Test.<anonymous> ( /css/css-animations/animationevent-interface.js:124:5)
PasselapsedTime set to 0.5
Asserts run
Pass
assert_equals(0.5, 0.5)
    at Test.<anonymous> ( /css/css-animations/animationevent-interface.js:129:5)
PasselapsedTime set to -0.5
Asserts run
Pass
assert_equals(-0.5, -0.5)
    at Test.<anonymous> ( /css/css-animations/animationevent-interface.js:134:5)
PasselapsedTime set to undefined
Asserts run
Pass
assert_equals(0, 0)
    at Test.<anonymous> ( /css/css-animations/animationevent-interface.js:139:5)
PasselapsedTime set to null
Asserts run
Pass
assert_equals(0, 0)
    at Test.<anonymous> ( /css/css-animations/animationevent-interface.js:144:5)
PasselapsedTime set to false
Asserts run
Pass
assert_equals(0, 0)
    at Test.<anonymous> ( /css/css-animations/animationevent-interface.js:149:5)
PasselapsedTime set to true
Asserts run
Pass
assert_equals(1, 1)
    at Test.<anonymous> ( /css/css-animations/animationevent-interface.js:154:5)
PasselapsedTime set to ''
Asserts run
Pass
assert_equals(0, 0)
    at Test.<anonymous> ( /css/css-animations/animationevent-interface.js:159:5)
PasselapsedTime set to []
Asserts run
Pass
assert_equals(0, 0)
    at Test.<anonymous> ( /css/css-animations/animationevent-interface.js:164:5)
PasselapsedTime set to [0.5]
Asserts run
Pass
assert_equals(0.5, 0.5)
    at Test.<anonymous> ( /css/css-animations/animationevent-interface.js:169:5)
PasselapsedTime set to an object with a valueOf function
Asserts run
Pass
assert_equals(0.5, 0.5)
    at Test.<anonymous> ( /css/css-animations/animationevent-interface.js:175:5)
PasselapsedTime cannot be set to NaN
Asserts run
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "function() {       new AnimationEvent("test", {elapsedTime: NaN});     }", "elapsedTime cannot be NaN so was expecting a TypeError")
    at Test.<anonymous> ( /css/css-animations/animationevent-interface.js:179:5)
PasselapsedTime cannot be set to Infinity
Asserts run
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "function() {       new AnimationEvent("test", {elapsedTime: Infinity});     }", "elapsedTime cannot be Infinity so was expecting a TypeError")
    at Test.<anonymous> ( /css/css-animations/animationevent-interface.js:185:5)
PasselapsedTime cannot be set to -Infinity
Asserts run
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "function() {       new AnimationEvent("test", {elapsedTime: -Infinity});     }", "elapsedTime cannot be -Infinity so was expecting a TypeError")
    at Test.<anonymous> ( /css/css-animations/animationevent-interface.js:191:5)
PasselapsedTime cannot be set to 'sample'
Asserts run
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "function() {       new AnimationEvent("test", {elapsedTime: "sample"});     }", "elapsedTime cannot be a string so was expecting a TypeError")
    at Test.<anonymous> ( /css/css-animations/animationevent-interface.js:197:5)
PasselapsedTime cannot be set to [0.5, 1.0]
Asserts run
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "function() {       new AnimationEvent("test", {elapsedTime: [0.5, 1.0]});     }", "elapsedTime cannot be a multi-element array so was expecting a TypeError")
    at Test.<anonymous> ( /css/css-animations/animationevent-interface.js:203:5)
PasselapsedTime cannot be set to an object
Asserts run
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "function() {       new AnimationEvent("test", {elapsedTime: { sample: 0.5}});     }", "elapsedTime cannot be an object so was expecting a TypeError")
    at Test.<anonymous> ( /css/css-animations/animationevent-interface.js:209:5)
PassAnimationEventInit properties set value
Asserts run
Pass
assert_equals("sample", "sample")
    at Test.<anonymous> ( /css/css-animations/animationevent-interface.js:217:5)
Pass
assert_equals(0.5, 0.5)
    at Test.<anonymous> ( /css/css-animations/animationevent-interface.js:218:5)