| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 <title>Test for Buzilla Bug 15359: JPEG image not shown when height is specified
as percentage inside a table</title> | 3 <title>Test for Buzilla Bug 15359: JPEG image not shown when height is specified
as percentage inside a table</title> |
| 4 <script src="../../resources/js-test.js"></script> | 4 <script src="../../resources/js-test.js"></script> |
| 5 <script> | 5 <script> |
| 6 if (window.testRunner) { | 6 if (window.testRunner) { |
| 7 testRunner.waitUntilDone(); | 7 testRunner.waitUntilDone(); |
| 8 testRunner.dumpAsText(); | 8 testRunner.dumpAsText(); |
| 9 } | 9 } |
| 10 | 10 |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 shouldBe("getWidth('input-password-75')", "getWidth('input-password-100')"); | 69 shouldBe("getWidth('input-password-75')", "getWidth('input-password-100')"); |
| 70 shouldBeTrue("getFullHeight('input-password-75') != '0px'"); | 70 shouldBeTrue("getFullHeight('input-password-75') != '0px'"); |
| 71 // Note: This behavior doesn't match to IE 8, Firefox 3.5 and Opera 10. | 71 // Note: This behavior doesn't match to IE 8, Firefox 3.5 and Opera 10. |
| 72 is75PercentOf("getFullHeight('input-password-75')", "getFullHeight('input-pa
ssword-100')"); | 72 is75PercentOf("getFullHeight('input-password-75')", "getFullHeight('input-pa
ssword-100')"); |
| 73 | 73 |
| 74 shouldBe("getWidth('input-text-75')", "getWidth('input-text-100')"); | 74 shouldBe("getWidth('input-text-75')", "getWidth('input-text-100')"); |
| 75 shouldBeTrue("getFullHeight('input-text-75') != '0px'"); | 75 shouldBeTrue("getFullHeight('input-text-75') != '0px'"); |
| 76 // Note: This behavior doesn't match to IE 8, Firefox 3.5 and Opera 10. | 76 // Note: This behavior doesn't match to IE 8, Firefox 3.5 and Opera 10. |
| 77 is75PercentOf("getFullHeight('input-text-75')", "getFullHeight('input-text-1
00')"); | 77 is75PercentOf("getFullHeight('input-text-75')", "getFullHeight('input-text-1
00')"); |
| 78 | 78 |
| 79 shouldBe("getWidth('isindex-75')", "getWidth('isindex-100')"); | |
| 80 shouldBeTrue("getFullHeight('isindex-75') != '0px'"); | |
| 81 shouldBe("getFullHeight('isindex-75')", "getFullHeight('isindex-100')"); | |
| 82 | |
| 83 shouldBe("getWidth('textarea-75')", "getWidth('textarea-100')"); | 79 shouldBe("getWidth('textarea-75')", "getWidth('textarea-100')"); |
| 84 shouldBeTrue("getFullHeight('textarea-75') != '0px'"); | 80 shouldBeTrue("getFullHeight('textarea-75') != '0px'"); |
| 85 // Note: This behavior doesn't match to IE 8, Firefox 3.5 and Opera 10. | 81 // Note: This behavior doesn't match to IE 8, Firefox 3.5 and Opera 10. |
| 86 is75PercentOf("getFullHeight('textarea-75')", "getFullHeight('textarea-100')
"); | 82 is75PercentOf("getFullHeight('textarea-75')", "getFullHeight('textarea-100')
"); |
| 87 | 83 |
| 88 isSuccessfullyParsed(); | 84 isSuccessfullyParsed(); |
| 89 | 85 |
| 90 if (window.testRunner) { | 86 if (window.testRunner) { |
| 91 testRunner.notifyDone(); | 87 testRunner.notifyDone(); |
| 92 } | 88 } |
| 93 } | 89 } |
| 94 </script> | 90 </script> |
| 95 </head> | 91 </head> |
| 96 <body onload="test()"> | 92 <body onload="test()"> |
| 97 | 93 |
| 98 <table><tr><td><input type="password" id="input-password-75" style="height: 75%;
"></td></tr></table> | 94 <table><tr><td><input type="password" id="input-password-75" style="height: 75%;
"></td></tr></table> |
| 99 <table><tr><td><input type="password" id="input-password-100" style="height: 100
%;"></td></tr></table> | 95 <table><tr><td><input type="password" id="input-password-100" style="height: 100
%;"></td></tr></table> |
| 100 | 96 |
| 101 <table><tr><td><input type="text" id="input-text-75" style="height: 75%;"></td><
/tr></table> | 97 <table><tr><td><input type="text" id="input-text-75" style="height: 75%;"></td><
/tr></table> |
| 102 <table><tr><td><input type="text" id="input-text-100" style="height: 100%;"></td
></tr></table> | 98 <table><tr><td><input type="text" id="input-text-100" style="height: 100%;"></td
></tr></table> |
| 103 | 99 |
| 104 <table><tr><td><isindex id="isindex-75" style="height: 75%;"></td></tr></table> | |
| 105 <table><tr><td><isindex id="isindex-100" style="height: 100%;"></td></tr></table
> | |
| 106 | |
| 107 <table><tr><td><textarea id="textarea-75" style="height: 75%;"></textarea></td><
/tr></table> | 100 <table><tr><td><textarea id="textarea-75" style="height: 75%;"></textarea></td><
/tr></table> |
| 108 <table><tr><td><textarea id="textarea-100" style="height: 100%;"></textarea></td
></tr></table> | 101 <table><tr><td><textarea id="textarea-100" style="height: 100%;"></textarea></td
></tr></table> |
| 109 | 102 |
| 110 <p id="description"></p> | 103 <p id="description"></p> |
| 111 <div id="console"></div> | 104 <div id="console"></div> |
| 112 </body> | 105 </body> |
| 113 </html> | 106 </html> |
| OLD | NEW |