REOPENED69889
Selection is not collapsed in some WK2 editing tests
https://bugs.webkit.org/show_bug.cgi?id=69889
Summary Selection is not collapsed in some WK2 editing tests
Simon Fraser (smfr)
Reported 2011-10-11 17:38:57 PDT
These tests, and some others, are failing in WK2 because the selection is not collapsed at the end of the test: editing/pasteboard/drag-drop-iframe-refresh-crash.html: pretty diff editing/selection/caret-ltr-right.html: pretty diff editing/selection/caret-rtl-right.html: pretty diff editing/selection/select-across-readonly-input-2.html: pretty diff editing/selection/select-across-readonly-input-3.html: pretty diff editing/selection/select-across-readonly-input-4.html: pretty diff editing/selection/select-across-readonly-input-5.html: pretty diff
Attachments
patch 1 (2.91 KB, patch)
2011-10-12 11:31 PDT, Chang Shu
no flags
Simon Fraser (smfr)
Comment 1 2011-10-11 17:45:31 PDT
Also editing/inserting/caret-position.html
Ryosuke Niwa
Comment 2 2011-10-11 21:39:56 PDT
Maybe it's something to do with eventSender in WK2?
Chang Shu
Comment 3 2011-10-12 06:18:55 PDT
editing/inserting/caret-position.html is calling textInputController.firstRectForCharacterRange(0, 0). But it's not supported yet in WK2. There must be other unsupported textInputController functions used in these tests.
Simon Fraser (smfr)
Comment 4 2011-10-12 07:59:38 PDT
I skipped editing/inserting/caret-position.html in WK2 already. The other tests still have the problem described.
Chang Shu
Comment 5 2011-10-12 08:36:58 PDT
I believe the failures are related to missing drag-n-drop support in WK2 EventSender. https://bugs.webkit.org/show_bug.cgi?id=68552.
Simon Fraser (smfr)
Comment 6 2011-10-12 09:10:10 PDT
But not all those tests involve D&D
Chang Shu
Comment 7 2011-10-12 10:12:49 PDT
I think these tests are new and never passed in WK2. We should simply skip them for now. Understanding the cause of the failures will help us to put them in the right category. D&D and textInputController are two root causes I have identified so far.
Simon Fraser (smfr)
Comment 8 2011-10-12 10:26:59 PDT
D&D and textInputController tests have already been skipped. These tests are using neither (but do rely on event sender).
Ryosuke Niwa
Comment 9 2011-10-12 10:35:03 PDT
(In reply to comment #7) > I think these tests are new and never passed in WK2. We should simply skip them for now. Understanding the cause of the failures will help us to put them in the right category. D&D and textInputController are two root causes I have identified so far. caret-ltr-right and caret-rtl-right should be passing on WK2.
Chang Shu
Comment 10 2011-10-12 10:41:14 PDT
(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); } }
Simon Fraser (smfr)
Comment 11 2011-10-12 10:43:07 PDT
Chang: please make a patch to disable the appropriate tests then.
Chang Shu
Comment 12 2011-10-12 10:46:56 PDT
(In reply to comment #11) > Chang: please make a patch to disable the appropriate tests then. No problem.
Chang Shu
Comment 13 2011-10-12 11:31:10 PDT
Created attachment 110712 [details] patch 1 Added failed tests to Skip list. I put them into platform-dependent Skipped file instead of the common one because the fix should be platform-dependent.
WebKit Review Bot
Comment 14 2011-10-12 13:50:32 PDT
Comment on attachment 110712 [details] patch 1 Clearing flags on attachment: 110712 Committed r97297: <http://trac.webkit.org/changeset/97297>
WebKit Review Bot
Comment 15 2011-10-12 13:50:37 PDT
All reviewed patches have been landed. Closing bug.
Ryosuke Niwa
Comment 16 2011-10-12 13:51:34 PDT
Reopen the bug because the patch didn't really fix the tests.
Jessie Berlin
Comment 18 2012-03-15 16:22:25 PDT
Added failing expected results for mac-wk2 in http://trac.webkit.org/changeset/110906
Note You need to log in before you can comment on or make changes to this bug.