<?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>68904</bug_id>
          
          <creation_ts>2011-09-27 08:27:40 -0700</creation_ts>
          <short_desc>watchlist: Move boilerplate diff to .patch file or something similar.</short_desc>
          <delta_ts>2011-09-27 22:55:33 -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>All</rep_platform>
          <op_sys>All</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>68871</dependson>
          <blocked>68822</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="David Levin">levin</reporter>
          <assigned_to name="David Levin">levin</assigned_to>
          <cc>abarth</cc>
    
    <cc>eric</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>473942</commentid>
    <comment_count>0</comment_count>
    <who name="David Levin">levin</who>
    <bug_when>2011-09-27 08:27:40 -0700</bug_when>
    <thetext>See https://bugs.webkit.org/show_bug.cgi?id=68871#c3.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>474407</commentid>
    <comment_count>1</comment_count>
    <who name="David Levin">levin</who>
    <bug_when>2011-09-27 17:53:26 -0700</bug_when>
    <thetext>I&apos;m willing to do whatever changes are needed here and I think they are simple but I&apos;m at a loss for what change should be done.

Here&apos;s a sketch of an idea:

1. Create Tools/Scripts/webkitpy/common/data/test.patch and put the patch in there.
2. Create Tools/Scripts/webkitpy/common/data/test_data.py to supply functions to return test data.
  Initially it would have one function: get_test_patch()
  which would load test.patch and return it as a string and cache the result for future callers.
 
I&apos;ll change all the current instances which use the string directly to call get_test_patch. (I&apos;m not sure if this is a good name. I started with &quot;test_patch&quot; but that sounds like it is testing a patch.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>474480</commentid>
    <comment_count>2</comment_count>
    <who name="Adam Barth">abarth</who>
    <bug_when>2011-09-27 21:31:41 -0700</bug_when>
    <thetext>I&apos;m not sure I understand what problem you&apos;re trying to solve.  Are you trying to write a test?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>474494</commentid>
    <comment_count>3</comment_count>
    <who name="David Levin">levin</who>
    <bug_when>2011-09-27 22:14:54 -0700</bug_when>
    <thetext>(In reply to comment #2)
&gt; I&apos;m not sure I understand what problem you&apos;re trying to solve.  Are you trying to write a test?

For this change https://bugs.webkit.org/attachment.cgi?id=108792&amp;action=prettypatch, Eric suggested &quot;Hm... OK.  We could also just store this as a .patch file in some new fixtures directory or similar.&quot;

I checked it in so I could use that in my tests (which I have already done).

I filed this bug as a follow up to his comment. I&apos;m trying to workout what that follow up looks like which is my comment was about. (I&apos;m also fine with not doing anything else on this.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>474497</commentid>
    <comment_count>4</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2011-09-27 22:27:18 -0700</bug_when>
    <thetext>I&apos;m really not worried.  You should do what you feel is best.  No need to spend any serious time on this, just follow your vision. :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>474514</commentid>
    <comment_count>5</comment_count>
    <who name="David Levin">levin</who>
    <bug_when>2011-09-27 22:55:33 -0700</bug_when>
    <thetext>Ok maybe some times later if inspiration strikes.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>