| OLD | NEW |
| 1 <!doctype html> | 1 <!doctype html> |
| 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 <p>This tests the border width property with percent values for HTML elements.</
p> | 7 <p>This tests the border width property with percent values for HTML elements.</
p> |
| 8 <div id="console"></div> | 8 <div id="console"></div> |
| 9 <script> | 9 <script> |
| 10 function elementBorderWidth(element, borderValue, style) | 10 function elementBorderWidth(element, borderValue, style) |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 shouldBe("elementBorderWidth('object', 0, 'border-width: 10%')", "0"); | 48 shouldBe("elementBorderWidth('object', 0, 'border-width: 10%')", "0"); |
| 49 shouldBe("elementBorderWidth('object', 0, 'border-width: -10%')", "0"); | 49 shouldBe("elementBorderWidth('object', 0, 'border-width: -10%')", "0"); |
| 50 | 50 |
| 51 shouldBe("inputElementBorderWidth('image', '10%')", "10"); | 51 shouldBe("inputElementBorderWidth('image', '10%')", "10"); |
| 52 shouldBe("inputElementBorderWidth('image', '-10%')", "0"); | 52 shouldBe("inputElementBorderWidth('image', '-10%')", "0"); |
| 53 shouldBe("inputElementBorderWidth('image', ' +10%')", "10"); | 53 shouldBe("inputElementBorderWidth('image', ' +10%')", "10"); |
| 54 | 54 |
| 55 shouldBe("inputElementBorderWidth('image', 0, 'border-width: 10%')", "0"); | 55 shouldBe("inputElementBorderWidth('image', 0, 'border-width: 10%')", "0"); |
| 56 shouldBe("inputElementBorderWidth('image', 0, 'border-width: -10%')", "0"); | 56 shouldBe("inputElementBorderWidth('image', 0, 'border-width: -10%')", "0"); |
| 57 </script> | 57 </script> |
| 58 <script src="../js/resources/js-test-post.js"></script> | |
| 59 </body> | 58 </body> |
| 60 </html> | 59 </html> |
| OLD | NEW |