OLD | NEW |
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> | 1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <script src="../../js/resources/js-test-pre.js"></script> | 4 <script src="../../js/resources/js-test-pre.js"></script> |
5 </head> | 5 </head> |
6 <body> | 6 <body> |
7 | 7 |
8 <body> | 8 <body> |
9 <script> | 9 <script> |
10 description('HTMLInputElement size attribute test'); | 10 description('HTMLInputElement size attribute test'); |
(...skipping 10 matching lines...) Expand all Loading... |
21 shouldBe("input.setAttribute('size', 'a'); input.size", "20"); | 21 shouldBe("input.setAttribute('size', 'a'); input.size", "20"); |
22 shouldBe("input.removeAttribute('size'); input.size", "20"); | 22 shouldBe("input.removeAttribute('size'); input.size", "20"); |
23 shouldBe("input.setAttribute('size', '0'); input.size", "20"); | 23 shouldBe("input.setAttribute('size', '0'); input.size", "20"); |
24 shouldBe("input.setAttribute('size', '10'); input.size", "10"); | 24 shouldBe("input.setAttribute('size', '10'); input.size", "10"); |
25 | 25 |
26 shouldThrow("input.size = 0", "'IndexSizeError: Index or size was negative, or g
reater than the allowed value.'"); | 26 shouldThrow("input.size = 0", "'IndexSizeError: Index or size was negative, or g
reater than the allowed value.'"); |
27 | 27 |
28 </script> | 28 </script> |
29 </body> | 29 </body> |
30 | 30 |
31 <script src="../../js/resources/js-test-post.js"></script> | |
32 </body> | 31 </body> |
33 </html> | 32 </html> |
OLD | NEW |