OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <script src="../js/resources/js-test-pre.js"></script> | 3 <script src="../js/resources/js-test-pre.js"></script> |
4 </head> | 4 </head> |
5 <body onload="change()"> | 5 <body onload="change()"> |
6 <p>Test the changing of an input type=TEXT to type=IMAGE, and vice versa. This t
est is to make sure that | 6 <p>Test the changing of an input type=TEXT to type=IMAGE, and vice versa. This t
est is to make sure that |
7 the height and width attributes are used for only IMAGE type.</p> | 7 the height and width attributes are used for only IMAGE type.</p> |
8 <div id=console></div> | 8 <div id=console></div> |
9 <form id=parent> | 9 <form id=parent> |
10 <input id="text" type="text" src="resources/apple.gif" height="17" width="19"> | 10 <input id="text" type="text" src="resources/apple.gif" height="17" width="19"> |
(...skipping 16 matching lines...) Expand all Loading... |
27 debug('Check metrics after the change:'); | 27 debug('Check metrics after the change:'); |
28 shouldBe('text.offsetWidth', '19'); | 28 shouldBe('text.offsetWidth', '19'); |
29 shouldBe('text.offsetHeight', '17'); | 29 shouldBe('text.offsetHeight', '17'); |
30 shouldBeFalse('image.offsetWidth == 19'); | 30 shouldBeFalse('image.offsetWidth == 19'); |
31 shouldBeFalse('image.offsetHeight == 17'); | 31 shouldBeFalse('image.offsetHeight == 17'); |
32 | 32 |
33 document.body.removeChild(document.getElementById('parent')); | 33 document.body.removeChild(document.getElementById('parent')); |
34 finishJSTest(); | 34 finishJSTest(); |
35 } | 35 } |
36 </script> | 36 </script> |
37 <script src="../js/resources/js-test-post.js"></script> | |
38 </body> | 37 </body> |
39 </html> | 38 </html> |
OLD | NEW |