4 <script src=
"../../../resources/js-test.js"></script>
8 description("Change multiple fields time input UI layout by value");
9 var testInput
= document
.createElement("input");
10 testInput
.setAttribute("type", "time");
11 testInput
.setAttribute("step", "60");
12 testInput
.setAttribute("value", "12:34:56");
13 document
.body
.appendChild(testInput
);
14 var widthOfStep60
= testInput
.offsetWidth
;
16 testInput
.value
= "12:34:56.789";
17 var widthWithMillisecond
= testInput
.offsetWidth
;
18 shouldBeTrue('widthOfStep60 < widthWithMillisecond');
20 testInput
.value
= "12:34:56";
21 var widthWithSecond
= testInput
.offsetWidth
;
22 shouldBeTrue('widthOfStep60 == widthWithSecond');
24 document
.body
.removeChild(testInput
);