| 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 <p> | 8 <p> |
| 9 Please run this with DRT or WTR. | 9 Please run this with DRT or WTR. |
| 10 </p> | 10 </p> |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 keyDown('upArrow'); | 55 keyDown('upArrow'); |
| 56 shouldBeEqualToString('input.value', '2345-08-20'); | 56 shouldBeEqualToString('input.value', '2345-08-20'); |
| 57 mouseClickOn(input.offsetWidth - spinButtonOffset, center - 1); | 57 mouseClickOn(input.offsetWidth - spinButtonOffset, center - 1); |
| 58 shouldBeEqualToString('input.value', '2345-08-21'); | 58 shouldBeEqualToString('input.value', '2345-08-21'); |
| 59 mouseClickOn(input.offsetWidth - spinButtonOffset, center + 1); | 59 mouseClickOn(input.offsetWidth - spinButtonOffset, center + 1); |
| 60 shouldBeEqualToString('input.value', '2345-08-20'); | 60 shouldBeEqualToString('input.value', '2345-08-20'); |
| 61 shouldBeZero('window.getSelection().rangeCount'); // No text selection. | 61 shouldBeZero('window.getSelection().rangeCount'); // No text selection. |
| 62 | 62 |
| 63 debug(''); | 63 debug(''); |
| 64 debug('==> Focus on the year field.'); | 64 debug('==> Focus on the year field.'); |
| 65 mouseClickOn(input.offsetWidth - 64, center); | 65 mouseClickOn(input.offsetWidth - 100, center); |
| 66 keyDown('upArrow'); | 66 keyDown('upArrow'); |
| 67 shouldBeEqualToString('input.value', '2346-08-20'); | 67 shouldBeEqualToString('input.value', '2346-08-20'); |
| 68 mouseClickOn(input.offsetWidth - spinButtonOffset, center - 1); | 68 mouseClickOn(input.offsetWidth - spinButtonOffset, center - 1); |
| 69 shouldBeEqualToString('input.value', '2347-08-20'); | 69 shouldBeEqualToString('input.value', '2347-08-20'); |
| 70 mouseClickOn(input.offsetWidth - spinButtonOffset, center + 1); | 70 mouseClickOn(input.offsetWidth - spinButtonOffset, center + 1); |
| 71 shouldBeEqualToString('input.value', '2346-08-20'); | 71 shouldBeEqualToString('input.value', '2346-08-20'); |
| 72 shouldBeZero('window.getSelection().rangeCount'); // No text selection. | 72 shouldBeZero('window.getSelection().rangeCount'); // No text selection. |
| 73 | 73 |
| 74 debug(''); | 74 debug(''); |
| 75 debug('==> Click on a disabled field.'); | 75 debug('==> Click on a disabled field.'); |
| 76 input.disabled = true; | 76 input.disabled = true; |
| 77 mouseClickOn(12, center); | 77 mouseClickOn(12, center); |
| 78 keyDown('upArrow'); | 78 keyDown('upArrow'); |
| 79 shouldBeEqualToString('input.value', '2346-08-20'); | 79 shouldBeEqualToString('input.value', '2346-08-20'); |
| 80 input.disabled = false; | 80 input.disabled = false; |
| 81 | 81 |
| 82 debug(''); | 82 debug(''); |
| 83 debug('==> Click on a read-only field.'); | 83 debug('==> Click on a read-only field.'); |
| 84 input.readOnly = true; | 84 input.readOnly = true; |
| 85 mouseClickOn(12, center); | 85 mouseClickOn(12, center); |
| 86 keyDown('upArrow'); | 86 keyDown('upArrow'); |
| 87 shouldBeEqualToString('input.value', '2346-08-20'); | 87 shouldBeEqualToString('input.value', '2346-08-20'); |
| 88 input.readOnly = false; | 88 input.readOnly = false; |
| 89 | 89 |
| 90 debug(''); | 90 debug(''); |
| 91 </script> | 91 </script> |
| 92 <script src="../../js/resources/js-test-post.js"></script> | 92 <script src="../../js/resources/js-test-post.js"></script> |
| 93 </body> | 93 </body> |
| 94 </html> | 94 </html> |
| OLD | NEW |