Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(439)

Side by Side Diff: LayoutTests/fast/forms/date-multiple-fields/date-multiple-fields-mouse-events.html

Issue 11557024: Merge 136808 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1312/
Patch Set: Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | LayoutTests/platform/chromium/TestExpectations » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/platform/chromium/TestExpectations » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698