<?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>59188</bug_id>
          
          <creation_ts>2011-04-22 04:33:37 -0700</creation_ts>
          <short_desc>Reftests can not work on Mac build of WebKit.</short_desc>
          <delta_ts>2011-06-13 23:31:36 -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>PC</rep_platform>
          <op_sys>OS X 10.5</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>
          
          <blocked>36065</blocked>
    
    <blocked>58858</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Hayato Ito">hayato</reporter>
          <assigned_to name="Hayato Ito">hayato</assigned_to>
          <cc>dpranke</cc>
    
    <cc>hayato</cc>
    
    <cc>ojan</cc>
    
    <cc>webkit.review.bot</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>390707</commentid>
    <comment_count>0</comment_count>
    <who name="Hayato Ito">hayato</who>
    <bug_when>2011-04-22 04:33:37 -0700</bug_when>
    <thetext>Please see the following bug for the detail:
https://bugs.webkit.org/show_bug.cgi?id=58858

The issue comes from the different behavior between ChrominDriver and WebKitDriver which new-run-webkit-tests uses.
I&apos;ll update this entry with more details later.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>401737</commentid>
    <comment_count>1</comment_count>
    <who name="Hayato Ito">hayato</who>
    <bug_when>2011-05-10 20:51:29 -0700</bug_when>
    <thetext>Let me update the status.

It seems that WebKitDriver.run_test() returns &apos;None&apos; as an image_hash value when an actual image_hash matches the given driver input&apos;s image_hash.
Whereas, ChromiumDriver.run_test() returns an actual image_hash value as is when the actual image_hash matches the given driver input&apos;s image_hash.

I think that this different behavior doesn&apos;t cause any problems to existing pixel tests tests because existing pixel tests skips &apos;comparing images&apos; if an actual image_hash is &apos;None&apos;.

But reftests always try to compare image_hash values of both HTML files. That is the root cause.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>401740</commentid>
    <comment_count>2</comment_count>
    <who name="Hayato Ito">hayato</who>
    <bug_when>2011-05-10 21:05:09 -0700</bug_when>
    <thetext>I guess there are two ways to fix the issue:

A). Update WebKitDriver, maybe including a DumpRenderTree itself used by WebKitDriver, so that it returns an actual image_hash value even when image_hash_values matches.

B). Update reftests runner so that it can handle &apos;None&apos; value from WebKitDriver.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>401742</commentid>
    <comment_count>3</comment_count>
    <who name="Hayato Ito">hayato</who>
    <bug_when>2011-05-10 21:14:04 -0700</bug_when>
    <thetext>Hi Dirk, Ojan,

(In reply to comment #1)
&gt; Let me update the status.
&gt; 
&gt; It seems that WebKitDriver.run_test() returns &apos;None&apos; as an image_hash value when an actual image_hash matches the given driver input&apos;s image_hash.
&gt; Whereas, ChromiumDriver.run_test() returns an actual image_hash value as is when the actual image_hash matches the given driver input&apos;s image_hash.

Could you tell me that this difference between WebKitDriver and ChromiumDriver is an expected one?



(In reply to comment #2)
&gt; I guess there are two ways to fix the issue:
&gt; 
&gt; A). Update WebKitDriver, maybe including a DumpRenderTree itself used by WebKitDriver, so that it returns an actual image_hash value even when image_hash_values matches.
&gt; 
&gt; B). Update reftests runner so that it can handle &apos;None&apos; value from WebKitDriver.


