OLD | NEW |
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 21 matching lines...) Expand all Loading... |
32 from webkitpy.common.system import outputcapture | 32 from webkitpy.common.system import outputcapture |
33 from webkitpy.common.system.executive_mock import MockExecutive | 33 from webkitpy.common.system.executive_mock import MockExecutive |
34 from webkitpy.common.system.filesystem_mock import MockFileSystem | 34 from webkitpy.common.system.filesystem_mock import MockFileSystem |
35 from webkitpy.layout_tests.port import port_testcase | 35 from webkitpy.layout_tests.port import port_testcase |
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 full_port_name = 'win-xp' |
42 port_maker = win.WinPort | 43 port_maker = win.WinPort |
43 os_name = 'win' | 44 os_name = 'win' |
44 os_version = 'xp' | 45 os_version = 'xp' |
45 | 46 |
46 def test_setup_environ_for_server(self): | 47 def test_setup_environ_for_server(self): |
47 port = self.make_port() | 48 port = self.make_port() |
48 port._executive = MockExecutive(should_log=True) | 49 port._executive = MockExecutive(should_log=True) |
49 output = outputcapture.OutputCapture() | 50 output = outputcapture.OutputCapture() |
50 # FIXME: This test should not use the real os.environ | 51 # FIXME: This test should not use the real os.environ |
51 orig_environ = os.environ.copy() | 52 orig_environ = os.environ.copy() |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 | 122 |
122 def test_operating_system(self): | 123 def test_operating_system(self): |
123 self.assertEqual('win', self.make_port().operating_system()) | 124 self.assertEqual('win', self.make_port().operating_system()) |
124 | 125 |
125 def test_driver_name_option(self): | 126 def test_driver_name_option(self): |
126 self.assertTrue(self.make_port()._path_to_driver().endswith('content_she
ll.exe')) | 127 self.assertTrue(self.make_port()._path_to_driver().endswith('content_she
ll.exe')) |
127 self.assertTrue(self.make_port(options=MockOptions(driver_name='OtherDri
ver'))._path_to_driver().endswith('OtherDriver.exe')) | 128 self.assertTrue(self.make_port(options=MockOptions(driver_name='OtherDri
ver'))._path_to_driver().endswith('OtherDriver.exe')) |
128 | 129 |
129 def test_path_to_image_diff(self): | 130 def test_path_to_image_diff(self): |
130 self.assertEqual(self.make_port()._path_to_image_diff(), '/mock-checkout
/out/Release/image_diff.exe') | 131 self.assertEqual(self.make_port()._path_to_image_diff(), '/mock-checkout
/out/Release/image_diff.exe') |
OLD | NEW |