<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>69889</bug_id>
          
          <creation_ts>2011-10-11 17:38:57 -0700</creation_ts>
          <short_desc>Selection is not collapsed in some WK2 editing tests</short_desc>
          <delta_ts>2012-03-15 16:22:25 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Tools / Tests</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>REOPENED</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>MakingBotsRed</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Simon Fraser (smfr)">simon.fraser</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>cshu</cc>
    
    <cc>enrica</cc>
    
    <cc>jberlin</cc>
    
    <cc>rniwa</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>webkit.review.bot</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>482090</commentid>
    <comment_count>0</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2011-10-11 17:38:57 -0700</bug_when>
    <thetext>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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>482100</commentid>
    <comment_count>1</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2011-10-11 17:45:31 -0700</bug_when>
    <thetext>Also
editing/inserting/caret-position.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>482196</commentid>
    <comment_count>2</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2011-10-11 21:39:56 -0700</bug_when>
    <thetext>Maybe it&apos;s something to do with eventSender in WK2?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>482374</commentid>
    <comment_count>3</comment_count>
    <who name="Chang Shu">cshu</who>
    <bug_when>2011-10-12 06:18:55 -0700</bug_when>
    <thetext>editing/inserting/caret-position.html is calling textInputController.firstRectForCharacterRange(0, 0).
But it&apos;s not supported yet in WK2. There must be other unsupported textInputController functions used in these tests.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>482411</commentid>
    <comment_count>4</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2011-10-12 07:59:38 -0700</bug_when>
    <thetext>I skipped editing/inserting/caret-position.html in WK2 already. The other tests still have the problem described.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>482425</commentid>
    <comment_count>5</comment_count>
    <who name="Chang Shu">cshu</who>
    <bug_when>2011-10-12 08:36:58 -0700</bug_when>
    <thetext>I believe the failures are related to missing drag-n-drop support in WK2 EventSender.
https://bugs.webkit.org/show_bug.cgi?id=68552.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>482444</commentid>
    <comment_count>6</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2011-10-12 09:10:10 -0700</bug_when>
    <thetext>But not all those tests involve D&amp;D</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>482488</commentid>
    <comment_count>7</comment_count>
    <who name="Chang Shu">cshu</who>
    <bug_when>2011-10-12 10:12:49 -0700</bug_when>
    <thetext>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&amp;D and textInputController are two root causes I have identified so far.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>482491</commentid>
    <comment_count>8</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2011-10-12 10:26:59 -0700</bug_when>
    <thetext>D&amp;D and textInputController tests have already been skipped. These tests are using neither (but do rely on event sender).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>482499</commentid>
    <comment_count>9</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2011-10-12 10:35:03 -0700</bug_when>
    <thetext>(In reply to comment #7)
&gt; 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&amp;D and textInputController are two root causes I have identified so far.

caret-ltr-right and caret-rtl-right should be passing on WK2.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>482506</commentid>
    <comment_count>10</comment_count>
    <who name="Chang Shu">cshu</who>
    <bug_when>2011-10-12 10:41:14 -0700</bug_when>
    <thetext>(In reply to comment #8)
&gt; D&amp;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&amp;D:
        moveMouseToMiddleOfElement(document.getElementById(&apos;from&apos;));
        eventSender.mouseDown();

        eventSender.leapForward(200);

        moveMouseToMiddleOfElement(document.getElementById(&apos;to&apos;));
        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);
    }  
}</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>482508</commentid>
    <comment_count>11</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2011-10-12 10:43:07 -0700</bug_when>
    <thetext>Chang: please make a patch to disable the appropriate tests then.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>482512</commentid>
    <comment_count>12</comment_count>
    <who name="Chang Shu">cshu</who>
    <bug_when>2011-10-12 10:46:56 -0700</bug_when>
    <thetext>(In reply to comment #11)
&gt; Chang: please make a patch to disable the appropriate tests then.

No problem.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>482557</commentid>
    <comment_count>13</comment_count>
      <attachid>110712</attachid>
    <who name="Chang Shu">cshu</who>
    <bug_when>2011-10-12 11:31:10 -0700</bug_when>
    <thetext>Created attachment 110712
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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>482670</commentid>
    <comment_count>14</comment_count>
      <attachid>110712</attachid>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2011-10-12 13:50:32 -0700</bug_when>
    <thetext>Comment on attachment 110712
patch 1

Clearing flags on attachment: 110712

Committed r97297: &lt;http://trac.webkit.org/changeset/97297&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>482671</commentid>
    <comment_count>15</comment_count>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2011-10-12 13:50:37 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>482674</commentid>
    <comment_count>16</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2011-10-12 13:51:34 -0700</bug_when>
    <thetext>Reopen the bug because the patch didn&apos;t really fix the tests.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>579831</commentid>
    <comment_count>17</comment_count>
    <who name="Jessie Berlin">jberlin</who>
    <bug_when>2012-03-15 15:48:05 -0700</bug_when>
    <thetext>caret-ltr-right and caret-rtl-right are not passing in WK2:

http://build.webkit.org/results/Lion%20Intel%20Debug%20(WebKit2%20Tests)/r110889%20(4971)/editing/selection/caret-ltr-right-pretty-diff.html
http://build.webkit.org/results/Lion%20Intel%20Debug%20(WebKit2%20Tests)/r110889%20(4971)/editing/selection/caret-rtl-right-pretty-diff.html

Ryosuke, why did you think they should be passing?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>579865</commentid>
    <comment_count>18</comment_count>
    <who name="Jessie Berlin">jberlin</who>
    <bug_when>2012-03-15 16:22:25 -0700</bug_when>
    <thetext>Added failing expected results for mac-wk2 in http://trac.webkit.org/changeset/110906</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>110712</attachid>
            <date>2011-10-12 11:31:10 -0700</date>
            <delta_ts>2011-10-12 13:50:32 -0700</delta_ts>
            <desc>patch 1</desc>
            <filename>69889_1.patch</filename>
            <type>text/plain</type>
            <size>2984</size>
            <attacher name="Chang Shu">cshu</attacher>
            
              <data encoding="base64">SW5kZXg6IExheW91dFRlc3RzL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBMYXlvdXRUZXN0cy9D
aGFuZ2VMb2cJKHJldmlzaW9uIDk3Mjc2KQorKysgTGF5b3V0VGVzdHMvQ2hhbmdlTG9nCSh3b3Jr
aW5nIGNvcHkpCkBAIC0xLDMgKzEsMTUgQEAKKzIwMTEtMTAtMTIgIENoYW5nIFNodSAgPGNzaHVA
d2Via2l0Lm9yZz4KKworICAgICAgICBTZWxlY3Rpb24gaXMgbm90IGNvbGxhcHNlZCBpbiBzb21l
IFdLMiBlZGl0aW5nIHRlc3RzCisgICAgICAgIGh0dHBzOi8vYnVncy53ZWJraXQub3JnL3Nob3df
YnVnLmNnaT9pZD02OTg4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