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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/fast/forms/time-multiple-fields/time-multiple-fields-mouse-events.html
===================================================================
--- LayoutTests/fast/forms/time-multiple-fields/time-multiple-fields-mouse-events.html (revision 131283)
+++ LayoutTests/fast/forms/time-multiple-fields/time-multiple-fields-mouse-events.html (working copy)
@@ -66,6 +66,20 @@
mouseClick();
shouldBeEqualToString('input.value', '02:24');
+debug('= Click on a disabled/readonly field =');
+input.disabled = true;
+mouseMoveTo(12, 14);
+mouseClick();
+keyDown('upArrow');
+shouldBeEqualToString('input.value', '02:24'); // Not changed.
+input.disabled = false;
+input.readOnly = true;
+mouseMoveTo(12, 14);
+mouseClick();
+keyDown('upArrow');
+shouldBeEqualToString('input.value', '02:24'); // Not changed.
+input.readOnly = false;
+
debug('');
</script>
<script src="../../js/resources/js-test-post.js"></script>

Powered by Google App Engine
This is Rietveld 408576698