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

Side by Side Diff: LayoutTests/platform/chromium/fast/text/international/complex-text-rectangle.html

Issue 14120003: Move LayoutTests from platform/chromium/... to generic location (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 8 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
(Empty)
1 <meta charset=utf-8>
2
3 <span id="a">A&#x20d5;A&#xFE20;A&#x20d5;A&#x20d5;A&#x20d5;A&#x20d5;A&#x20d5;&#x2 0d5;A&#x034b;</span>
4
5 This test passes if it doesn't crash or log a failure message to the console.
6
7 <script>
8 if (window.testRunner)
9 testRunner.dumpAsText();
10
11 var textNode = document.getElementById('a').firstChild;
12 var length = textNode.textContent.length;
13 for (var start = 0; start < length; ++start) {
14 for (var end = 0; end < length; ++end) {
15 var range = document.createRange();
16 range.setStart(textNode, start);
17 range.setEnd(textNode, end);
18 var rect = range.getBoundingClientRect();
19 if (rect.width < 0 || rect.width > 200) {
20 console.log('FAIL: rect.width is ' + rect.width);
21 break;
22 }
23 }
24 }
25 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698