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

Unified Diff: third_party/WebKit/Tools/Scripts/webkitpy/tool/webkit_patch_unittest.py

Issue 2137013004: Re-add the path() method of WebKitPatch. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update unit test. Created 4 years, 5 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 | « third_party/WebKit/Tools/Scripts/webkitpy/tool/webkit_patch.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Tools/Scripts/webkitpy/tool/webkit_patch_unittest.py
diff --git a/third_party/WebKit/Tools/Scripts/webkitpy/tool/webkit_patch_unittest.py b/third_party/WebKit/Tools/Scripts/webkitpy/tool/webkit_patch_unittest.py
index 01d0e6d98ac899f133b51c605b0cc7ad54e8af64..937f1d734a3103ee07592a243fc3705ff1c977f2 100644
--- a/third_party/WebKit/Tools/Scripts/webkitpy/tool/webkit_patch_unittest.py
+++ b/third_party/WebKit/Tools/Scripts/webkitpy/tool/webkit_patch_unittest.py
@@ -26,14 +26,14 @@ class WebKitPatchTest(unittest.TestCase):
('command', ['arg']))
def test_command_by_name(self):
- tool = WebKitPatch()
+ tool = WebKitPatch('path')
self.assertEqual(tool.command_by_name('help').name, 'help')
self.assertIsNone(tool.command_by_name('non-existent'))
def test_help(self):
oc = OutputCapture()
oc.capture_output()
- tool = WebKitPatch()
+ tool = WebKitPatch('path')
tool.main(['tool', 'help'])
out, err, logs = oc.restore_output()
self.assertTrue(out.startswith('Usage: '))
@@ -41,6 +41,6 @@ class WebKitPatchTest(unittest.TestCase):
self.assertEqual('', logs)
def test_constructor_calls_bind_to_tool(self):
- tool = WebKitPatch()
+ tool = WebKitPatch('path')
self.assertEqual(tool.commands[0]._tool, tool)
self.assertEqual(tool.commands[1]._tool, tool)
« no previous file with comments | « third_party/WebKit/Tools/Scripts/webkitpy/tool/webkit_patch.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698