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

Side by Side Diff: LayoutTests/fast/forms/date/calendar-picker-type-change-onclick.html

Issue 10795098: Merge 122918 - Fix an assertion failure in CalendarPickerElement::hostInput(). (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1180/
Patch Set: Created 8 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
« no previous file with comments | « no previous file | LayoutTests/fast/forms/date/calendar-picker-type-change-onclick-expected.txt » ('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 <body> 2 <body>
3 <script src="../../js/resources/js-test-pre.js"></script> 3 <script src="../../js/resources/js-test-pre.js"></script>
4 <input type="date" onclick="changeType(this)" /> 4 <input type="date" onclick="changeType(this)" />
5 <script> 5 <script>
6 description('Check if we have no crash in a case that the input type is changed by clicking the calendar picker indicator.'); 6 description('Check if we have no crash in a case that the input type is changed by clicking the calendar picker indicator.');
7 7
8 function changeType(input) { 8 function changeType(input) {
9 input.type = 'text'; 9 input.type = 'text';
10 testPassed('unless crash or assertion failure'); 10 testPassed('unless crash or assertion failure');
11 finishJSTest(); 11 finishJSTest();
12 } 12 }
13 13
14 jsTestIsAsync = true; 14 jsTestIsAsync = true;
15 if (!window.eventSender) { 15 if (!window.eventSender) {
16 debug('Click on the triangle in the input field.'); 16 debug('Click on the triangle in the input field.');
17 } else { 17 } else {
18 setTimeout(function() { 18 setTimeout(function() {
19 var dateInput = document.getElementsByTagName('input')[0]; 19 var dateInput = document.getElementsByTagName('input')[0];
20 eventSender.mouseMoveTo(dateInput.offsetLeft + dateInput.offsetWidth - 6 , 20 eventSender.mouseMoveTo(dateInput.offsetLeft + dateInput.offsetWidth - 6 ,
21 dateInput.offsetTop + dateInput.offsetHeight / 2 ); 21 dateInput.offsetTop + dateInput.offsetHeight / 2 );
22 eventSender.mouseDown(); 22 eventSender.mouseDown();
23 eventSender.mouseUp(); 23 eventSender.mouseUp();
24 }, 0); 24 }, 0);
25 } 25 }
26 </script> 26 </script>
27 <script src="../../js/resources/js-test-post.js"></script> 27 <script src="../../js/resources/js-test-post.js"></script>
28 </body> 28 </body>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/forms/date/calendar-picker-type-change-onclick-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698