| 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 773 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 784 return extension in Port._supported_file_extensions | 784 return extension in Port._supported_file_extensions |
| 785 | 785 |
| 786 def is_test_file(self, filesystem, dirname, filename): | 786 def is_test_file(self, filesystem, dirname, filename): |
| 787 match = re.search(r'[/\\]imported[/\\]wpt([/\\].*)?$', dirname) | 787 match = re.search(r'[/\\]imported[/\\]wpt([/\\].*)?$', dirname) |
| 788 if match: | 788 if match: |
| 789 if match.group(1): | 789 if match.group(1): |
| 790 path_in_wpt = match.group(1)[1:].replace('\\', '/') + '/' + file
name | 790 path_in_wpt = match.group(1)[1:].replace('\\', '/') + '/' + file
name |
| 791 else: | 791 else: |
| 792 path_in_wpt = filename | 792 path_in_wpt = filename |
| 793 return self._manifest_items_for_path(path_in_wpt) is not None | 793 return self._manifest_items_for_path(path_in_wpt) is not None |
| 794 if 'inspector-unit' in dirname: |
| 795 return filesystem.splitext(filename)[1] == '.js' |
| 794 return Port._has_supported_extension( | 796 return Port._has_supported_extension( |
| 795 filesystem, filename) and not Port.is_reference_html_file(filesystem
, dirname, filename) | 797 filesystem, filename) and not Port.is_reference_html_file(filesystem
, dirname, filename) |
| 796 | 798 |
| 797 def _convert_wpt_file_paths_to_url_paths(self, files): | 799 def _convert_wpt_file_paths_to_url_paths(self, files): |
| 798 tests = [] | 800 tests = [] |
| 799 for file_path in files: | 801 for file_path in files: |
| 800 # Path separators are normalized by relative_test_filename(). | 802 # Path separators are normalized by relative_test_filename(). |
| 801 match = re.search(r'imported/wpt/(.*)$', file_path) | 803 match = re.search(r'imported/wpt/(.*)$', file_path) |
| 802 if not match: | 804 if not match: |
| 803 tests.append(file_path) | 805 tests.append(file_path) |
| (...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1092 | 1094 |
| 1093 def bot_test_times_path(self): | 1095 def bot_test_times_path(self): |
| 1094 return self._build_path('webkit_test_times', 'bot_times_ms.json') | 1096 return self._build_path('webkit_test_times', 'bot_times_ms.json') |
| 1095 | 1097 |
| 1096 def perf_results_directory(self): | 1098 def perf_results_directory(self): |
| 1097 return self._build_path() | 1099 return self._build_path() |
| 1098 | 1100 |
| 1099 def inspector_build_directory(self): | 1101 def inspector_build_directory(self): |
| 1100 return self._build_path('resources', 'inspector') | 1102 return self._build_path('resources', 'inspector') |
| 1101 | 1103 |
| 1102 def inspector_debug_directory(self): | |
| 1103 return self.path_from_webkit_base('Source', 'devtools', 'front_end') | |
| 1104 | |
| 1105 def apache_config_directory(self): | 1104 def apache_config_directory(self): |
| 1106 return self.path_from_webkit_base('Tools', 'Scripts', 'apache_config') | 1105 return self.path_from_webkit_base('Tools', 'Scripts', 'apache_config') |
| 1107 | 1106 |
| 1108 def default_results_directory(self): | 1107 def default_results_directory(self): |
| 1109 """Absolute path to the default place to store the test results.""" | 1108 """Absolute path to the default place to store the test results.""" |
| 1110 return self._build_path('layout-test-results') | 1109 return self._build_path('layout-test-results') |
| 1111 | 1110 |
| 1112 def setup_test_run(self): | 1111 def setup_test_run(self): |
| 1113 """Perform port-specific work at the beginning of a test run.""" | 1112 """Perform port-specific work at the beginning of a test run.""" |
| 1114 # Delete the disk cache if any to ensure a clean test run. | 1113 # Delete the disk cache if any to ensure a clean test run. |
| (...skipping 725 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1840 | 1839 |
| 1841 def __init__(self, base, args, reference_args=None): | 1840 def __init__(self, base, args, reference_args=None): |
| 1842 self.name = base | 1841 self.name = base |
| 1843 self.base = base | 1842 self.base = base |
| 1844 self.args = args | 1843 self.args = args |
| 1845 self.reference_args = args if reference_args is None else reference_args | 1844 self.reference_args = args if reference_args is None else reference_args |
| 1846 self.tests = set() | 1845 self.tests = set() |
| 1847 | 1846 |
| 1848 def __repr__(self): | 1847 def __repr__(self): |
| 1849 return "PhysicalTestSuite('%s', '%s', %s, %s)" % (self.name, self.base,
self.args, self.reference_args) | 1848 return "PhysicalTestSuite('%s', '%s', %s, %s)" % (self.name, self.base,
self.args, self.reference_args) |
| OLD | NEW |