If this different behavior is unexpected one, I&apos;d like to choose A) to fix the issue rather than B)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>401796</commentid>
    <comment_count>4</comment_count>
    <who name="Dirk Pranke">dpranke</who>
    <bug_when>2011-05-10 23:32:46 -0700</bug_when>
    <thetext>(In reply to comment #3)
&gt; Hi Dirk, Ojan,
&gt; 
&gt; (In reply to comment #1)
&gt; &gt; Let me update the status.
&gt; &gt; 
&gt; &gt; It seems that WebKitDriver.run_test() returns &apos;None&apos; as an image_hash value when an actual image_hash matches the given driver input&apos;s image_hash.
&gt; &gt; Whereas, ChromiumDriver.run_test() returns an actual image_hash value as is when the actual image_hash matches the given driver input&apos;s image_hash.
&gt; 
&gt; Could you tell me that this difference between WebKitDriver and ChromiumDriver is an expected one?
&gt; 

No, it&apos;s a bug. The Driver should always return an image hash if it got one from DRT. Feel free to upload a patch to fix this :)

Seems like pixel tests couldn&apos;t possibly work on the Mac port if this was true, but maybe there&apos;s something else at play as well. Then again, I haven&apos;t tried pixel tests on the Mac port in a long time.

- Dirk</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>401805</commentid>
    <comment_count>5</comment_count>
    <who name="Hayato Ito">hayato</who>
    <bug_when>2011-05-10 23:44:29 -0700</bug_when>
    <thetext>Thank you for the replay, Dirk.

Okay. I&apos;ll take a look further. I suspect DumpRenderTree itself doesn&apos;t return image_hash on Mac Port.

(In reply to comment #4)
&gt; (In reply to comment #3)
&gt; &gt; Hi Dirk, Ojan,
&gt; &gt; 
&gt; &gt; (In reply to comment #1)
&gt; &gt; &gt; Let me update the status.
&gt; &gt; &gt; 
&gt; &gt; &gt; It seems that WebKitDriver.run_test() returns &apos;None&apos; as an image_hash value when an actual image_hash matches the given driver input&apos;s image_hash.
&gt; &gt; &gt; Whereas, ChromiumDriver.run_test() returns an actual image_hash value as is when the actual image_hash matches the given driver input&apos;s image_hash.
&gt; &gt; 
&gt; &gt; Could you tell me that this difference between WebKitDriver and ChromiumDriver is an expected one?
&gt; &gt; 
&gt; 
&gt; No, it&apos;s a bug. The Driver should always return an image hash if it got one from DRT. Feel free to upload a patch to fix this :)
&gt; 
&gt; Seems like pixel tests couldn&apos;t possibly work on the Mac port if this was true, but maybe there&apos;s something else at play as well. Then again, I haven&apos;t tried pixel tests on the Mac port in a long time.
&gt; 
&gt; - Dirk</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>402049</commentid>
    <comment_count>6</comment_count>
    <who name="Dirk Pranke">dpranke</who>
    <bug_when>2011-05-11 09:39:16 -0700</bug_when>
    <thetext>(In reply to comment #5)
&gt; Thank you for the replay, Dirk.
&gt; 
&gt; Okay. I&apos;ll take a look further. I suspect DumpRenderTree itself doesn&apos;t return image_hash on Mac Port.
&gt; 

If it doesn&apos;t, you can always return the value that is passed in. Note that you don&apos;t (and shouldn&apos;t) need to return a value if you are not doing pixel tests (and I don&apos;t think one is even passed in in that case).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>417936</commentid>
    <comment_count>7</comment_count>
      <attachid>96568</attachid>
    <who name="Hayato Ito">hayato</who>
    <bug_when>2011-06-09 03:31:22 -0700</bug_when>
    <thetext>Created attachment 96568
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>418302</commentid>
    <comment_count>8</comment_count>
      <attachid>96568</attachid>
    <who name="Ojan Vafai">ojan</who>
    <bug_when>2011-06-09 14:28:12 -0700</bug_when>
    <thetext>Comment on attachment 96568
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=96568&amp;action=review

&gt; Tools/ChangeLog:12
&gt; +        No tests since I&apos;ll add sample reftests to make sure mismatch reftests work later,
&gt; +        which should be in a separate patch.

I&apos;d actually prefer putting the sample reftests in this patch, but a separate patch is fine too.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>420239</commentid>
    <comment_count>9</comment_count>
      <attachid>96568</attachid>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2011-06-13 23:31:31 -0700</bug_when>
    <thetext>Comment on attachment 96568
Patch

Clearing flags on attachment: 96568

Committed r88780: &lt;http://trac.webkit.org/changeset/88780&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>420240</commentid>
    <comment_count>10</comment_count>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2011-06-13 23:31:36 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>96568</attachid>
            <date>2011-06-09 03:31:22 -0700</date>
            <delta_ts>2011-06-13 23:31:31 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-59188-20110609193120.patch</filename>
            <type>text/plain</type>
            <size>1724</size>
            <attacher name="Hayato Ito">hayato</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogODc5NzkKZGlmZiAtLWdpdCBhL1Rvb2xzL0NoYW5nZUxvZyBi
L1Rvb2xzL0NoYW5nZUxvZwppbmRleCA2YzNjZjViZmY1ZTQ2MjllY2QzY2I3MDI1NWZhMTdkZThl
MDFlZDYwLi4zOWYxNzIwYjllYmMxYzdkNmE0MjhkYmJkZWFlM2RhNjNmMzZkZGRiIDEwMDY0NAot
LS0gYS9Ub29scy9DaGFuZ2VMb2cKKysrIGIvVG9vbHMvQ2hhbmdlTG9nCkBAIC0xLDMgKzEsMTgg
QEAKKzIwMTEtMDYtMDkgIEhheWF0byBJdG8gIDxoYXlhdG9AY2hyb21pdW0ub3JnPgorCisgICAg
ICAgIFJldmlld2VkIGJ5IE5PQk9EWSAoT09QUyEpLgorCisgICAgICAgIFtOUldUXSBGaXggYSBX
ZWJLaXREcml2ZXIgc28gdGhhdCBpdCByZXR1cm5zIGFuIGFjdHVhbCBoYXNoIHZhbHVlIGlmIERS
VCByZXR1cm5zIHRoYXQuCisgICAgICAgIGh0dHBzOi8vYnVncy53ZWJraXQub3JnL3Nob3dfYnVn
LmNnaT9pZD01OTE4OAorCisgICAgICAgIEEgY3VycmVudCBXZWJLaXREcml2ZXIgZG9lc24ndCB0
cnkgdG8gcmV0dXJuIGFuIGFjdHVhbCBoYXNoI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iBibG9jay5jb250ZW50IGFuZCBibG9j
ay5jb250ZW50X3R5cGUgPT0gJ2ltYWdlL3BuZyc6CiAgICAgICAgICAgICAgICAgaW1hZ2UgPSBi
bG9jay5kZWNvZGVkX2NvbnRlbnQKICAgICAgICAgICAgICAgICBhY3R1YWxfaW1hZ2VfaGFzaCA9
IGJsb2NrLmNvbnRlbnRfaGFzaAorICAgICAgICAgICAgZWxpZiBibG9jay5jb250ZW50X2hhc2g6
CisgICAgICAgICAgICAgICAgYWN0dWFsX2ltYWdlX2hhc2ggPSBibG9jay5jb250ZW50X2hhc2gK
IAogICAgICAgICBlcnJvcl9saW5lcyA9IHNlbGYuX3NlcnZlcl9wcm9jZXNzLmVycm9yLnNwbGl0
bGluZXMoKQogICAgICAgICAjIEZJWE1FOiBUaGlzIGlzIGEgaGFjay4gIEl0IGlzIHVuY2xlYXIg
d2h5IHNvbWV0aW1lcwo=
</data>

          </attachment>
      

    </bug>

</bugzilla>