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

Side by Side Diff: LayoutTests/fast/forms/time-multiple-fields/time-multiple-fields-step-attribute.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> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <script src="../../js/resources/js-test-pre.js"></script> 4 <script src="../../../resources/js-test.js"></script>
5 </head> 5 </head>
6 <body> 6 <body>
7 <input id=test type=time step=60> 7 <input id=test type=time step=60>
8 <script> 8 <script>
9 description('Check step attribute change causes apperance change'); 9 description('Check step attribute change causes apperance change');
10 var testInput = document.getElementById('test'); 10 var testInput = document.getElementById('test');
11 var widthOfStep60 = testInput.offsetWidth; 11 var widthOfStep60 = testInput.offsetWidth;
12 12
13 debug('Set step to 0.001'); 13 debug('Set step to 0.001');
14 testInput.step = 0.001 14 testInput.step = 0.001
15 var widthOfStep001 = testInput.offsetWidth; 15 var widthOfStep001 = testInput.offsetWidth;
16 shouldBeTrue('widthOfStep001 > widthOfStep60'); 16 shouldBeTrue('widthOfStep001 > widthOfStep60');
17 17
18 debug('Set step to 60'); 18 debug('Set step to 60');
19 testInput.step = 60; 19 testInput.step = 60;
20 var widthOfStep60Again = testInput.offsetWidth; 20 var widthOfStep60Again = testInput.offsetWidth;
21 shouldBeTrue('widthOfStep60 == widthOfStep60Again'); 21 shouldBeTrue('widthOfStep60 == widthOfStep60Again');
22 22
23 debug(''); 23 debug('');
24 testInput.parentElement.removeChild(testInput); 24 testInput.parentElement.removeChild(testInput);
25 </script> 25 </script>
26 </body> 26 </body>
27 </html> 27 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698