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

Side by Side Diff: LayoutTests/fast/forms/input-step-as-double.html

Issue 58533003: Move fast/js/resources files to resources. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month 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 | Annotate | Revision Log
OLDNEW
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> 1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html> 2 <html>
3 <head> 3 <head>
4 <script src="../../fast/js/resources/js-test-pre.js"></script> 4 <script src="../../resources/js-test.js"></script>
5 </head> 5 </head>
6 <body> 6 <body>
7 <script> 7 <script>
8 description('Test for a capturing spec change to consider .2 as valid real numbe r for step'); 8 description('Test for a capturing spec change to consider .2 as valid real numbe r for step');
9 9
10 var parent = document.createElement('div'); 10 var parent = document.createElement('div');
11 document.body.appendChild(parent); 11 document.body.appendChild(parent);
12 parent.innerHTML = '<input type=number id=number value=0 step=".5">'; 12 parent.innerHTML = '<input type=number id=number value=0 step=".5">';
13 var numberInput = document.getElementById('number'); 13 var numberInput = document.getElementById('number');
14 14
15 if (window.eventSender) { 15 if (window.eventSender) {
16 // Move the cursor on the upper button of the input field. 16 // Move the cursor on the upper button of the input field.
17 eventSender.mouseMoveTo(numberInput.offsetLeft + numberInput.offsetWidth - 1 0, numberInput.offsetTop + numberInput.offsetHeight / 4); 17 eventSender.mouseMoveTo(numberInput.offsetLeft + numberInput.offsetWidth - 1 0, numberInput.offsetTop + numberInput.offsetHeight / 4);
18 18
19 eventSender.mouseDown(); 19 eventSender.mouseDown();
20 eventSender.mouseUp(); 20 eventSender.mouseUp();
21 shouldBe('numberInput.value', '"0.5"'); 21 shouldBe('numberInput.value', '"0.5"');
22 22
23 parent.innerHTML = ''; 23 parent.innerHTML = '';
24 } else { 24 } else {
25 document.getElementById('console').innerHTML = '<p>No eventSender. <p>Manual test instruction: Click the upper button of the input field. Confirm that the input field value is 0.5'; 25 document.getElementById('console').innerHTML = '<p>No eventSender. <p>Manual test instruction: Click the upper button of the input field. Confirm that the input field value is 0.5';
26 } 26 }
27 27
28 </script> 28 </script>
29 </body> 29 </body>
30 </html> 30 </html>
OLDNEW
« no previous file with comments | « LayoutTests/fast/forms/input-search-press-escape-key.html ('k') | LayoutTests/fast/forms/input-stepup-stepdown.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698