<?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>94746</bug_id>
          
          <creation_ts>2012-08-22 13:47:39 -0700</creation_ts>
          <short_desc>decide what (and how) we should set the tolerance for ref test pixel compares and test for that</short_desc>
          <delta_ts>2012-08-30 13:22:17 -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>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>NRWT</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Dirk Pranke">dpranke</reporter>
          <assigned_to name="Dirk Pranke">dpranke</assigned_to>
          <cc>abarth</cc>
    
    <cc>eric</cc>
    
    <cc>ojan</cc>
    
    <cc>rniwa</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>tony</cc>
    
    <cc>webkit.review.bot</cc>
    
    <cc>zan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>702295</commentid>
    <comment_count>0</comment_count>
    <who name="Dirk Pranke">dpranke</who>
    <bug_when>2012-08-22 13:47:39 -0700</bug_when>
    <thetext>See comments in https://bugs.webkit.org/show_bug.cgi?id=94704 for background ... it&apos;s perhaps not clear if we should use the default tolerance the port specifies for pixel tests also for ref tests, or if ref tests should always require an exact match (tolerance == 0 or just hash compares), or if we should have a separate default-tolerance-for-ref-tests parameter.

Once we agree on this, we should make sure this is implemented and write a test to check the behavior (we don&apos;t have a test today).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>702299</commentid>
    <comment_count>1</comment_count>
    <who name="Ojan Vafai">ojan</who>
    <bug_when>2012-08-22 13:52:48 -0700</bug_when>
    <thetext>I don&apos;t see why we&apos;d ever want a tolerance other than 0 for reftests. The point of tolerance is to handle things like different text anti-aliasing across OS releases. None of these sort of things apply to reftests.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>702314</commentid>
    <comment_count>2</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2012-08-22 14:00:58 -0700</bug_when>
    <thetext>Yeah, it seems like we shouldn&apos;t need any tolerance for ref tests.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>702335</commentid>
    <comment_count>3</comment_count>
    <who name="Dirk Pranke">dpranke</who>
    <bug_when>2012-08-22 14:15:46 -0700</bug_when>
    <thetext>I don&apos;t have any real argument against using 0. Simon, anyone else from Apple, any objections?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>702386</commentid>
    <comment_count>4</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2012-08-22 14:56:48 -0700</bug_when>
    <thetext>No objection, but I wouldn&apos;t be surprised if some ref tests are &quot;close but not exact&quot; and fail with a zero tolerance. We&apos;ll have to try it and see.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>702389</commentid>
    <comment_count>5</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2012-08-22 14:59:27 -0700</bug_when>
    <thetext>I guess 1px rounding differences are common (e.g. inline-block vs. inline) in text rendering.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>702391</commentid>
    <comment_count>6</comment_count>
    <who name="Dirk Pranke">dpranke</who>
    <bug_when>2012-08-22 15:00:48 -0700</bug_when>
    <thetext>it would seem a bit odd to me to have reftests that attempt to render the same string of text two different ways and hope that they would be the same, but maybe I&apos;m not being creative enough. Do we have many of those?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>702394</commentid>
    <comment_count>7</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2012-08-22 15:03:32 -0700</bug_when>
    <thetext>(In reply to comment #6)
&gt; it would seem a bit odd to me to have reftests that attempt to render the same string of text two different ways and hope that they would be the same, but maybe I&apos;m not being creative enough. Do we have many of those?

I&apos;ve hit that when I was converting a test for bdi because inline-block and inline have a different semantics in UBA.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>708904</commentid>
    <comment_count>8</comment_count>
      <attachid>161534</attachid>
    <who name="Dirk Pranke">dpranke</who>
    <bug_when>2012-08-30 12:35:04 -0700</bug_when>
    <thetext>Created attachment 161534
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>708905</commentid>
    <comment_count>9</comment_count>
    <who name="Dirk Pranke">dpranke</who>
    <bug_when>2012-08-30 12:35:32 -0700</bug_when>
    <thetext>Looks like there&apos;s general consensus that we should require exact matches. I&apos;m adding an assertion to the test cases to enforce this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>708957</commentid>
    <comment_count>10</comment_count>
      <attachid>161534</attachid>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2012-08-30 13:22:13 -0700</bug_when>
    <thetext>Comment on attachment 161534
Patch

Clearing flags on attachment: 161534

Committed r127180: &lt;http://trac.webkit.org/changeset/127180&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>708958</commentid>
    <comment_count>11</comment_count>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2012-08-30 13:22:17 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>161534</attachid>
            <date>2012-08-30 12:35:04 -0700</date>
            <delta_ts>2012-08-30 13:22:13 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-94746-20120830123453.patch</filename>
            <type>text/plain</type>
            <size>1570</size>
            <attacher name="Dirk Pranke">dpranke</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMTI3MDU4CmRpZmYgLS1naXQgYS9Ub29scy9DaGFuZ2VMb2cg
Yi9Ub29scy9DaGFuZ2VMb2cKaW5kZXggNDljMGE3ZDNhZmZjNmE3NmYwMzkzNmE2Y2RjYzgzNjVj
ODYzZWE2Ny4uNTRjMWY0ZWNiMTk5YzlhMzMzZDg2MGU2YzdkZjZkYzA2NzU4OGMzZCAxMDA2NDQK
LS0tIGEvVG9vbHMvQ2hhbmdlTG9nCisrKyBiL1Rvb2xzL0NoYW5nZUxvZwpAQCAtMSwzICsxLDE2
IEBACisyMDEyLTA4LTMwICBEaXJrIFByYW5rZSAgPGRwcmFua2VAY2hyb21pdW0ub3JnPgorCisg
ICAgICAgIGRlY2lkZSB3aGF0IChhbmQgaG93KSB3ZSBzaG91bGQgc2V0IHRoZSB0b2xlcmFuY2Ug
Zm9yIHJlZiB0ZXN0IHBpeGVsIGNvbXBhcmVzIGFuZCB0ZXN0IGZvciB0aGF0CisgICAgICAgIGh0
dHBzOi8vYnVncy53ZWJraXQub3JnL3Nob3dfYnVnLmNnaT9pZD05NDc0NgorCisgICAgICAgIFJl
dmlld2VkIGJ5IE5PQk9EWSAoT09QUyEpLgorCisgICAgICAgIEFkZCBhbiBhc3NlcnRpb24gdG8g
ZGlmZl9pbWFnZSgpIHRvIGNoZWNrIHRoYXQgd2UgYXJlIHBhc3NpbmcKKyAgICAgICAgdG9sZXJh
bmNlPTAgZXhwbGljaXRseSB3aGVuIGRpZmZpbmcgcmVmIHRlc3QgcmVzdWx0cy4KKworICAgICAg
ICAqIFNjcmlwdHMvd2Via2l0cHkvbGF5b3V0X3Rlc3RzL3BvcnQvdGVzdC5weToKKyAgICAgICAg
KFRlc3RQb3J0LmRpZmZfaW1hZ2UpOgorCiAyMDEyLTA4LTI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