Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(140)

Unified Diff: tests/patch_test.py

Issue 9147056: Fix for single line file modification (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: Created 8 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « testing_support/patches_data.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/patch_test.py
diff --git a/tests/patch_test.py b/tests/patch_test.py
index b1b4809d37cdbad60c9ca22982ae328a5797445f..671e5c92579fe035bd619662162cc32c14cf0ad9 100755
--- a/tests/patch_test.py
+++ b/tests/patch_test.py
@@ -71,6 +71,11 @@ class PatchTest(unittest.TestCase):
p = patch.FilePatchDiff('chrome/file.cc', RAW.PATCH, [])
self._check_patch(p, 'chrome/file.cc', RAW.PATCH, nb_hunks=1)
+ def testDifferent(self):
+ name = 'master/unittests/data/processes-summary.dat'
+ p = patch.FilePatchDiff(name, RAW.DIFFERENT, [])
+ self._check_patch(p, name, RAW.DIFFERENT, nb_hunks=1)
+
def testFilePatchDiffHeaderMode(self):
p = patch.FilePatchDiff('git_cl/git-cl', GIT.MODE_EXE, [])
self._check_patch(
« no previous file with comments | « testing_support/patches_data.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698