| OLD | NEW |
| (Empty) |
| 1 Test <video> element size with and without 'src' and 'poster' attributes. | |
| 2 | |
| 3 Testing movie with no 'src' and no 'poster', with 'width' and 'height' attribute
s. | |
| 4 EXPECTED (video.clientWidth == '640') OK | |
| 5 EXPECTED (video.clientHeight == '480') OK | |
| 6 EXPECTED (video.videoWidth == '0') OK | |
| 7 EXPECTED (video.videoHeight == '0') OK | |
| 8 | |
| 9 Removing 'width' and 'height' attributes. | |
| 10 Testing movie with no 'src' and no 'poster', with NO 'width' and 'height' attrib
utes, should be default size. | |
| 11 EXPECTED (video.clientWidth == '300') OK | |
| 12 EXPECTED (video.clientHeight == '150') OK | |
| 13 EXPECTED (video.videoWidth == '0') OK | |
| 14 EXPECTED (video.videoHeight == '0') OK | |
| 15 | |
| 16 Setting 'poster' to "content/abe.png" | |
| 17 Testing movie with 'poster' but no 'src', should be image size. | |
| 18 EXPECTED (video.clientWidth == '76') OK | |
| 19 EXPECTED (video.clientHeight == '103') OK | |
| 20 EXPECTED (video.videoWidth == '0') OK | |
| 21 EXPECTED (video.videoHeight == '0') OK | |
| 22 | |
| 23 Setting 'src' to "content/test.[extension]" | |
| 24 Testing movie with 'poster' and 'src', should be <video> size. | |
| 25 EXPECTED (video.clientWidth == '320') OK | |
| 26 EXPECTED (video.clientHeight == '240') OK | |
| 27 EXPECTED (video.videoWidth == '320') OK | |
| 28 EXPECTED (video.videoHeight == '240') OK | |
| 29 | |
| 30 Setting 'src' to "content/bogus.[extension]" 'poster' to "content/greenbox.png" | |
| 31 Testing movie with 'poster' and invalid 'src', should be image size. | |
| 32 EXPECTED (video.clientWidth == '25') OK | |
| 33 EXPECTED (video.clientHeight == '25') OK | |
| 34 EXPECTED (video.videoWidth == '0') OK | |
| 35 EXPECTED (video.videoHeight == '0') OK | |
| 36 | |
| 37 END OF TEST | |
| 38 | |
| OLD | NEW |