| 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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 port.host.filesystem.mtime = lambda f: 5 if '/out/' in f else 4 | 119 port.host.filesystem.mtime = lambda f: 5 if '/out/' in f else 4 |
| 120 self.assertEqual(port._build_path(), '/mock-checkout/out/Release') | 120 self.assertEqual(port._build_path(), '/mock-checkout/out/Release') |
| 121 # Check with 'build' being newer. | 121 # Check with 'build' being newer. |
| 122 port.host.filesystem.mtime = lambda f: 5 if '/build/' in f else 4 | 122 port.host.filesystem.mtime = lambda f: 5 if '/build/' in f else 4 |
| 123 self.assertEqual(port._build_path(), '/mock-checkout/build/Release') | 123 self.assertEqual(port._build_path(), '/mock-checkout/build/Release') |
| 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('DumpRenderT
ree.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/ImageDiff.exe') | 133 self.assertEqual(self.make_port()._path_to_image_diff(), '/mock-checkout
/out/Release/ImageDiff.exe') |
| OLD | NEW |