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

Side by Side Diff: LayoutTests/fast/forms/week-multiple-fields/week-multiple-fields-change-layout-by-value.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 <body> 3 <body>
4 <script src="../../js/resources/js-test-pre.js"></script> 4 <script src="../../../resources/js-test.js"></script>
5 <script> 5 <script>
6 description('Change multiple fields week input UI layout by value'); 6 description('Change multiple fields week input UI layout by value');
7 var testInput = document.createElement('input'); 7 var testInput = document.createElement('input');
8 testInput.type = 'week'; 8 testInput.type = 'week';
9 testInput.max = '9999-W52'; 9 testInput.max = '9999-W52';
10 document.body.appendChild(testInput); 10 document.body.appendChild(testInput);
11 var widthOfEmptyValue = testInput.offsetWidth; 11 var widthOfEmptyValue = testInput.offsetWidth;
12 12
13 testInput.value = '10000-W01'; 13 testInput.value = '10000-W01';
14 var widthOfOverflowValue = testInput.offsetWidth; 14 var widthOfOverflowValue = testInput.offsetWidth;
15 shouldBeTrue('widthOfEmptyValue < widthOfOverflowValue'); 15 shouldBeTrue('widthOfEmptyValue < widthOfOverflowValue');
16 16
17 testInput.value = '2012-W10'; 17 testInput.value = '2012-W10';
18 var widthOfValidValue = testInput.offsetWidth; 18 var widthOfValidValue = testInput.offsetWidth;
19 shouldBe('widthOfEmptyValue', 'widthOfValidValue'); 19 shouldBe('widthOfEmptyValue', 'widthOfValidValue');
20 20
21 testInput.remove(); 21 testInput.remove();
22 </script> 22 </script>
23 </body> 23 </body>
24 </html> 24 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698