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

Side by Side Diff: LayoutTests/fast/text/remove-zero-length-run.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 <div style="position: absolute; top: 40px; left: 40px; width: 140px; font-famil y: Ahem; font-size: 20px; direction: rtl;">12345 abcde</div> 1 <link rel="stylesheet" href="../../resources/ahem.css">
2 <div style="position: absolute; top: 40px; left: 40px; width: 140px; font-family : Ahem; font-size: 20px; direction: rtl;">12345 abcde</div>
2 <div id="result">FAIL: Test did not run</div> 3 <div id="result">FAIL: Test did not run</div>
3 <script> 4 <script>
4 if (window.testRunner) 5 if (window.testRunner)
5 testRunner.dumpAsText(); 6 testRunner.dumpAsText();
6 7
7 var offset = document.caretRangeFromPoint(125, 50).startOffset; 8 var offset = document.caretRangeFromPoint(125, 50).startOffset;
8 document.getElementById("result").innerText = offset === 2 ? "PASS" : "FAIL: Hit offset " + offset; 9 document.getElementById("result").innerText = offset === 2 ? "PASS" : "FAIL: Hit offset " + offset;
9 </script> 10 </script>
OLDNEW
« no previous file with comments | « LayoutTests/fast/text/justify-padding-distribution.html ('k') | LayoutTests/fast/text/selection-painted-separately.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698