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

Unified Diff: tests/gclient_test.py

Issue 7840033: Urls with /@ won't be processed correctly when used as a requirements. (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
« no previous file with comments | « gclient.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/gclient_test.py
diff --git a/tests/gclient_test.py b/tests/gclient_test.py
index ecbf0357b08062d21684338ba9be377a7f25a634..c136dc2711f1c124143929874b97193576a8289f 100755
--- a/tests/gclient_test.py
+++ b/tests/gclient_test.py
@@ -181,6 +181,13 @@ class GclientTest(trial_dir.TestCase):
pass
return items
+ def testAutofix(self):
+ # Invalid urls causes pain when specifying requirements. Make sure it's
+ # auto-fixed.
+ d = gclient.Dependency(
+ None, 'name', 'proto://host/path/@revision', None, None,
+ None, '', True)
+ self.assertEquals('proto://host/path@revision', d.url)
if __name__ == '__main__':
logging.basicConfig(
« no previous file with comments | « gclient.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698