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

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

Issue 2100243002: Remove non-standardize key code names from event_sender. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix inspector tests that were missed by sed Created 4 years, 5 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="../../../resources/ahem.js"></script> 4 <script src="../../../resources/ahem.js"></script>
5 <script src="../../../resources/js-test.js"></script> 5 <script src="../../../resources/js-test.js"></script>
6 </head> 6 </head>
7 <body> 7 <body>
8 <p id="description"></p> 8 <p id="description"></p>
9 <p> 9 <p>
10 Please run this with DumpRenderTree. 10 Please run this with DumpRenderTree.
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 var input = document.getElementById("input"); 44 var input = document.getElementById("input");
45 var center = input.offsetHeight / 2; 45 var center = input.offsetHeight / 2;
46 var clearButtonOffset = 20; 46 var clearButtonOffset = 20;
47 47
48 input.value = "01:23"; 48 input.value = "01:23";
49 input.blur(); 49 input.blur();
50 50
51 debug('= Focus to hour field ='); 51 debug('= Focus to hour field =');
52 mouseMoveTo(12, 14); 52 mouseMoveTo(12, 14);
53 mouseClick(); 53 mouseClick();
54 keyDown('upArrow'); 54 keyDown('ArrowUp');
55 shouldBeEqualToString('input.value', '02:23'); 55 shouldBeEqualToString('input.value', '02:23');
56 56
57 debug('= Focus to minute field ='); 57 debug('= Focus to minute field =');
58 mouseMoveTo(70, 14); 58 mouseMoveTo(70, 14);
59 mouseClick(); 59 mouseClick();
60 keyDown('upArrow'); 60 keyDown('ArrowUp');
61 shouldBeEqualToString('input.value', '02:24'); 61 shouldBeEqualToString('input.value', '02:24');
62 62
63 debug('= Click up part of spin button ='); 63 debug('= Click up part of spin button =');
64 mouseMoveTo(input.offsetWidth - 10, 8); 64 mouseMoveTo(input.offsetWidth - 10, 8);
65 mouseClick(); 65 mouseClick();
66 shouldBeEqualToString('input.value', '02:25'); 66 shouldBeEqualToString('input.value', '02:25');
67 67
68 debug('= Click down part of spin button ='); 68 debug('= Click down part of spin button =');
69 mouseMoveTo(input.offsetWidth - 10, input.offsetHeight - 8); 69 mouseMoveTo(input.offsetWidth - 10, input.offsetHeight - 8);
70 mouseClick(); 70 mouseClick();
71 shouldBeEqualToString('input.value', '02:24'); 71 shouldBeEqualToString('input.value', '02:24');
72 72
73 debug('= Click on a disabled/readonly field ='); 73 debug('= Click on a disabled/readonly field =');
74 input.disabled = true; 74 input.disabled = true;
75 mouseMoveTo(12, 14); 75 mouseMoveTo(12, 14);
76 mouseClick(); 76 mouseClick();
77 keyDown('upArrow'); 77 keyDown('ArrowUp');
78 shouldBeEqualToString('input.value', '02:24'); // Not changed. 78 shouldBeEqualToString('input.value', '02:24'); // Not changed.
79 input.disabled = false; 79 input.disabled = false;
80 input.readOnly = true; 80 input.readOnly = true;
81 mouseMoveTo(12, 14); 81 mouseMoveTo(12, 14);
82 mouseClick(); 82 mouseClick();
83 keyDown('upArrow'); 83 keyDown('ArrowUp');
84 shouldBeEqualToString('input.value', '02:24'); // Not changed. 84 shouldBeEqualToString('input.value', '02:24'); // Not changed.
85 input.readOnly = false; 85 input.readOnly = false;
86 86
87 debug(''); 87 debug('');
88 debug('==> Click on clear button.'); 88 debug('==> Click on clear button.');
89 input.readOnly = true; 89 input.readOnly = true;
90 mouseMoveTo(input.offsetWidth - clearButtonOffset, center); 90 mouseMoveTo(input.offsetWidth - clearButtonOffset, center);
91 mouseClick(); 91 mouseClick();
92 shouldBeEqualToString('input.value', '02:24'); // Not changed. 92 shouldBeEqualToString('input.value', '02:24'); // Not changed.
93 input.disabled = true; 93 input.disabled = true;
(...skipping 10 matching lines...) Expand all
104 input.value = '02:24'; 104 input.value = '02:24';
105 input.type = 'time'; 105 input.type = 'time';
106 mouseClick(); 106 mouseClick();
107 shouldBeEqualToString('input.value', ''); 107 shouldBeEqualToString('input.value', '');
108 108
109 debug(''); 109 debug('');
110 } 110 }
111 </script> 111 </script>
112 </body> 112 </body>
113 </html> 113 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698