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

Side by Side Diff: Tools/Scripts/webkitpy/layout_tests/port/win_unittest.py

Issue 150573014: Rename various methods in webkitpy.layout_test.Port to be public (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: remove port.check_httpd stub call from port_testcase Created 6 years, 10 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 | Annotate | Revision Log
OLDNEW
1 # Copyright (C) 2010 Google Inc. All rights reserved. 1 # Copyright (C) 2010 Google Inc. All rights reserved.
2 # 2 #
3 # Redistribution and use in source and binary forms, with or without 3 # Redistribution and use in source and binary forms, with or without
4 # modification, are permitted provided that the following conditions are 4 # modification, are permitted provided that the following conditions are
5 # met: 5 # met:
6 # 6 #
7 # * Redistributions of source code must retain the above copyright 7 # * Redistributions of source code must retain the above copyright
8 # notice, this list of conditions and the following disclaimer. 8 # notice, this list of conditions and the following disclaimer.
9 # * Redistributions in binary form must reproduce the above 9 # * Redistributions in binary form must reproduce the above
10 # copyright notice, this list of conditions and the following disclaimer 10 # copyright notice, this list of conditions and the following disclaimer
(...skipping 26 matching lines...) Expand all
37 from webkitpy.tool.mocktool import MockOptions 37 from webkitpy.tool.mocktool import MockOptions
38 38
39 39
40 class WinPortTest(port_testcase.PortTestCase): 40 class WinPortTest(port_testcase.PortTestCase):
41 port_name = 'win' 41 port_name = 'win'
42 port_maker = win.WinPort 42 port_maker = win.WinPort
43 os_name = 'win' 43 os_name = 'win'
44 os_version = 'xp' 44 os_version = 'xp'
45 45
46 def test_uses_apache(self): 46 def test_uses_apache(self):
47 self.assertFalse(self.make_port()._uses_apache()) 47 self.assertFalse(self.make_port().uses_apache())
48 48
49 def test_setup_environ_for_server(self): 49 def test_setup_environ_for_server(self):
50 port = self.make_port() 50 port = self.make_port()
51 port._executive = MockExecutive(should_log=True) 51 port._executive = MockExecutive(should_log=True)
52 output = outputcapture.OutputCapture() 52 output = outputcapture.OutputCapture()
53 # FIXME: This test should not use the real os.environ 53 # FIXME: This test should not use the real os.environ
54 orig_environ = os.environ.copy() 54 orig_environ = os.environ.copy()
55 env = output.assert_outputs(self, port.setup_environ_for_server) 55 env = output.assert_outputs(self, port.setup_environ_for_server)
56 self.assertEqual(orig_environ["PATH"], os.environ["PATH"]) 56 self.assertEqual(orig_environ["PATH"], os.environ["PATH"])
57 self.assertNotEqual(env["PATH"], os.environ["PATH"]) 57 self.assertNotEqual(env["PATH"], os.environ["PATH"])
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 124
125 def test_operating_system(self): 125 def test_operating_system(self):
126 self.assertEqual('win', self.make_port().operating_system()) 126 self.assertEqual('win', self.make_port().operating_system())
127 127
128 def test_driver_name_option(self): 128 def test_driver_name_option(self):
129 self.assertTrue(self.make_port()._path_to_driver().endswith('content_she ll.exe')) 129 self.assertTrue(self.make_port()._path_to_driver().endswith('content_she ll.exe'))
130 self.assertTrue(self.make_port(options=MockOptions(driver_name='OtherDri ver'))._path_to_driver().endswith('OtherDriver.exe')) 130 self.assertTrue(self.make_port(options=MockOptions(driver_name='OtherDri ver'))._path_to_driver().endswith('OtherDriver.exe'))
131 131
132 def test_path_to_image_diff(self): 132 def test_path_to_image_diff(self):
133 self.assertEqual(self.make_port()._path_to_image_diff(), '/mock-checkout /out/Release/image_diff.exe') 133 self.assertEqual(self.make_port()._path_to_image_diff(), '/mock-checkout /out/Release/image_diff.exe')
OLDNEW
« no previous file with comments | « Tools/Scripts/webkitpy/layout_tests/port/win.py ('k') | Tools/Scripts/webkitpy/layout_tests/servers/apache_http_server.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698