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

Unified Diff: tests/rietveld_test.py

Issue 7754020: Fix support when 2 properties are modified. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: Created 9 years, 3 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
« rietveld.py ('K') | « rietveld.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/rietveld_test.py
diff --git a/tests/rietveld_test.py b/tests/rietveld_test.py
index ca9ac67964994d328fa6c7d43ade89f4aab172a2..8a3e81e07a15e78b39f5d09d72b8877aa187789b 100755
--- a/tests/rietveld_test.py
+++ b/tests/rietveld_test.py
@@ -258,6 +258,19 @@ class RietveldTest(unittest.TestCase):
[],
rietveld.Rietveld.parse_svn_properties(u'', 'foo'))
+
+ # http://codereview.chromium.org/api/7834045/15001
+ self.assertEquals(
+ [('svn:executable', '*'), ('svn:eol-style', 'LF')],
+ rietveld.Rietveld.parse_svn_properties(
+ '\n'
+ 'Added: svn:executable\n'
+ ' + *\n'
M-A Ruel 2011/09/08 18:37:58 e.g. I thought there was one more empty line in be
+ 'Added: svn:eol-style\n'
+ ' + LF\n',
+ 'foo'))
+
+ def test_bad_svn_properties(self):
try:
rietveld.Rietveld.parse_svn_properties(u'\n', 'foo')
self.fail()
« rietveld.py ('K') | « rietveld.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698