Bug 135381

Summary: [webkitpy] Make diff_text generate correct diff if there is no newline at the end of file
Product: WebKit Reporter: Tibor Mészáros <mtiborinf>
Component: WebKit Misc.Assignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: buildbot, commit-queue, glenn, ossy, rniwa
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Archive of layout-test-results from webkit-ews-10 for mac-mountainlion-wk2 none

Tibor Mészáros
Reported 2014-07-29 06:11:41 PDT
If only one line break is the difference between the actual and expected result, the pretty diff will fail. Example: actual result: "A\n\nB" expected result: "A\n\nB\n\n\n" current diff: "--- exp.txt +++ act.txt @@ -1,3 +1,5 @@ A -B+B + +" expected diff: "--- exp.txt +++ act.txt @@ -1,3 +1,5 @@ A -B \ No newline at end of file +B + +"
Attachments
Patch (2.24 KB, patch)
2014-07-29 06:20 PDT, Tibor Mészáros
no flags
Archive of layout-test-results from webkit-ews-10 for mac-mountainlion-wk2 (553.84 KB, application/zip)
2014-07-29 07:52 PDT, Build Bot
no flags
Tibor Mészáros
Comment 1 2014-07-29 06:20:51 PDT
Created attachment 235681 [details] Patch Patch with unit test
Build Bot
Comment 2 2014-07-29 07:52:18 PDT
Comment on attachment 235681 [details] Patch Attachment 235681 [details] did not pass mac-wk2-ews (mac-wk2): Output: http://webkit-queues.appspot.com/results/4533226085285888 New failing tests: media/track/add-and-remove-track.html
Build Bot
Comment 3 2014-07-29 07:52:21 PDT
Created attachment 235690 [details] Archive of layout-test-results from webkit-ews-10 for mac-mountainlion-wk2 The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews. Bot: webkit-ews-10 Port: mac-mountainlion-wk2 Platform: Mac OS X 10.8.5
WebKit Commit Bot
Comment 4 2014-07-31 09:24:22 PDT
Comment on attachment 235681 [details] Patch Clearing flags on attachment: 235681 Committed r171856: <http://trac.webkit.org/changeset/171856>
WebKit Commit Bot
Comment 5 2014-07-31 09:24:25 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.