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

Side by Side Diff: LayoutTests/svg/text/getcharnumatposition-multiple-fragments.html

Issue 349573005: Handle multiple fragments in the getCharNumberAtPosition SVGTextQuery (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Remove redundant line from test. Created 6 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
« no previous file with comments | « no previous file | LayoutTests/svg/text/getcharnumatposition-multiple-fragments-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
(Empty)
1 <!DOCTYPE html>
2 <script src="../../resources/testharness.js"></script>
3 <script src="../../resources/testharnessreport.js"></script>
4 <svg height="0">
5 <defs><path id="p" d="M0,20h100"/></defs>
6 <text y="20" font-size="20" font-family="Ahem"><textPath xlink:href="#p">AAAA< /textPath></text>
7 </svg>
8 <script>
9 test(function() {
10 var text = document.querySelector('text');
11 var extents = text.getExtentOfChar(0);
12 var point = document.querySelector('svg').createSVGPoint();
13 point.x = extents.width / 2;
14 point.y = 10;
15 for (var i = 0; i < 4; ++i) {
16 assert_equals(text.getCharNumAtPosition(point), i);
17
18 point.x += extents.width;
19 }
20 }, 'SVGTextContentElement.getCharNumAtPosition w/ multiple fragments per text bo x.');
21 </script>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/svg/text/getcharnumatposition-multiple-fragments-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698