blob: 9cd40d6c13ccb3cd9789afedcfa57798490af7a2 [file] [log] [blame]
This is a testharness.js-based test.
Found 59 tests; 50 PASS, 9 FAIL, 0 TIMEOUT, 0 NOTRUN.
PASS A ScrollTimeline can be created with a scrollSource
PASS A ScrollTimeline can be created with a non-scrolling scrollSource
PASS A ScrollTimeline created with a null scrollSource should use the document.scrollingElement
PASS A ScrollTimeline created with the default orientation should default to 'block'
PASS 'block' is a valid orientation value
PASS 'inline' is a valid orientation value
PASS 'horizontal' is a valid orientation value
PASS 'vertical' is a valid orientation value
PASS Creating a ScrollTimeline with an invalid orientation value should throw
PASS A ScrollTimeline created with the default startScrollOffset should default to 'auto'
PASS A ScrollTimeline created with the default endScrollOffset should default to 'auto'
PASS 'auto' is a valid scroll offset value
PASS '0' is a valid scroll offset value
PASS 'calc(100% - 80px)' is a valid scroll offset value
PASS 'em' is a valid scroll offset unit
PASS 'ex' is a valid scroll offset unit
PASS 'ch' is a valid scroll offset unit
PASS 'rem' is a valid scroll offset unit
PASS 'vw' is a valid scroll offset unit
PASS 'vh' is a valid scroll offset unit
PASS 'vmin' is a valid scroll offset unit
PASS 'vmax' is a valid scroll offset unit
PASS 'cm' is a valid scroll offset unit
PASS 'mm' is a valid scroll offset unit
PASS 'q' is a valid scroll offset unit
PASS 'in' is a valid scroll offset unit
PASS 'pc' is a valid scroll offset unit
PASS 'pt' is a valid scroll offset unit
PASS 'px' is a valid scroll offset unit
PASS '%' is a valid scroll offset unit
PASS '' is an invalid scroll offset value
PASS 'calc(360deg / 4)' is an invalid scroll offset value
PASS 'left' is an invalid scroll offset value
PASS '#ff0000' is an invalid scroll offset value
PASS 'rgb(0, 128, 0)' is an invalid scroll offset value
PASS 'url("http://www.example.com/pinkish.gif")' is an invalid scroll offset value
PASS 'this_is_garbage' is an invalid scroll offset value
PASS '100px 5%' is an invalid scroll offset value
PASS 'deg' is an invalid scroll offset unit
PASS 's' is an invalid scroll offset unit
PASS 'Hz' is an invalid scroll offset unit
PASS 'dpi' is an invalid scroll offset unit
FAIL A ScrollTimeline created with the default timeRange should default to 'auto' Failed to construct 'ScrollTimeline': 'auto' value for timeRange not yet supported
FAIL 'auto' is a valid timeRange value Failed to construct 'ScrollTimeline': 'auto' value for timeRange not yet supported
PASS '0' is a valid timeRange value
PASS '-100' is a valid timeRange value
PASS '100' is a valid timeRange value
PASS '1234.5678' is a valid timeRange value
PASS 'invalid' is an invalid timeRange value
PASS 'Infinity' is an invalid timeRange value
PASS '-Infinity' is an invalid timeRange value
PASS 'NaN' is an invalid timeRange value
FAIL A ScrollTimeline created with the default fill should default to 'none' assert_equals: expected (string) "none" but got (undefined) undefined
FAIL 'none' is a valid fill value assert_equals: expected (string) "none" but got (undefined) undefined
FAIL 'forwards' is a valid fill value assert_equals: expected (string) "forwards" but got (undefined) undefined
FAIL 'backwards' is a valid fill value assert_equals: expected (string) "backwards" but got (undefined) undefined
FAIL 'both' is a valid fill value assert_equals: expected (string) "both" but got (undefined) undefined
FAIL 'auto' is a valid fill value assert_equals: expected (string) "auto" but got (undefined) undefined
FAIL Creating a ScrollTimeline with an invalid fill value should throw assert_throws: function "function() {
new ScrollTimeline({fill: 'nonsense', timeRange: 100})
}" did not throw
Harness: the test ran to completion.