[Webkit-unassigned] [Bug 29985] New: Make LayoutTests/editing/selection/hit-test-anonymous.html resistant to GDI/CG differences

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Oct 1 15:17:23 PDT 2009


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

           Summary: Make
                    LayoutTests/editing/selection/hit-test-anonymous.html
                    resistant to GDI/CG differences
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: PC
        OS/Version: Mac OS X 10.5
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Tools / Tests
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: jparent at google.com
                CC: darin at apple.com


This test measures the offsetLeft of an element, adds 200, and then clicks in
that position, and expects the click to happen at a specific character
(specifically, for the selection offset to be at a certain character). However,
the character occurs at a different x position when using GDI or CG (off by 8
pixels), so this test fails for platforms using GDI.

Possible solutions:
1. Add in a fudge factor, documented with an explanation, for the selection
offset, aka, it can be either character at offset 24 or 25.
2. Make the click more specific about where it occurs. Since we can't easily
measure where a character is, we could wrap it in an inline tag, measure the
location of the inline tag, and specifically click there, rather than just
adding 200. This shouldn't effect the quality of the test.
3. GDI platforms just expect failure here.

Thoughts?  Other solutions?  I lean towards #2.

cc'ing Darin since he authored the test in
https://bugs.webkit.org/show_bug.cgi?id=24726.

-- 
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