| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <style> | 4 <style> |
| 5 a { | 5 a { |
| 6 padding: .3em 1.6em; | 6 padding: .3em 1.6em; |
| 7 } | 7 } |
| 8 </style> | 8 </style> |
| 9 <script src="../js/resources/js-test-pre.js"></script> | 9 <script src="../../resources/js-test.js"></script> |
| 10 </head> | 10 </head> |
| 11 <body> | 11 <body> |
| 12 <p> | 12 <p> |
| 13 Both links should render the same and not wrap. | 13 Both links should render the same and not wrap. |
| 14 </p> | 14 </p> |
| 15 <div> | 15 <div> |
| 16 <a style="display: inline-block;" href="#">This shouldn't wrap</a> | 16 <a style="display: inline-block;" href="#">This shouldn't wrap</a> |
| 17 </div> | 17 </div> |
| 18 <div> | 18 <div> |
| 19 <a href="#">This shouldn't wrap</a> | 19 <a href="#">This shouldn't wrap</a> |
| 20 </div> | 20 </div> |
| 21 <script> | 21 <script> |
| 22 var links = document.getElementsByTagName('a'); | 22 var links = document.getElementsByTagName('a'); |
| 23 var expectedWidth = links[1].offsetWidth; | 23 var expectedWidth = links[1].offsetWidth; |
| 24 shouldBeCloseTo('links[0].offsetWidth', links[1].offsetWidth, 1); | 24 shouldBeCloseTo('links[0].offsetWidth', links[1].offsetWidth, 1); |
| 25 </script> | 25 </script> |
| 26 </body> | 26 </body> |
| 27 </html> | 27 </html> |
| OLD | NEW |