<?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>58858</bug_id>
          
          <creation_ts>2011-04-18 18:48:26 -0700</creation_ts>
          <short_desc>reftest mismatch doesn&apos;t work</short_desc>
          <delta_ts>2011-08-15 04:19:12 -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>WONTFIX</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>
          <dependson>59188</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ojan Vafai">ojan</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>dimich</cc>
    
    <cc>dpranke</cc>
    
    <cc>hayato</cc>
    
    <cc>ojan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>388205</commentid>
    <comment_count>0</comment_count>
    <who name="Ojan Vafai">ojan</who>
    <bug_when>2011-04-18 18:48:26 -0700</bug_when>
    <thetext>I&apos;m probably just doing it wrong, but I couldn&apos;t fine any sample expected mismatch reftests to compare to. I made foo.html and foo-expected-mismatch.html and made their contents identical (just &quot;asdf&quot;). The test passed, but should have failed, right?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>388212</commentid>
    <comment_count>1</comment_count>
    <who name="Dirk Pranke">dpranke</who>
    <bug_when>2011-04-18 18:59:00 -0700</bug_when>
    <thetext>reftests only apply to the image part of the test, not the text part.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>388214</commentid>
    <comment_count>2</comment_count>
    <who name="Dirk Pranke">dpranke</who>
    <bug_when>2011-04-18 18:59:55 -0700</bug_when>
    <thetext>there are (artificial) samples in webkitpy.layout_tests.port/test.py that you can play with via new-run-webkit-tests --platform test, if that&apos;s helpful. Of course, they don&apos;t generate real output, so it probably isn&apos;t for what you&apos;re trying to do.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>388218</commentid>
    <comment_count>3</comment_count>
    <who name="Ojan Vafai">ojan</who>
    <bug_when>2011-04-18 19:04:57 -0700</bug_when>
    <thetext>(In reply to comment #1)
&gt; reftests only apply to the image part of the test, not the text part.

But still, the test should pass, right? I was running with -p.

(In reply to comment #2)
&gt; there are (artificial) samples in webkitpy.layout_tests.port/test.py that you can play with via new-run-webkit-tests --platform test, if that&apos;s helpful. Of course, they don&apos;t generate real output, so it probably isn&apos;t for what you&apos;re trying to do.

I&apos;ll take a look.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>388244</commentid>
    <comment_count>4</comment_count>
    <who name="Dirk Pranke">dpranke</who>
    <bug_when>2011-04-18 19:35:00 -0700</bug_when>
    <thetext>(In reply to comment #3)
&gt; (In reply to comment #1)
&gt; &gt; reftests only apply to the image part of the test, not the text part.
&gt; 
&gt; But still, the test should pass, right? I was running with -p.
&gt; 

Oh, I see, I read that as you had made the text output the same. Sorry. Yes, I would expect such a test to fail.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>388249</commentid>
    <comment_count>5</comment_count>
    <who name="Hayato Ito">hayato</who>
    <bug_when>2011-04-18 19:56:31 -0700</bug_when>
    <thetext>I&apos;ll take a look.

There is no sample &apos;real&apos; mismatch reftests in LayoutTest directory. So I might miss something.
I&apos;ll try to submit a sample mismatch reftest, expecting to find a issue.

(In reply to comment #4)
&gt; (In reply to comment #3)
&gt; &gt; (In reply to comment #1)
&gt; &gt; &gt; reftests only apply to the image part of the test, not the text part.
&gt; &gt; 
&gt; &gt; But still, the test should pass, right? I was running with -p.
&gt; &gt; 
&gt; 
&gt; Oh, I see, I read that as you had made the text output the same. Sorry. Yes, I would expect such a test to fail.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>388290</commentid>
    <comment_count>6</comment_count>
      <attachid>90142</attachid>
    <who name="Hayato Ito">hayato</who>
    <bug_when>2011-04-18 21:42:22 -0700</bug_when>
    <thetext>Created attachment 90142
add-sample-reftests</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>388291</commentid>
    <comment_count>7</comment_count>
    <who name="Hayato Ito">hayato</who>
    <bug_when>2011-04-18 21:45:42 -0700</bug_when>
    <thetext>I posted a patch which adds two sample reftests to the fast/harness directory.
It seems a mismatch-reftest works correctly on my environment. I cannot reproduce the wrong behavior. Hmm.

It would be great if you could help finding an issue about mismatch reftests.

(In reply to comment #6)
&gt; Created an attachment (id=90142) [details]
&gt; add-sample-reftests</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>389400</commentid>
    <comment_count>8</comment_count>
      <attachid>90142</attachid>
    <who name="Dmitry Titov">dimich</who>
    <bug_when>2011-04-20 11:54:34 -0700</bug_when>
    <thetext>Comment on attachment 90142
add-sample-reftests

When I aply this patch and run:

build-webkit
new-run-webkit-tests LayoutTests/fast/harness/

I get:

Regressions: Unexpected image mismatch : (2)
  fast/harness/sample-fail-mismatch-reftest.html = IMAGE
  fast/harness/sample-mismatch-reftest.html = IMAGE

The images are similar for first test and different for the second, but they both fail due to image mismatch.
Note this is not a Chromium DRT, it&apos;s the regular mac build of WebKit.

I would expect only one of those to fail, and also it would be nice to add the &apos;expected to fail&apos; test to other platform&apos;s test_expectations.txt file.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>389844</commentid>
    <comment_count>9</comment_count>
    <who name="Hayato Ito">hayato</who>
    <bug_when>2011-04-20 22:06:04 -0700</bug_when>
    <thetext>Hi Dmitry,

Thank you for testing that. I can reproduce that on mac build of WebKit. I&apos;ll take a look further. Sorry for the inconvenience.

(In reply to comment #8)
&gt; (From update of attachment 90142 [details])
&gt; When I aply this patch and run:
&gt; 
&gt; build-webkit
&gt; new-run-webkit-tests LayoutTests/fast/harness/
&gt; 
&gt; I get:
&gt; 
&gt; Regressions: Unexpected image mismatch : (2)
&gt;   fast/harness/sample-fail-mismatch-reftest.html = IMAGE
&gt;   fast/harness/sample-mismatch-reftest.html = IMAGE
&gt; 
&gt; The images are similar for first test and different for the second, but they both fail due to image mismatch.
&gt; Note this is not a Chromium DRT, it&apos;s the regular mac build of WebKit.
&gt; 
&gt; I would expect only one of those to fail, and also it would be nice to add the &apos;expected to fail&apos; test to other platform&apos;s test_expectations.txt file.

(In reply to comment #8)
&gt; (From update of attachment 90142 [details])
&gt; When I aply this patch and run:
&gt; 
&gt; build-webkit
&gt; new-run-webkit-tests LayoutTests/fast/harness/
&gt; 
&gt; I get:
&gt; 
&gt; Regressions: Unexpected image mismatch : (2)
&gt;   fast/harness/sample-fail-mismatch-reftest.html = IMAGE
&gt;   fast/harness/sample-mismatch-reftest.html = IMAGE
&gt; 
&gt; The images are similar for first test and different for the second, but they both fail due to image mismatch.
&gt; Note this is not a Chromium DRT, it&apos;s the regular mac build of WebKit.
&gt; 
&gt; I would expect only one of those to fail, and also it would be nice to add the &apos;expected to fail&apos; test to other platform&apos;s test_expectations.txt file.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>389868</commentid>
    <comment_count>10</comment_count>
    <who name="Hayato Ito">hayato</who>
    <bug_when>2011-04-20 23:29:49 -0700</bug_when>
    <thetext>Let me note what I figured out:
- WebKitPort, which is used in new-run-webkit-tests, is trying to disable &apos;pixel_tests&apos; in default.
- We should skip reftests if pixel_tests is disabled.
- Even if &apos;--pixel-tests&apos; in turned on explicitly on WebKitPort,  there is a difference between ChromiumLinuxDriver and WebKitDriver about how to handle &apos;image_hash&apos; value. Such a different behavior makes a correct reftests fail on Mac build of WebKit.

I&apos;ll file bugs for each.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>390708</commentid>
    <comment_count>11</comment_count>
    <who name="Hayato Ito">hayato</who>
    <bug_when>2011-04-22 04:35:37 -0700</bug_when>
    <thetext>I filed the two bugs:
 - https://bugs.webkit.org/show_bug.cgi?id=59078
 - https://bugs.webkit.org/show_bug.cgi?id=59188</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>417937</commentid>
    <comment_count>12</comment_count>
    <who name="Hayato Ito">hayato</who>
    <bug_when>2011-06-09 03:37:40 -0700</bug_when>
    <thetext>I posted a patch to fix a WebKitDriver so that reftests work in bug 59188.
After the patch in bug 59188 is landed, I am going to add these sample reftests too.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>420257</commentid>
    <comment_count>13</comment_count>
    <who name="Hayato Ito">hayato</who>
    <bug_when>2011-06-14 00:24:22 -0700</bug_when>
    <thetext>Bug 59188 was landed. I&apos;d like to commit these sample mismatch reftests to detect a regression.
Should I rename the subject of this bugzilla entry or create a new bug for these sample tests?

(In reply to comment #12)
&gt; I posted a patch to fix a WebKitDriver so that reftests work in bug 59188.
&gt; After the patch in bug 59188 is landed, I am going to add these sample reftests too.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>451029</commentid>
    <comment_count>14</comment_count>
    <who name="Hayato Ito">hayato</who>
    <bug_when>2011-08-15 04:18:42 -0700</bug_when>
    <thetext>It might be better to close this bug. A mismatch refrests should work on all platfoms after fixing bug 59188.

I&apos;ll file a separate bug for adding sample mismatch reftests.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>90142</attachid>
            <date>2011-04-18 21:42:22 -0700</date>
            <delta_ts>2011-08-15 04:19:12 -0700</delta_ts>
            <desc>add-sample-reftests</desc>
            <filename>bug-58858-20110419134220.patch</filename>
            <type>text/plain</type>
            <size>3578</size>
            <attacher name="Hayato Ito">hayato</attacher>
            
              <data encoding="base64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