| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <title><video> intrinsic width/height</title> | 4 <title><video> intrinsic width/height</title> |
| 5 <script src="../resources/testharness.js"></script> | 5 <script src="../resources/testharness.js"></script> |
| 6 <script src="../resources/testharnessreport.js"></script> | 6 <script src="../resources/testharnessreport.js"></script> |
| 7 </head> | 7 </head> |
| 8 <body> | 8 <body> |
| 9 <div id="log"></div> | |
| 10 <!-- These tests assume that the default intrinsic width is 300x150, so
that the default | 9 <!-- These tests assume that the default intrinsic width is 300x150, so
that the default |
| 11 intrinsic ratio is 2:1. This is no longer per spec, but is what is
implemented. --> | 10 intrinsic ratio is 2:1. This is no longer per spec, but is what is
implemented. --> |
| 12 <video title="no width/height attributes" | 11 <video title="no width/height attributes" |
| 13 data-expected-width="300" data-expected-height="150"></video> | 12 data-expected-width="300" data-expected-height="150"></video> |
| 14 <video title="only width attribute" | 13 <video title="only width attribute" |
| 15 data-expected-width="100" data-expected-height="50" | 14 data-expected-width="100" data-expected-height="50" |
| 16 width="100"></video> | 15 width="100"></video> |
| 17 <video title="only height attribute" | 16 <video title="only height attribute" |
| 18 data-expected-width="200" data-expected-height="100" | 17 data-expected-width="200" data-expected-height="100" |
| 19 height="100"></video> | 18 height="100"></video> |
| (...skipping 10 matching lines...) Expand all Loading... |
| 30 { | 29 { |
| 31 test(function() | 30 test(function() |
| 32 { | 31 { |
| 33 assert_equals(video.clientWidth, parseInt(video.dataset.expe
ctedWidth), "width"); | 32 assert_equals(video.clientWidth, parseInt(video.dataset.expe
ctedWidth), "width"); |
| 34 assert_equals(video.clientHeight, parseInt(video.dataset.exp
ectedHeight), "height"); | 33 assert_equals(video.clientHeight, parseInt(video.dataset.exp
ectedHeight), "height"); |
| 35 }, video.title); | 34 }, video.title); |
| 36 }); | 35 }); |
| 37 </script> | 36 </script> |
| 38 </body> | 37 </body> |
| 39 </html> | 38 </html> |
| OLD | NEW |