Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(132)

Side by Side Diff: third_party/WebKit/LayoutTests/media/video-size-expected.txt

Issue 2126753002: Convert video-[default, size, timeupdate]* tests to testharness.js (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address comments Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698