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

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

Issue 2201653002: Remove usage of wildcard imports from webkitpy. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased; reformatted multiple imports from same module to be single import statements. Created 4 years, 4 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
OLDNEW
1 # Copyright (C) 2009 Google Inc. All rights reserved. 1 # Copyright (C) 2009 Google Inc. All rights reserved.
2 # Copyright (C) 2012 Intel Corporation. All rights reserved. 2 # Copyright (C) 2012 Intel Corporation. All rights reserved.
3 # 3 #
4 # Redistribution and use in source and binary forms, with or without 4 # Redistribution and use in source and binary forms, with or without
5 # modification, are permitted provided that the following conditions are 5 # modification, are permitted provided that the following conditions are
6 # met: 6 # met:
7 # 7 #
8 # * Redistributions of source code must retain the above copyright 8 # * Redistributions of source code must retain the above copyright
9 # notice, this list of conditions and the following disclaimer. 9 # notice, this list of conditions and the following disclaimer.
10 # * Redistributions in binary form must reproduce the above 10 # * Redistributions in binary form must reproduce the above
(...skipping 13 matching lines...) Expand all
24 # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 24 # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25 # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 25 # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 29
30 import optparse 30 import optparse
31 import unittest 31 import unittest
32 32
33 from webkitpy.common.system.outputcapture import OutputCapture 33 from webkitpy.common.system.outputcapture import OutputCapture
34 from webkitpy.tool.commands.queries import PrintBaselines 34 from webkitpy.tool.commands.queries import PrintBaselines, PrintExpectations
35 from webkitpy.tool.commands.queries import PrintExpectations
36 from webkitpy.tool.mock_tool import MockWebKitPatch 35 from webkitpy.tool.mock_tool import MockWebKitPatch
37 36
38 37
39 class PrintExpectationsTest(unittest.TestCase): 38 class PrintExpectationsTest(unittest.TestCase):
40 39
41 def run_test(self, tests, expected_stdout, platform='test-win-win7', **kwarg s): 40 def run_test(self, tests, expected_stdout, platform='test-win-win7', **kwarg s):
42 options_defaults = { 41 options_defaults = {
43 'all': False, 'csv': False, 'full': False, 'platform': platform, 42 'all': False, 'csv': False, 'full': False, 'platform': platform,
44 'include_keyword': [], 'exclude_keyword': [], 'paths': False, 43 'include_keyword': [], 'exclude_keyword': [], 'paths': False,
45 } 44 }
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 def test_csv(self): 169 def test_csv(self):
171 command = PrintBaselines() 170 command = PrintBaselines()
172 command.bind_to_tool(self.tool) 171 command.bind_to_tool(self.tool)
173 self.capture_output() 172 self.capture_output()
174 options = optparse.Values({'all': False, 'platform': '*win7', 'csv': Tru e, 'include_virtual_tests': False}) 173 options = optparse.Values({'all': False, 'platform': '*win7', 'csv': Tru e, 'include_virtual_tests': False})
175 command.execute(options, ['passes/text.html'], self.tool) 174 command.execute(options, ['passes/text.html'], self.tool)
176 stdout, _, _ = self.restore_output() 175 stdout, _, _ = self.restore_output()
177 self.assertMultiLineEqual(stdout, 176 self.assertMultiLineEqual(stdout,
178 ('test-win-win7,passes/text.html,None,png,pass es/text-expected.png,None\n' 177 ('test-win-win7,passes/text.html,None,png,pass es/text-expected.png,None\n'
179 'test-win-win7,passes/text.html,None,txt,pass es/text-expected.txt,None\n')) 178 'test-win-win7,passes/text.html,None,txt,pass es/text-expected.txt,None\n'))
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698