4 <script src=
"../../../resources/js-test.js"></script>
6 description('Change multiple fields week input UI layout by value');
7 var testInput
= document
.createElement('input');
8 testInput
.type
= 'week';
9 testInput
.max
= '9999-W52';
10 document
.body
.appendChild(testInput
);
11 var widthOfEmptyValue
= testInput
.offsetWidth
;
13 testInput
.value
= '10000-W01';
14 var widthOfOverflowValue
= testInput
.offsetWidth
;
15 shouldBeTrue('widthOfEmptyValue < widthOfOverflowValue');
17 testInput
.value
= '2012-W10';
18 var widthOfValidValue
= testInput
.offsetWidth
;
19 shouldBe('widthOfEmptyValue', 'widthOfValidValue');