| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <script src="../../js/resources/js-test-pre.js"></script> | 4 <script src="../../js/resources/js-test-pre.js"></script> |
| 5 </head> | 5 </head> |
| 6 <body> | 6 <body> |
| 7 <input id=test type=time step=60> | 7 <input id=test type=time step=60> |
| 8 <script> | 8 <script> |
| 9 description('Check step attribute change causes apperance change'); | 9 description('Check step attribute change causes apperance change'); |
| 10 var testInput = document.getElementById('test'); | 10 var testInput = document.getElementById('test'); |
| 11 var widthOfStep60 = testInput.offsetWidth; | 11 var widthOfStep60 = testInput.offsetWidth; |
| 12 | 12 |
| 13 debug('Set step to 0.001'); | 13 debug('Set step to 0.001'); |
| 14 testInput.step = 0.001 | 14 testInput.step = 0.001 |
| 15 var widthOfStep001 = testInput.offsetWidth; | 15 var widthOfStep001 = testInput.offsetWidth; |
| 16 shouldBeTrue('widthOfStep001 > widthOfStep60'); | 16 shouldBeTrue('widthOfStep001 > widthOfStep60'); |
| 17 | 17 |
| 18 debug('Set step to 60'); | 18 debug('Set step to 60'); |
| 19 testInput.step = 60; | 19 testInput.step = 60; |
| 20 var widthOfStep60Again = testInput.offsetWidth; | 20 var widthOfStep60Again = testInput.offsetWidth; |
| 21 shouldBeTrue('widthOfStep60 == widthOfStep60Again'); | 21 shouldBeTrue('widthOfStep60 == widthOfStep60Again'); |
| 22 | 22 |
| 23 debug(''); | 23 debug(''); |
| 24 testInput.parentElement.removeChild(testInput); | 24 testInput.parentElement.removeChild(testInput); |
| 25 </script> | 25 </script> |
| 26 <script src="../../js/resources/js-test-post.js"></script> | |
| 27 </body> | 26 </body> |
| 28 </html> | 27 </html> |
| OLD | NEW |