Changeset 85657 in webkit


Ignore:
Timestamp:
May 3, 2011 1:57:14 PM (13 years ago)
Author:
caio.oliveira@openbossa.org
Message:

2011-05-03 Caio Marcelo de Oliveira Filho <caio.oliveira@openbossa.org>

Reviewed by Adam Roben.

Add tests to PrettyPatch
https://bugs.webkit.org/show_bug.cgi?id=57298

Verify that 'prettify' parse the right number of files and parts
(add/remove/shared) by checking a set of patches available in
bugs.webkit.org.

  • PrettyPatch/PrettyPatch.rb: exported a couple a globals with statistics information for our test script.
  • PrettyPatch/PrettyPatch_test.rb: Added.
Location:
trunk/Websites/bugs.webkit.org
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Websites/bugs.webkit.org/ChangeLog

    r84645 r85657  
     12011-05-03  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
     2
     3        Reviewed by Adam Roben.
     4
     5        Add tests to PrettyPatch
     6        https://bugs.webkit.org/show_bug.cgi?id=57298
     7
     8        Verify that 'prettify' parse the right number of files and parts
     9        (add/remove/shared) by checking a set of patches available in
     10        bugs.webkit.org.
     11
     12        * PrettyPatch/PrettyPatch.rb: exported a couple a globals with
     13        statistics information for our test script.
     14        * PrettyPatch/PrettyPatch_test.rb: Added.
     15
    1162011-04-22  Alexey Proskuryakov  <ap@apple.com>
    217
  • trunk/Websites/bugs.webkit.org/PrettyPatch/PrettyPatch.rb

    r84266 r85657  
    1313
    1414    def self.prettify(string)
     15        $last_prettify_file_count = -1
     16        $last_prettify_part_count = { "remove" => 0, "add" => 0, "shared" => 0 }
    1517        string = normalize_line_ending(string)
    1618        fileDiffs = FileDiff.parse(string)
     
    2830        end
    2931
     32        $last_prettify_file_count = fileDiffs.count
    3033        str += fileDiffs.collect{ |diff| diff.to_html }.join
    3134    end
     
    683686
    684687        def initialize(className, container)
     688            $last_prettify_part_count[className] += 1
    685689            @className = className
    686690            @lines = []
Note: See TracChangeset for help on using the changeset viewer.