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

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

Issue 135583003: checkpoint Blink-side work to use Apache on Windows (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: new rollup patch 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
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 25 matching lines...) Expand all
36 from webkitpy.layout_tests.port import win 36 from webkitpy.layout_tests.port import win
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):
47 self.assertFalse(self.make_port()._uses_apache())
48
49 def test_setup_environ_for_server(self): 46 def test_setup_environ_for_server(self):
50 port = self.make_port() 47 port = self.make_port()
51 port._executive = MockExecutive(should_log=True) 48 port._executive = MockExecutive(should_log=True)
52 output = outputcapture.OutputCapture() 49 output = outputcapture.OutputCapture()
53 # FIXME: This test should not use the real os.environ 50 # FIXME: This test should not use the real os.environ
54 orig_environ = os.environ.copy() 51 orig_environ = os.environ.copy()
55 env = output.assert_outputs(self, port.setup_environ_for_server) 52 env = output.assert_outputs(self, port.setup_environ_for_server)
56 self.assertEqual(orig_environ["PATH"], os.environ["PATH"]) 53 self.assertEqual(orig_environ["PATH"], os.environ["PATH"])
57 self.assertNotEqual(env["PATH"], os.environ["PATH"]) 54 self.assertNotEqual(env["PATH"], os.environ["PATH"])
58 55
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 121
125 def test_operating_system(self): 122 def test_operating_system(self):
126 self.assertEqual('win', self.make_port().operating_system()) 123 self.assertEqual('win', self.make_port().operating_system())
127 124
128 def test_driver_name_option(self): 125 def test_driver_name_option(self):
129 self.assertTrue(self.make_port()._path_to_driver().endswith('content_she ll.exe')) 126 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')) 127 self.assertTrue(self.make_port(options=MockOptions(driver_name='OtherDri ver'))._path_to_driver().endswith('OtherDriver.exe'))
131 128
132 def test_path_to_image_diff(self): 129 def test_path_to_image_diff(self):
133 self.assertEqual(self.make_port()._path_to_image_diff(), '/mock-checkout /out/Release/image_diff.exe') 130 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/run_webkit_tests.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698