<?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>95098</bug_id>
          
          <creation_ts>2012-08-27 10:11:13 -0700</creation_ts>
          <short_desc>[Chromium] DRT does not support --dump-all-pixels flag</short_desc>
          <delta_ts>2012-09-20 08:57:16 -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></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Stephen Chenney">schenney</reporter>
          <assigned_to name="Stephen Chenney">schenney</assigned_to>
          <cc>dpranke</cc>
    
    <cc>eric</cc>
    
    <cc>kbalazs</cc>
    
    <cc>rniwa</cc>
    
    <cc>tony</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>705355</commentid>
    <comment_count>0</comment_count>
    <who name="Stephen Chenney">schenney</who>
    <bug_when>2012-08-27 10:11:13 -0700</bug_when>
    <thetext>I&apos;m trying to debug a paint crash using DumpRenderTree in a debugger with a simple command line for debugging:
DumpRenderTree --no-timeout --dump-all-pixels [testname]

But no pixel tests are dumped so no crash. It turns out we don&apos;t support --dump-all-pixels so the only way to get pixel results inside the debugger is to run DRT in server mode and provide a file with the filename and the -p flag.

I suspect I&apos;m missing something, but in any event I will shortly put up a patch with DRT updated to handle --dump-all-pixels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>705369</commentid>
    <comment_count>1</comment_count>
      <attachid>160744</attachid>
    <who name="Stephen Chenney">schenney</who>
    <bug_when>2012-08-27 10:17:42 -0700</bug_when>
    <thetext>Created attachment 160744
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>705561</commentid>
    <comment_count>2</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2012-08-27 13:12:12 -0700</bug_when>
    <thetext>I&apos;m not sure what --dump-all-pixels does. :)  Was this a test_shell thing which was failed to port forward?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>705580</commentid>
    <comment_count>3</comment_count>
    <who name="Stephen Chenney">schenney</who>
    <bug_when>2012-08-27 13:20:13 -0700</bug_when>
    <thetext>The --dump-all-pixels argument was added by Darin Adler way back in 2006:

http://trac.webkit.org/changeset/13611

The comment on the ChangeLog says:

DumpRenderTree/DumpRenderTree.m:
(main): Added a new --dump-all-pixels option, used when forcing run-webkit-tests
to generate new output for all tests it runs.
(dump): Dump the scroll position if it&apos;s non-zero. Always dump the image when
the --dump-all-pixels option is passed. Also tightened up the image dumping
code and replaced the incorrect use of +[NSGraphicsContext saveGraphicsState]
with code to save and restore the context.

So I think my interpretation is correct: &quot;Always dump the image when
the --dump-all-pixels option is passed.&quot;

