blob: c0fb20df72929d2f84dba5e93a4887863e474e3d [file] [log] [blame]
cfleizach@apple.com825194c2013-11-06 14:15:42 +00001
eric.carlson@apple.com4ad83552010-08-09 20:29:46 +00002Test <video> element size with and without 'src' and 'poster' attributes.
3
4Testing movie with no 'src' and no 'poster', with 'width' and 'height' attributes.
5EXPECTED (video.clientWidth == '640') OK
6EXPECTED (video.clientHeight == '480') OK
eric.carlson@apple.com656a7632009-03-04 01:06:50 +00007EXPECTED (video.videoWidth == '0') OK
8EXPECTED (video.videoHeight == '0') OK
eric.carlson@apple.com4ad83552010-08-09 20:29:46 +00009
10Removing 'width' and 'height' attributes.
11Testing movie with no 'src' and no 'poster', with NO 'width' and 'height' attributes, should be default size.
12EXPECTED (video.clientWidth == '300') OK
13EXPECTED (video.clientHeight == '150') OK
14EXPECTED (video.videoWidth == '0') OK
15EXPECTED (video.videoHeight == '0') OK
16
17Setting 'poster' to "content/abe.png"
18Testing movie with 'poster' but no 'src', should be image size.
19EXPECTED (video.clientWidth == '76') OK
20EXPECTED (video.clientHeight == '103') OK
21EXPECTED (video.videoWidth == '0') OK
22EXPECTED (video.videoHeight == '0') OK
23
24Setting 'src' to "content/test.[extension]"
25Testing movie with 'poster' and 'src', should be <video> size.
26EXPECTED (video.clientWidth == '320') OK
27EXPECTED (video.clientHeight == '240') OK
28EXPECTED (video.videoWidth == '320') OK
29EXPECTED (video.videoHeight == '240') OK
30
31Setting 'src' to "content/bogus.[extension]" 'poster' to "content/greenbox.png"
32Testing movie with 'poster' and invalid 'src', should be image size.
33EXPECTED (video.clientWidth == '25') OK
34EXPECTED (video.clientHeight == '25') OK
35EXPECTED (video.videoWidth == '0') OK
36EXPECTED (video.videoHeight == '0') OK
37
antti0fec7152007-10-31 02:35:53 +000038END OF TEST
39