| 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="../../../resources/js-test.js"></script> | 4 <script src="../../resources/js-test.js"></script> |
| 5 </head> | 5 </head> |
| 6 <body> | 6 <body> |
| 7 <script> | 7 <script> |
| 8 description("HTMLTableElement cellpadding attribute test"); | 8 description("HTMLTableElement cellpadding attribute test"); |
| 9 | 9 |
| 10 function cellPaddingAttributeEffect(value) | 10 function cellPaddingAttributeEffect(value) |
| 11 { | 11 { |
| 12 var table = document.createElement("table"); | 12 var table = document.createElement("table"); |
| 13 table.setAttribute("cellpadding", value); | 13 table.setAttribute("cellpadding", value); |
| 14 var cell = document.createElement("td"); | 14 var cell = document.createElement("td"); |
| (...skipping 23 matching lines...) Expand all Loading... |
| 38 shouldBe('cellPaddingAttributeEffect("2.9")', '"2px"'); | 38 shouldBe('cellPaddingAttributeEffect("2.9")', '"2px"'); |
| 39 | 39 |
| 40 shouldBe('cellPaddingAttributeEffect("a")', '"0px"'); | 40 shouldBe('cellPaddingAttributeEffect("a")', '"0px"'); |
| 41 | 41 |
| 42 var arabicIndicDigitOne = String.fromCharCode(0x661); | 42 var arabicIndicDigitOne = String.fromCharCode(0x661); |
| 43 shouldBe('cellPaddingAttributeEffect(arabicIndicDigitOne)', '"0px"'); | 43 shouldBe('cellPaddingAttributeEffect(arabicIndicDigitOne)', '"0px"'); |
| 44 shouldBe('cellPaddingAttributeEffect("2" + arabicIndicDigitOne)', '"2px"'); | 44 shouldBe('cellPaddingAttributeEffect("2" + arabicIndicDigitOne)', '"2px"'); |
| 45 </script> | 45 </script> |
| 46 </body> | 46 </body> |
| 47 </html> | 47 </html> |
| OLD | NEW |