Chromium Code Reviews| OLD | NEW | 
|---|---|
| (Empty) | |
| 1 <!DOCTYPE html> | |
| 2 <script src="../../resources/js-test.js"></script> | |
| 3 <div align="right"> | |
| 4 <table dir="rtl" border="1" id="rtl_table"> | |
| 5 <tr><td></td><td></td><td></td></tr> | |
| 6 </table> | |
| 7 <table border="1" id="ltr_table"> | |
| 8 <tr><td></td><td></td><td></td></tr> | |
| 9 </table> | |
| 10 <div dir="rtl" style="border:1px black solid;width:50px;height:50px" id="rtl_d iv"></div> | |
| 11 <div style="border:1px black solid;width:50px;height:50px" id="ltr_div"></div> | |
| 12 </div> | |
| 13 <script> | |
| 14 rtl_table_in_right_aligned_div = document.getElementById("rtl_table"); | |
| 
 
mstensho (USE GERRIT)
2014/12/04 12:18:29
Might as well use the short name in the variable n
 
Kyungtae Kim
2014/12/08 07:00:13
Done.
 
 | |
| 15 ltr_table_in_right_aligned_div = document.getElementById("ltr_table"); | |
| 16 rtl_div_in_right_aligned_div = document.getElementById("rtl_div"); | |
| 17 ltr_div_in_right_aligned_div = document.getElementById("ltr_div"); | |
| 18 shouldBe("rtl_table_in_right_aligned_div.getBoundingClientRect().right","792") ; | |
| 19 shouldBe("ltr_table_in_right_aligned_div.getBoundingClientRect().right","792") ; | |
| 20 shouldBe("rtl_div_in_right_aligned_div.getBoundingClientRect().right","792"); | |
| 21 shouldBe("ltr_div_in_right_aligned_div.getBoundingClientRect().right","792"); | |
| 22 </script> | |
| 23 | |
| OLD | NEW |