4 <script src=
"../../resources/js-test.js"></script>
7 <p id=
"description">Text field types should have the same default widths.
</p>
8 <div id=
"console"></div>
11 <input type=text id=text
>
13 <input type=email id=email
>
14 <input type=number id=number
>
15 <input type=password id=password
>
16 <input type=tel id=tel
>
17 <input type=url id=url
>
21 var baseWidth
= document
.getElementById('text').offsetWidth
;
23 shouldBe('document.getElementById("email").offsetWidth', 'baseWidth');
24 shouldBe('document.getElementById("number").offsetWidth', 'baseWidth');
25 shouldBe('document.getElementById("password").offsetWidth', 'baseWidth');
26 shouldBe('document.getElementById("tel").offsetWidth', 'baseWidth');
27 shouldBe('document.getElementById("url").offsetWidth', 'baseWidth');
29 // type=search is not tested intentionally.
31 document
.getElementById('parent').innerHTML
= '';