cfleizach@apple.com | 825194c | 2013-11-06 14:15:42 +0000 | [diff] [blame] | 1 | |
eric.carlson@apple.com | 4ad8355 | 2010-08-09 20:29:46 +0000 | [diff] [blame] | 2 | Test <video> element size with and without 'src' and 'poster' attributes. |
| 3 | |
| 4 | Testing movie with no 'src' and no 'poster', with 'width' and 'height' attributes. |
| 5 | EXPECTED (video.clientWidth == '640') OK |
| 6 | EXPECTED (video.clientHeight == '480') OK |
eric.carlson@apple.com | 656a763 | 2009-03-04 01:06:50 +0000 | [diff] [blame] | 7 | EXPECTED (video.videoWidth == '0') OK |
| 8 | EXPECTED (video.videoHeight == '0') OK |
eric.carlson@apple.com | 4ad8355 | 2010-08-09 20:29:46 +0000 | [diff] [blame] | 9 | |
| 10 | Removing 'width' and 'height' attributes. |
| 11 | Testing movie with no 'src' and no 'poster', with NO 'width' and 'height' attributes, should be default size. |
| 12 | EXPECTED (video.clientWidth == '300') OK |
| 13 | EXPECTED (video.clientHeight == '150') OK |
| 14 | EXPECTED (video.videoWidth == '0') OK |
| 15 | EXPECTED (video.videoHeight == '0') OK |
| 16 | |
| 17 | Setting 'poster' to "content/abe.png" |
| 18 | Testing movie with 'poster' but no 'src', should be image size. |
| 19 | EXPECTED (video.clientWidth == '76') OK |
| 20 | EXPECTED (video.clientHeight == '103') OK |
| 21 | EXPECTED (video.videoWidth == '0') OK |
| 22 | EXPECTED (video.videoHeight == '0') OK |
| 23 | |
| 24 | Setting 'src' to "content/test.[extension]" |
| 25 | Testing movie with 'poster' and 'src', should be <video> size. |
| 26 | EXPECTED (video.clientWidth == '320') OK |
| 27 | EXPECTED (video.clientHeight == '240') OK |
| 28 | EXPECTED (video.videoWidth == '320') OK |
| 29 | EXPECTED (video.videoHeight == '240') OK |
| 30 | |
| 31 | Setting 'src' to "content/bogus.[extension]" 'poster' to "content/greenbox.png" |
| 32 | Testing movie with 'poster' and invalid 'src', should be image size. |
| 33 | EXPECTED (video.clientWidth == '25') OK |
| 34 | EXPECTED (video.clientHeight == '25') OK |
| 35 | EXPECTED (video.videoWidth == '0') OK |
| 36 | EXPECTED (video.videoHeight == '0') OK |
| 37 | |
antti | 0fec715 | 2007-10-31 02:35:53 +0000 | [diff] [blame] | 38 | END OF TEST |
| 39 | |