[Webkit-unassigned] [Bug 38213] Page up / page down moves edited content for the entire height

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu May 6 14:25:47 PDT 2010


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





--- Comment #18 from Ojan Vafai <ojan at chromium.org>  2010-05-06 14:25:45 PST ---
(From update of attachment 54949)
WebCore/editing/SelectionController.cpp:165
 +  #if OS(DARWIN)
This should use settings->editingBehavior() == EditingMacBehavior. That way
it's a runtime setting and once https://bugs.webkit.org/show_bug.cgi?id=38603
is completed, we can change the setting on the fly in layout tests.

     eventSender.keyDown("pageDown", modifiers);
     if (Math.abs(frame.pageYOffset - offsets[0]) > tolerance) {
         throw "Frame viewport should be around " + offsets[0] +
             "px , not at " + frame.pageYOffset;
     }

You don't have to, but if you want to make this test a bit more complete, you
could also add verification that the selection is in the right place (e.g. it
should be centered on mac except at the bounds of the scroll region).You can
get the selection bounding box with
window.getSelection().getBoundingClientRect().

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