forked from WebKit/WebKit-http
-
Notifications
You must be signed in to change notification settings - Fork 0
/
video-poster-expected.txt
38 lines (31 loc) · 1.57 KB
/
video-poster-expected.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
Test <video> element with and without a poster.
Testing poster null, with 'width' and 'height' attributes.
EXPECTED (video.getAttribute('poster') == 'null') OK
EXPECTED (relativeURL(video.poster) == '') OK
EXPECTED (video.clientWidth == '320') OK
EXPECTED (video.clientHeight == '240') OK
Setting poster to "content/greenbox.png"
Testing 25x25 poster 'content/greenbox.png', size should equal image size.
EXPECTED (video.getAttribute('poster') == 'content/greenbox.png') OK
EXPECTED (relativeURL(video.poster) == 'content/greenbox.png') OK
EXPECTED (video.clientWidth == '25') OK
EXPECTED (video.clientHeight == '25') OK
Setting poster to ""
Testing poster '', with NO 'width' or 'height' attributes so size should be <video> default.
EXPECTED (video.getAttribute('poster') == '') OK
EXPECTED (relativeURL(video.poster) == 'video-poster.html') OK
EXPECTED (video.clientWidth == '300') OK
EXPECTED (video.clientHeight == '150') OK
Setting poster to "content/abe.png"
Testing 76x103 poster 'content/abe.png', size should equal image size.
EXPECTED (video.getAttribute('poster') == 'content/abe.png') OK
EXPECTED (relativeURL(video.poster) == 'content/abe.png') OK
EXPECTED (video.clientWidth == '76') OK
EXPECTED (video.clientHeight == '103') OK
Setting poster to "content/bogus.png"
Testing 300x150 poster 'content/bogus.png', invalid url so size should revert to <video> default.
EXPECTED (video.getAttribute('poster') == 'content/bogus.png') OK
EXPECTED (relativeURL(video.poster) == 'content/bogus.png') OK
EXPECTED (video.clientWidth == '300') OK
EXPECTED (video.clientHeight == '150') OK
END OF TEST