blob: 60e579f42d8413b4f421cc3ff4e9c0459b39a3ef (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
<!DOCTYPE html>
<p>The form controls of the same type below should be the same width.</p>
<div style="width: 100px; background: pink">
<table><tbody><tr><td>
<input id="text-a" style="height: 100%">
</td></tr></tbody></table>
</div>
<div style="width: 100px; background: pink">
<table><tbody><tr><td>
<input id="text-b">
</td></tr></tbody></table>
</div>
<div style="width: 100px; background: pink">
<table><tbody><tr><td>
<input id="file-a" type=file style="height: 100%">
</td></tr></tbody></table>
</div>
<div style="width: 100px; background: pink">
<table><tbody><tr><td>
<input id="file-b" type=file>
</td></tr></tbody></table>
</div>
<div style="width: 100px; background: pink">
<table><tbody><tr><td>
<input id="range-a" type=range style="height: 100%">
</td></tr></tbody></table>
</div>
<div style="width: 100px; background: pink">
<table><tbody><tr><td>
<input id="range-b" type=range>
</td></tr></tbody></table>
</div>
<div style="width: 100px; background: pink">
<table><tbody><tr><td>
<select id="select-a" style="height: 100%"><option>aaaaaaaaaaaaaaaaaaaaaaaaa
</td></tr></tbody></table>
</div>
<div style="width: 100px; background: pink">
<table><tbody><tr><td>
<select id="select-b"><option>aaaaaaaaaaaaaaaaaaaaaaaaa
</td></tr></tbody></table>
</div>
<div style="width: 100px; background: pink">
<table><tbody><tr><td>
<select id="multiple-a" multiple style="height: 100%"><option>aaaaaaaaaaaaaaaaaaaaaaaaa
</td></tr></tbody></table>
</div>
<div style="width: 100px; background: pink">
<table><tbody><tr><td>
<select id="multiple-b" multiple><option>aaaaaaaaaaaaaaaaaaaaaaaaa
</td></tr></tbody></table>
</div>
<script src="../../resources/js-test.js"></script>
<script>
var ids = ['text', 'file', 'range', 'select', 'multiple'];
ids.forEach(function(id) {
shouldBe('document.getElementById("' + id + '-a").offsetWidth', 'document.getElementById("' + id + '-b").offsetWidth');
})
</script>
|