| 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 <p id="description"></p> | 7 <p id="description"></p> |
| 8 <div id="console"></div> | 8 <div id="console"></div> |
| 9 <script> | 9 <script> |
| 10 description('Check stepping-up and -down for range input from renderer.'); | 10 description('Check stepping-up and -down for range input from renderer.'); |
| 11 | 11 |
| 12 var input = document.createElement('input'); | 12 var input = document.createElement('input'); |
| 13 var invalidStateErr = '"Error: InvalidStateError: DOM Exception 11"'; | 13 var invalidStateErr = '"InvalidStateError: An attempt was made to use an object
that is not, or is no longer, usable."'; |
| 14 | 14 |
| 15 function sendKey(keyName) { | 15 function sendKey(keyName) { |
| 16 var event = document.createEvent('KeyboardEvent'); | 16 var event = document.createEvent('KeyboardEvent'); |
| 17 event.initKeyboardEvent('keydown', true, true, document.defaultView, keyName
); | 17 event.initKeyboardEvent('keydown', true, true, document.defaultView, keyName
); |
| 18 input.dispatchEvent(event); | 18 input.dispatchEvent(event); |
| 19 } | 19 } |
| 20 | 20 |
| 21 function setInputAttributes(min, max, step, value) { | 21 function setInputAttributes(min, max, step, value) { |
| 22 input.min = min; | 22 input.min = min; |
| 23 input.max = max; | 23 input.max = max; |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 146 shouldBe('stepUpExplicitBounds(null, null, 0.1, 1, 10)', '"2"'); | 146 shouldBe('stepUpExplicitBounds(null, null, 0.1, 1, 10)', '"2"'); |
| 147 shouldBe('stepUpExplicitBounds(0, 1, 0.003921568627450980, 0, 255)', '"1"'); | 147 shouldBe('stepUpExplicitBounds(0, 1, 0.003921568627450980, 0, 255)', '"1"'); |
| 148 shouldBe('stepDownExplicitBounds(null, null, 0.1, 1, 8)', '"0.2"'); | 148 shouldBe('stepDownExplicitBounds(null, null, 0.1, 1, 8)', '"0.2"'); |
| 149 shouldBe('stepDownExplicitBounds(null, null, 0.1, 1)', '"0.9"'); | 149 shouldBe('stepDownExplicitBounds(null, null, 0.1, 1)', '"0.9"'); |
| 150 | 150 |
| 151 debug(''); | 151 debug(''); |
| 152 </script> | 152 </script> |
| 153 <script src="../../js/resources/js-test-post.js"></script> | 153 <script src="../../js/resources/js-test-post.js"></script> |
| 154 </body> | 154 </body> |
| 155 </html> | 155 </html> |
| OLD | NEW |