Summary: | Formatted Diff for attachment 23920 is mangled | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Mark Rowe (bdash) <mrowe> | ||||||
Component: | Tools / Tests | Assignee: | Nobody <webkit-unassigned> | ||||||
Status: | RESOLVED FIXED | ||||||||
Severity: | Normal | CC: | abarth, aroben, cmarcelo, commit-queue, dbates, eric | ||||||
Priority: | P2 | ||||||||
Version: | 528+ (Nightly build) | ||||||||
Hardware: | Mac | ||||||||
OS: | OS X 10.5 | ||||||||
URL: | https://bugs.webkit.org/attachment.cgi?id=23920&action=prettypatch | ||||||||
Attachments: |
|
Description
Mark Rowe (bdash)
2008-09-29 15:00:20 PDT
*** Bug 21291 has been marked as a duplicate of this bug. *** Created attachment 85129 [details]
patch
Comment on attachment 85129 [details]
patch
Shouldn't this be done at a lower layer? Or shouldn't prettyify ASSERT that it has the proper line endings?
How do we unit test this? (I'm not sure we have unit tests for the ruby code?) Comment on attachment 85129 [details]
patch
I agree with Eric that the line-ending normalization should happen in PrettyPatch itself. prettify.rb is just supposed to be a thin wrapper around PrettyPatch.
(In reply to comment #4) > How do we unit test this? (I'm not sure we have unit tests for the ruby code?) We don't have unit tests. It would be pretty easy to add some, though! Created attachment 85197 [details]
patch v2, moved normalization to lower layer
(In reply to comment #6) > We don't have unit tests. It would be pretty easy to add some, though! What kind of tests are you thinking about, one that gets a set of patches to run prettify and compare with some expected files? Or something different? Any guidance on where to put those is welcome too :) (In reply to comment #8) > (In reply to comment #6) > > We don't have unit tests. It would be pretty easy to add some, though! > > What kind of tests are you thinking about, one that gets a set of patches to run prettify and compare with some expected files? Or something different? > > Any guidance on where to put those is welcome too :) I was thinking more along the lines of the python unit tests: *_unittest.py under http://trac.webkit.org/browser/trunk/Tools/Scripts/webkitpy/ Comment on attachment 85197 [details] patch v2, moved normalization to lower layer Clearing flags on attachment: 85197 Committed r80795: <http://trac.webkit.org/changeset/80795> All reviewed patches have been landed. Closing bug. |