Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(80)

Side by Side Diff: LayoutTests/fast/table/table-cell-offset-width.html

Issue 1204023002: Deflake tests using ahem font with @font-face. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebaseline and fix an svg test Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 <script src="../../resources/ahem.js"></script>
1 <table><td style="font-family: Ahem; width: 10px">FAIL</td></table> 2 <table><td style="font-family: Ahem; width: 10px">FAIL</td></table>
2 <script> 3 <script>
3 if (window.testRunner) 4 if (window.testRunner)
4 testRunner.dumpAsText(); 5 testRunner.dumpAsText();
5 // crbug.com/290399 reported that offsetWidth on a table cell 6 // crbug.com/290399 reported that offsetWidth on a table cell
6 // would incorrectly return the specified width instead of the layout-expanded w idth. 7 // would incorrectly return the specified width instead of the layout-expanded w idth.
7 // When this would fail, it would be 12px instead of the 66px 'FAIL' expands to in Ahem. 8 // When this would fail, it would be 12px instead of the 66px 'FAIL' expands to in Ahem.
8 var width = document.getElementsByTagName('td')[0].offsetWidth; 9 var width = document.getElementsByTagName('td')[0].offsetWidth;
9 document.body.textContent = (width == 66 ? "PASS" : "FAIL") + " (" + width + "px )"; 10 document.body.textContent = (width == 66 ? "PASS" : "FAIL") + " (" + width + "px )";
10 </script> 11 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698