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

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

Issue 11150011: Merge 130848 - Sub-fields in input[type=time] should not be focusable if the input is disabled or r… (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1271/
Patch Set: Created 8 years, 2 months 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
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 DumpRenderTree. 9 Please run this with DumpRenderTree.
10 </p> 10 </p>
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 debug('= Click up part of spin button ='); 59 debug('= Click up part of spin button =');
60 mouseMoveTo(input.offsetWidth - 10, 8); 60 mouseMoveTo(input.offsetWidth - 10, 8);
61 mouseClick(); 61 mouseClick();
62 shouldBeEqualToString('input.value', '02:25'); 62 shouldBeEqualToString('input.value', '02:25');
63 63
64 debug('= Click down part of spin button ='); 64 debug('= Click down part of spin button =');
65 mouseMoveTo(input.offsetWidth - 10, input.offsetHeight - 8); 65 mouseMoveTo(input.offsetWidth - 10, input.offsetHeight - 8);
66 mouseClick(); 66 mouseClick();
67 shouldBeEqualToString('input.value', '02:24'); 67 shouldBeEqualToString('input.value', '02:24');
68 68
69 debug('= Click on a disabled/readonly field =');
70 input.disabled = true;
71 mouseMoveTo(12, 14);
72 mouseClick();
73 keyDown('upArrow');
74 shouldBeEqualToString('input.value', '02:24'); // Not changed.
75 input.disabled = false;
76 input.readOnly = true;
77 mouseMoveTo(12, 14);
78 mouseClick();
79 keyDown('upArrow');
80 shouldBeEqualToString('input.value', '02:24'); // Not changed.
81 input.readOnly = false;
82
69 debug(''); 83 debug('');
70 </script> 84 </script>
71 <script src="../../js/resources/js-test-post.js"></script> 85 <script src="../../js/resources/js-test-post.js"></script>
72 </body> 86 </body>
73 </html> 87 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698