Changeset 85657 in webkit
- Timestamp:
- May 3, 2011 1:57:14 PM (13 years ago)
- Location:
- trunk/Websites/bugs.webkit.org
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Websites/bugs.webkit.org/ChangeLog
r84645 r85657 1 2011-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 1 16 2011-04-22 Alexey Proskuryakov <ap@apple.com> 2 17 -
trunk/Websites/bugs.webkit.org/PrettyPatch/PrettyPatch.rb
r84266 r85657 13 13 14 14 def self.prettify(string) 15 $last_prettify_file_count = -1 16 $last_prettify_part_count = { "remove" => 0, "add" => 0, "shared" => 0 } 15 17 string = normalize_line_ending(string) 16 18 fileDiffs = FileDiff.parse(string) … … 28 30 end 29 31 32 $last_prettify_file_count = fileDiffs.count 30 33 str += fileDiffs.collect{ |diff| diff.to_html }.join 31 34 end … … 683 686 684 687 def initialize(className, container) 688 $last_prettify_part_count[className] += 1 685 689 @className = className 686 690 @lines = []
Note: See TracChangeset
for help on using the changeset viewer.