OLD | NEW |
| (Empty) |
1 Test for edge cases of <textarea> rows and cols attributes. | |
2 | |
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | |
4 | |
5 | |
6 Default values | |
7 PASS defaultRows is 2 | |
8 PASS defaultCols is 20 | |
9 PASS defaultHeight > 0 is true | |
10 PASS defaultWidth > 0 is true | |
11 rows = 1 | |
12 PASS textarea.rows is 1 | |
13 PASS textarea.offsetHeight > 0 is true | |
14 PASS textarea.offsetHeight < defaultHeight is true | |
15 PASS textarea.offsetWidth is defaultWidth | |
16 rows = 2; should match default height | |
17 PASS textarea.rows is defaultRows | |
18 PASS textarea.offsetHeight is defaultHeight | |
19 PASS textarea.offsetWidth is defaultWidth | |
20 rows = 3 | |
21 PASS textarea.rows is 3 | |
22 PASS textarea.offsetHeight > defaultHeight is true | |
23 PASS textarea.offsetWidth is defaultWidth | |
24 rows; should be default height | |
25 PASS textarea.rows is defaultRows | |
26 PASS textarea.offsetHeight is defaultHeight | |
27 PASS textarea.offsetWidth is defaultWidth | |
28 rows = 0; should be default height | |
29 PASS textarea.rows is defaultRows | |
30 PASS textarea.offsetHeight is defaultHeight | |
31 PASS textarea.offsetWidth is defaultWidth | |
32 rows = -1; should be default height | |
33 PASS textarea.rows is defaultRows | |
34 PASS textarea.offsetHeight is defaultHeight | |
35 PASS textarea.offsetWidth is defaultWidth | |
36 rows = x; should be default height | |
37 PASS textarea.rows is defaultRows | |
38 PASS textarea.offsetHeight is defaultHeight | |
39 PASS textarea.offsetWidth is defaultWidth | |
40 cols = 1 | |
41 PASS textarea.cols is 1 | |
42 PASS textarea.offsetWidth > 0 is true | |
43 PASS textarea.offsetWidth < defaultWidth is true | |
44 PASS textarea.offsetHeight is defaultHeight | |
45 cols = 20; should match default width | |
46 PASS textarea.cols is defaultCols | |
47 PASS textarea.offsetWidth is defaultWidth | |
48 PASS textarea.offsetHeight is defaultHeight | |
49 cols = 40 | |
50 PASS textarea.cols is 40 | |
51 PASS textarea.offsetWidth > defaultWidth is true | |
52 PASS textarea.offsetHeight is defaultHeight | |
53 cols; should be default width | |
54 PASS textarea.cols is defaultCols | |
55 PASS textarea.offsetWidth is defaultWidth | |
56 PASS textarea.offsetHeight is defaultHeight | |
57 cols = 0; should be default width | |
58 PASS textarea.cols is defaultCols | |
59 PASS textarea.offsetWidth is defaultWidth | |
60 PASS textarea.offsetHeight is defaultHeight | |
61 cols = -1; should be default width | |
62 PASS textarea.cols is defaultCols | |
63 PASS textarea.offsetWidth is defaultWidth | |
64 PASS textarea.offsetHeight is defaultHeight | |
65 cols = x; should be default width | |
66 PASS textarea.cols is defaultCols | |
67 PASS textarea.offsetWidth is defaultWidth | |
68 PASS textarea.offsetHeight is defaultHeight | |
69 PASS successfullyParsed is true | |
70 | |
71 TEST COMPLETE | |
72 | |
OLD | NEW |