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

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

Issue 6471009: Merge 76732 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/648/
Patch Set: Created 9 years, 10 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
« no previous file with comments | « no previous file | LayoutTests/platform/chromium-linux/fast/text/international/complex-text-rectangle-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <meta charset=utf-8> 1 <meta charset=utf-8>
2 2
3 <span id="a">A&#x20d5;A&#xFE20;A&#x20d5;A&#x20d5;A&#x20d5;A&#x20d5;A&#x20d5;&#x2 0d5;A&#x034b;</span> 3 <span id="a">A&#x20d5;A&#xFE20;A&#x20d5;A&#x20d5;A&#x20d5;A&#x20d5;A&#x20d5;&#x2 0d5;A&#x034b;</span>
4 4
5 This test passes if it doesn't crash or log a failure message to the console. 5 This test passes if it doesn't crash or log a failure message to the console.
6 6
7 <script> 7 <script>
8 if (window.layoutTestController) 8 if (window.layoutTestController)
9 layoutTestController.dumpAsText(); 9 layoutTestController.dumpAsText();
10 10
11 var textNode = document.getElementById('a').firstChild; 11 var textNode = document.getElementById('a').firstChild;
12 var length = textNode.textContent.length; 12 var length = textNode.textContent.length;
13 for (var start = 0; start < length; ++start) { 13 for (var start = 0; start < length; ++start) {
14 for (var end = 0; end < length; ++end) { 14 for (var end = 0; end < length; ++end) {
15 var range = document.createRange(); 15 var range = document.createRange();
16 range.setStart(textNode, start); 16 range.setStart(textNode, start);
17 range.setEnd(textNode, end); 17 range.setEnd(textNode, end);
18 var rect = range.getBoundingClientRect(); 18 var rect = range.getBoundingClientRect();
19 if (rect.width < 0 || rect.width > 200) { 19 if (rect.width < 0 || rect.width > 200) {
20 console.log('FAIL: rect.width is ' + rect.width); 20 console.log('FAIL: rect.width is ' + rect.width);
21 break; 21 break;
22 } 22 }
23 } 23 }
24 } 24 }
25 </script> 25 </script>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/platform/chromium-linux/fast/text/international/complex-text-rectangle-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698