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

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

Issue 2276713002: Remove Command.bind_to_tool. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2016 The Chromium Authors. All rights reserved. 1 # Copyright 2016 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import unittest 5 import unittest
6 6
7 from webkitpy.common.system.outputcapture import OutputCapture 7 from webkitpy.common.system.outputcapture import OutputCapture
8 from webkitpy.tool.webkit_patch import WebKitPatch 8 from webkitpy.tool.webkit_patch import WebKitPatch
9 9
10 10
(...skipping 21 matching lines...) Expand all
32 32
33 def test_help(self): 33 def test_help(self):
34 oc = OutputCapture() 34 oc = OutputCapture()
35 oc.capture_output() 35 oc.capture_output()
36 tool = WebKitPatch('path') 36 tool = WebKitPatch('path')
37 tool.main(['tool', 'help']) 37 tool.main(['tool', 'help'])
38 out, err, logs = oc.restore_output() 38 out, err, logs = oc.restore_output()
39 self.assertTrue(out.startswith('Usage: ')) 39 self.assertTrue(out.startswith('Usage: '))
40 self.assertEqual('', err) 40 self.assertEqual('', err)
41 self.assertEqual('', logs) 41 self.assertEqual('', logs)
42
43 def test_constructor_calls_bind_to_tool(self):
44 tool = WebKitPatch('path')
45 self.assertEqual(tool.commands[0]._tool, tool)
46 self.assertEqual(tool.commands[1]._tool, tool)
OLDNEW
« 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