[Webkit-unassigned] [Bug 69889] Selection is not collapsed in some WK2 editing tests

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Oct 12 10:41:14 PDT 2011


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





--- Comment #10 from Chang Shu <cshu at webkit.org>  2011-10-12 10:41:14 PST ---
(In reply to comment #8)
> D&D and textInputController tests have already been skipped. These tests are using neither (but do rely on event sender).

LayoutTests/editing/selection/resources/select-across-readonly-input.js should depend on D&D:
        moveMouseToMiddleOfElement(document.getElementById('from'));
        eventSender.mouseDown();

        eventSender.leapForward(200);

        moveMouseToMiddleOfElement(document.getElementById('to'));
        eventSender.mouseUp();

and LayoutTests/editing/inserting/caret-position.html should depend on textInputController.firstRectForCharacterRange:

function testCaretPosition(elementId, caretPosition)
{
    e = document.getElementById(elementId, caretPosition);
    e.focus();
    if (window.textInputController) {
        var caretRect = textInputController.firstRectForCharacterRange(0, 0);
        assertEqual(elementId, caretRect[0], caretPosition);
    }  
}

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