[Webkit-unassigned] [Bug 37515] getPathSegAtLength() gives incorrect value

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri May 7 23:32:03 PDT 2010


https://bugs.webkit.org/show_bug.cgi?id=37515





--- Comment #8 from Nikolas Zimmermann <zimmermann at kde.org>  2010-05-07 23:32:02 PST ---
Okay, I've tried the testcase across the SVG implementations:

Safari 4 (latest release)
FAIL path.getPathSegAtLength(0) should be 0. Was 1.
FAIL path.getPathSegAtLength(1) should be 0. Was 1.
PASS path.getPathSegAtLength(5) is 1
PASS path.getPathSegAtLength(6) is 1
FAIL path.getPathSegAtLength(10) should be 2. Was 1.
FAIL path.getPathSegAtLength(11) should be 2. Was 1.
FAIL path.getPathSegAtLength(16) should be 0. Was 1.

Opera 10.10

FAIL path.getPathSegAtLength(0) should be 0. Was 2.
FAIL path.getPathSegAtLength(1) should be 0. Was 2.
FAIL path.getPathSegAtLength(5) should be 1. Was 2.
FAIL path.getPathSegAtLength(6) should be 1. Was 2.
PASS path.getPathSegAtLength(10) is 2
PASS path.getPathSegAtLength(11) is 2
FAIL path.getPathSegAtLength(16) should be 0. Was 3.

FireFox trunk (Minefield)

PASS path.getPathSegAtLength(0) is 0
FAIL path.getPathSegAtLength(1) should be 0. Was 1.
PASS path.getPathSegAtLength(5) is 1
FAIL path.getPathSegAtLength(6) should be 1. Was 2.
PASS path.getPathSegAtLength(10) is 2
FAIL path.getPathSegAtLength(11) should be 2. Was 3.
FAIL path.getPathSegAtLength(16) should be 0. Was 3.

I think FireFox does it right.
The path is auto-closed because of the last segment, so the distance=16 should
actually say 3 IMHO.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list