Summary

Harness status: OK

Found 3 tests

Details

ResultTest NameMessage
PassVTTCue constructor exceptions, invalid start time
Asserts run
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "function() { new VTTCue(NaN, 0, 'foo'); }")
    at Test.<anonymous> ( /webvtt/api/VTTCue/constructor-exceptions.html:8:5)
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "function() { new VTTCue(Infinity, 0, 'foo'); }")
    at Test.<anonymous> ( /webvtt/api/VTTCue/constructor-exceptions.html:9:5)
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "function() { new VTTCue('tomorrow', 0, 'foo'); }")
    at Test.<anonymous> ( /webvtt/api/VTTCue/constructor-exceptions.html:10:5)
PassVTTCue constructor exceptions, invalid end time
Asserts run
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "function() { new VTTCue(0, NaN, 'foo'); }")
    at Test.<anonymous> ( /webvtt/api/VTTCue/constructor-exceptions.html:13:5)
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "function() { new VTTCue(0, -Infinity, 'foo'); }")
    at Test.<anonymous> ( /webvtt/api/VTTCue/constructor-exceptions.html:14:5)
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "function() { new VTTCue(0, 'tomorrow', 'foo'); }")
    at Test.<anonymous> ( /webvtt/api/VTTCue/constructor-exceptions.html:15:5)
PassVTTCue constructor exceptions, valueOf
Asserts run
Pass
assert_equals(42, 42)
    at Test.<anonymous> ( /webvtt/api/VTTCue/constructor-exceptions.html:21:5)
Pass
assert_equals(84, 84)
    at Test.<anonymous> ( /webvtt/api/VTTCue/constructor-exceptions.html:22:5)
Pass
assert_equals("bar", "bar")
    at Test.<anonymous> ( /webvtt/api/VTTCue/constructor-exceptions.html:23:5)