<?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>24869</bug_id>
          
          <creation_ts>2009-03-26 19:19:55 -0700</creation_ts>
          <short_desc>[Qt] tst_qwebpage.cpp has an incorrect case</short_desc>
          <delta_ts>2009-03-27 05:59:55 -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>WebKit Qt</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Erik L. Bunce">elbunce</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>hausmann</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>115471</commentid>
    <comment_count>0</comment_count>
    <who name="Erik L. Bunce">elbunce</who>
    <bug_when>2009-03-26 19:19:55 -0700</bug_when>
    <thetext>When running tst_qwebpage I get the following failure:
FAIL!  : tst_QWebPage::cursorMovements() Compared values are not the same
   Actual (page-&gt;selectionStartOffset()): 0
   Expected (2): 2
   Loc: [/Users/erik/work/webkit-svn2/WebKit/qt/tests/qwebpage/tst_qwebpage.cpp(835)]

After analyzing the code, it turns out that the Expected value in the test was incorrect and not the Actual.

In this case the cursor is expected to be before the word &quot;be&quot;, which occurs immediately after a &lt;br/&gt;, so the selectionStartOffset() should be 0, and not 2.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>115472</commentid>
    <comment_count>1</comment_count>
      <attachid>28999</attachid>
    <who name="Erik L. Bunce">elbunce</who>
    <bug_when>2009-03-26 19:26:41 -0700</bug_when>
    <thetext>Created attachment 28999
Fix to make the expected value 0 and not 2

Fix split out of patch 28829 of bug #24746 per request of Simon Hausmann.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>115525</commentid>
    <comment_count>2</comment_count>
      <attachid>28999</attachid>
    <who name="Simon Hausmann">hausmann</who>
    <bug_when>2009-03-27 05:59:41 -0700</bug_when>
    <thetext>Comment on attachment 28999
Fix to make the expected value 0 and not 2

Good catch.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>115527</commentid>
    <comment_count>3</comment_count>
    <who name="Simon Hausmann">hausmann</who>
    <bug_when>2009-03-27 05:59:55 -0700</bug_when>
    <thetext>Landed in r42035</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>28999</attachid>
            <date>2009-03-26 19:26:41 -0700</date>
            <delta_ts>2009-03-27 05:59:41 -0700</delta_ts>
            <desc>Fix to make the expected value 0 and not 2</desc>
            <filename>tst_qwebpage_case.patch</filename>
            <type>text/plain</type>
            <size>1164</size>
            <attacher name="Erik L. Bunce">elbunce</attacher>
            
              <data encoding="base64">SW5kZXg6IFdlYktpdC9xdC9DaGFuZ2VMb2cKPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQotLS0gV2ViS2l0L3F0L0NoYW5n
ZUxvZwkocmV2aXNpb24gNDIwMjUpCisrKyBXZWJLaXQvcXQvQ2hhbmdlTG9nCSh3b3JraW5nIGNv
cHkpCkBAIC0xLDMgKzEsMTIgQEAKKzIwMDktMDMtMjYgIEVyaWsgTC4gQnVuY2UgIDxlbGJ1bmNl
QHhlbmRvbS5jb20+CisKKyAgICAgICAgUmV2aWV3ZWQ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CiAKICAgICAvLyBjdXJzb3Igd2ls
bCBiZSBhZnRlciB0aGUgd29yZCAieW91ISIKICAgICBwYWdlLT50cmlnZ2VyQWN0aW9uKFFXZWJQ
YWdlOjpNb3ZlVG9FbmRPZkJsb2NrKTsK
</data>
<flag name="review"
          id="14355"
          type_id="1"
          status="+"
          setter="hausmann"
    />
          </attachment>
      

    </bug>

</bugzilla>