OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <style type="text/css"> | 3 <style type="text/css"> |
4 #container { | 4 #container { |
5 width: 200px; | 5 width: 200px; |
6 height: 100px; | 6 height: 100px; |
7 overflow: auto; | 7 overflow: auto; |
8 } | 8 } |
9 #innerBox { | 9 #innerBox { |
10 width: 200%; | 10 width: 200%; |
(...skipping 14 matching lines...) Expand all Loading... |
25 | 25 |
26 debug('The height of the inner element box should be 100% of the containers heig
ht minus the height of horizontal scrollbar. \ | 26 debug('The height of the inner element box should be 100% of the containers heig
ht minus the height of horizontal scrollbar. \ |
27 There should be no vertical scrollable content in the container<br>'); | 27 There should be no vertical scrollable content in the container<br>'); |
28 shouldBeTrue('document.getElementById("container").scrollHeight == document.getE
lementById("container").clientHeight'); | 28 shouldBeTrue('document.getElementById("container").scrollHeight == document.getE
lementById("container").clientHeight'); |
29 debug('Container height = Inner Box height + scrollbar height'); | 29 debug('Container height = Inner Box height + scrollbar height'); |
30 shouldBeTrue('document.getElementById("container").offsetHeight > document.getEl
ementById("innerBox").offsetHeight'); | 30 shouldBeTrue('document.getElementById("container").offsetHeight > document.getEl
ementById("innerBox").offsetHeight'); |
31 document.body.removeChild(document.getElementById('container')); | 31 document.body.removeChild(document.getElementById('container')); |
32 </script> | 32 </script> |
33 <div id="description"></div> | 33 <div id="description"></div> |
34 <div id="console"></div> | 34 <div id="console"></div> |
35 <script src="../js/resources/js-test-post.js"></script> | |
36 </body> | 35 </body> |
37 </html> | 36 </html> |
OLD | NEW |