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

Unified Diff: grit/format/rc_unittest.py

Issue 9924009: Add c_format as a format option. (Closed) Base URL: https://grit-i18n.googlecode.com/svn/trunk
Patch Set: Created 8 years, 9 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 | « grit/format/rc.py ('k') | grit/node/empty.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: grit/format/rc_unittest.py
diff --git a/grit/format/rc_unittest.py b/grit/format/rc_unittest.py
index d8094aa75d10f0d981c51fdbdd430597f0f87f72..c255856b800dc787c7bfc8a661f0343a65f66a93 100644
--- a/grit/format/rc_unittest.py
+++ b/grit/format/rc_unittest.py
@@ -276,27 +276,5 @@ BEGIN
END''')
- def testRelativePath(self):
- ''' Verify that _MakeRelativePath works in some tricky cases.'''
- def TestRelativePathCombinations(base_path, other_path, expected_result):
- ''' Verify that the relative path function works for
- the given paths regardless of whether or not they end with
- a trailing slash.'''
- for path1 in [base_path, base_path + os.path.sep]:
- for path2 in [other_path, other_path + os.path.sep]:
- result = rc._MakeRelativePath(path1, path2)
- self.failUnless(result == expected_result)
-
- # set-up variables
- root_dir = 'c:%sa' % os.path.sep
- result1 = '..%sabc' % os.path.sep
- path1 = root_dir + 'bc'
- result2 = 'bc'
- path2 = '%s%s%s' % (root_dir, os.path.sep, result2)
- # run the tests
- TestRelativePathCombinations(root_dir, path1, result1)
- TestRelativePathCombinations(root_dir, path2, result2)
-
-
if __name__ == '__main__':
unittest.main()
« no previous file with comments | « grit/format/rc.py ('k') | grit/node/empty.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698