It wasn&apos;t needed previously because we supported --pixel-tests as an argument to DRT, but that was removed in http://trac.webkit.org/changeset/124581.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>706619</commentid>
    <comment_count>4</comment_count>
    <who name="Dirk Pranke">dpranke</who>
    <bug_when>2012-08-28 12:33:20 -0700</bug_when>
    <thetext>If all you&apos;re trying to do is run a single test, then DumpREnderTree --no-timeout testname&apos;-p should work. (Note the single quote which separates the test name from the -p parameter.

That said, the change sounds fine to me. So, with this change this would work the same way across all of the DRT implementations?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>706647</commentid>
    <comment_count>5</comment_count>
    <who name="Stephen Chenney">schenney</who>
    <bug_when>2012-08-28 12:49:21 -0700</bug_when>
    <thetext>The single quote was the trick I was missing, but at the same time I think it&apos;s much simpler for all if we support --dump-all-pixels.

I too would like to know: What do the other ports do with this parameter?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>708565</commentid>
    <comment_count>6</comment_count>
    <who name="Balazs Kelemen">kbalazs</who>
    <bug_when>2012-08-30 06:36:08 -0700</bug_when>
    <thetext>(In reply to comment #5)
&gt; The single quote was the trick I was missing, but at the same time I think it&apos;s much simpler for all if we support --dump-all-pixels.
&gt; 
&gt; I too would like to know: What do the other ports do with this parameter?

Do other ports have such a parameter now? I don&apos;t think so. I think it&apos;s fine to add this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>708572</commentid>
    <comment_count>7</comment_count>
    <who name="Stephen Chenney">schenney</who>
    <bug_when>2012-08-30 06:50:06 -0700</bug_when>
    <thetext>I should have done this sooner: A search for dump-all-pixels finds support only in the win port and now Chromium. It was originally added for the mac port, presumably, then picked up in the win port, which Chromium picked up the parameter name from, then removed (presumably) from the mac port at some point.

On the one hand, I find dump-all-pixels much simpler for debugging DRT and one-off testing outside of run-webkit-tests and new-run-webkit-tests. On the other hand, if it&apos;s not in other ports I tend to think we should remove it everywhere.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>708577</commentid>
    <comment_count>8</comment_count>
    <who name="Balazs Kelemen">kbalazs</who>
    <bug_when>2012-08-30 06:52:17 -0700</bug_when>
    <thetext>(In reply to comment #7)
&gt; On the one hand, I find dump-all-pixels much simpler for debugging DRT and one-off testing outside of run-webkit-tests and new-run-webkit-tests. On the other hand, if it&apos;s not in other ports I tend to think we should remove it everywhere.

I think we should add it to everywhere. :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>720771</commentid>
    <comment_count>9</comment_count>
    <who name="Stephen Chenney">schenney</who>
    <bug_when>2012-09-14 08:03:33 -0700</bug_when>
    <thetext>Bump. Do you want me to implement this on every platform, or are you fine with checking it in for chromium and leaving it to the other platforms to do as they will?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>720962</commentid>
    <comment_count>10</comment_count>
      <attachid>160744</attachid>
    <who name="Dirk Pranke">dpranke</who>
    <bug_when>2012-09-14 11:13:51 -0700</bug_when>
    <thetext>Comment on attachment 160744
Patch

I think the patch looks fine (ish).  However, I think it&apos;d be better if we just went back to supporting -p/--pixel-tests for this, rather than using --dump-all-pixels (at least that would be consistent with the per-test flag).

While I think we should implement this on all the ports, we don&apos;t need to do it in this patch (and while it would be nice of you to implement it everywhere, I don&apos;t think we need to require that). r+ w/ these changes; if you disagree, let me know.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>721004</commentid>
    <comment_count>11</comment_count>
    <who name="Stephen Chenney">schenney</who>
    <bug_when>2012-09-14 12:00:07 -0700</bug_when>
    <thetext>(In reply to comment #10)
&gt; (From update of attachment 160744 [details])
&gt; I think the patch looks fine (ish).  However, I think it&apos;d be better if we just went back to supporting -p/--pixel-tests for this, rather than using --dump-all-pixels (at least that would be consistent with the per-test flag).
&gt; 
&gt; While I think we should implement this on all the ports, we don&apos;t need to do it in this patch (and while it would be nice of you to implement it everywhere, I don&apos;t think we need to require that). r+ w/ these changes; if you disagree, let me know.

What are &quot;these changes&quot; in this context? Did some review comments not get published? Do you mean re-adding -p/--pixel-test?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>721014</commentid>
    <comment_count>12</comment_count>
    <who name="Dirk Pranke">dpranke</who>
    <bug_when>2012-09-14 12:08:11 -0700</bug_when>
    <thetext>Sorry, I meant change --dump-all-pixels to --pixel-tests and add -p as shorthand.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>724553</commentid>
    <comment_count>13</comment_count>
    <who name="Stephen Chenney">schenney</who>
    <bug_when>2012-09-20 08:57:16 -0700</bug_when>
    <thetext>Committed r129139: &lt;http://trac.webkit.org/changeset/129139&gt;</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>160744</attachid>
            <date>2012-08-27 10:17:42 -0700</date>
            <delta_ts>2012-09-14 11:13:51 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-95098-20120827131734.patch</filename>
            <type>text/plain</type>
            <size>3654</size>
            <attacher name="Stephen Chenney">schenney</attacher>
            
              <data encoding="base64">SW5kZXg6IFRvb2xzL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBUb29scy9DaGFuZ2VMb2cJKHJl
dmlzaW9uIDEyNjc3MykKKysrIFRvb2xzL0NoYW5nZUxvZwkod29ya2luZyBjb3B5KQpAQCAtMSwz
ICsxLDE5IEBACisyMDEyLTA4LTI3ICBTdGVwaGVuIENoZW5uZXkgIDxzY2hlbm5leUBjaHJvbWl1
bS5vcmc+CisKKyAgICAgICAgW0Nocm9taXVtXSBEUlQgZG9lcyBub3Qgc3VwcG9ydCAtLWR1bXAt
YWxsLXBpeGVscyBmbGFnCisgICAgICAgIGh0dHBzOi8vYnVncy53ZWJraXQub3JnL3Nob3dfYnVn
LmNnaT9pZD05NTA5OAorCisgICAgICAgIFJldmlld2VkIGJ5IE5PQk9EWSAoT09QUyEpLgorCisg
ICAgICAgIEFkZCBzdXBwb3J0IGZvciB0aGUgLS1kdW1wLWFsbC1waXhlbHMgb3B0aW9uIGluIENo
cm9taXVtIER1bXBSZW5kZXJUcmVlLiBVc2UKKyAgICAgICAgb2YgdGhpcyBmbGFnIGNhdXNlcyBw
aXhlbHMgcmVzdWx0cyB0byBiZSBjcmVhdGVkIGZvciBhbGwgdGVzdHMsIHJlZ2FyZGxlc3Mgb2YK
KyAgICAgICAgaW5kaXZpZHVhbCB0ZXN0IG9wdGlvbnMuIElmIGFuIGluZGl2aWR1YWwgdGVzdCBw
cHJvdmlkZXMgYSBwaXhlbCBoYXNoIGl0IHdpbGxiZSB1c2Vk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mxlLgogICAgICAgICAgICAgICAgIGlmICghc3RyY21wKHRlc3RTdHJpbmcsICJR
VUlUIikpCiAgICAgICAgICAgICAgICAgICAgIGJyZWFrOwotICAgICAgICAgICAgICAgIHJ1blRl
c3Qoc2hlbGwsIHBhcmFtcywgdGVzdFN0cmluZyk7CisgICAgICAgICAgICAgICAgcnVuVGVzdChz
aGVsbCwgcGFyYW1zLCB0ZXN0U3RyaW5nLCBkdW1wQWxsUGl4ZWxzKTsKICAgICAgICAgICAgIH0K
ICAgICAgICAgfSBlbHNlIGlmICghdGVzdHMuc2l6ZSgpKQogICAgICAgICAgICAgcHV0cygiI0VP
RiIpOwogICAgICAgICBlbHNlIHsKICAgICAgICAgICAgIHBhcmFtcy5wcmludFNlcGFyYXRvcnMg
PSB0ZXN0cy5zaXplKCkgPiAxOwogICAgICAgICAgICAgZm9yICh1bnNpZ25lZCBpID0gMDsgaSA8
IHRlc3RzLnNpemUoKTsgaSsrKQotICAgICAgICAgICAgICAgIHJ1blRlc3Qoc2hlbGwsIHBhcmFt
cywgdGVzdHNbaV0pOworICAgICAgICAgICAgICAgIHJ1blRlc3Qoc2hlbGwsIHBhcmFtcywgdGVz
dHNbaV0sIGR1bXBBbGxQaXhlbHMpOwogICAgICAgICB9CiAKICAgICAgICAgc2hlbGwuY2FsbEpT
R0MoKTsK
</data>
<flag name="review"
          id="171359"
          type_id="1"
          status="+"
          setter="dpranke"
    />
          </attachment>
      

    </bug>

</bugzilla>