| 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 710 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 721 return extension in Port.supported_file_extensions | 721 return extension in Port.supported_file_extensions |
| 722 | 722 |
| 723 def is_test_file(self, filesystem, dirname, filename): | 723 def is_test_file(self, filesystem, dirname, filename): |
| 724 match = re.search(r'[/\\]external[/\\]wpt([/\\].*)?$', dirname) | 724 match = re.search(r'[/\\]external[/\\]wpt([/\\].*)?$', dirname) |
| 725 if match: | 725 if match: |
| 726 if match.group(1): | 726 if match.group(1): |
| 727 path_in_wpt = match.group(1)[1:].replace('\\', '/') + '/' + file
name | 727 path_in_wpt = match.group(1)[1:].replace('\\', '/') + '/' + file
name |
| 728 else: | 728 else: |
| 729 path_in_wpt = filename | 729 path_in_wpt = filename |
| 730 return self._wpt_manifest().is_test_file(path_in_wpt) | 730 return self._wpt_manifest().is_test_file(path_in_wpt) |
| 731 if 'inspector-unit' in dirname: | 731 if 'inspector-unit' in dirname or 'devtools-js' in dirname: |
| 732 return filesystem.splitext(filename)[1] == '.js' | 732 return filesystem.splitext(filename)[1] == '.js' |
| 733 return Port._has_supported_extension( | 733 return Port._has_supported_extension( |
| 734 filesystem, filename) and not Port.is_reference_html_file(filesystem
, dirname, filename) | 734 filesystem, filename) and not Port.is_reference_html_file(filesystem
, dirname, filename) |
| 735 | 735 |
| 736 def _convert_wpt_file_paths_to_url_paths(self, files): | 736 def _convert_wpt_file_paths_to_url_paths(self, files): |
| 737 tests = [] | 737 tests = [] |
| 738 for file_path in files: | 738 for file_path in files: |
| 739 # Path separators are normalized by relative_test_filename(). | 739 # Path separators are normalized by relative_test_filename(). |
| 740 match = re.search(r'external/wpt/(.*)$', file_path) | 740 match = re.search(r'external/wpt/(.*)$', file_path) |
| 741 if not match: | 741 if not match: |
| (...skipping 908 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1650 | 1650 |
| 1651 def __init__(self, base, args, reference_args=None): | 1651 def __init__(self, base, args, reference_args=None): |
| 1652 self.name = base | 1652 self.name = base |
| 1653 self.base = base | 1653 self.base = base |
| 1654 self.args = args | 1654 self.args = args |
| 1655 self.reference_args = args if reference_args is None else reference_args | 1655 self.reference_args = args if reference_args is None else reference_args |
| 1656 self.tests = set() | 1656 self.tests = set() |
| 1657 | 1657 |
| 1658 def __repr__(self): | 1658 def __repr__(self): |
| 1659 return "PhysicalTestSuite('%s', '%s', %s, %s)" % (self.name, self.base,
self.args, self.reference_args) | 1659 return "PhysicalTestSuite('%s', '%s', %s, %s)" % (self.name, self.base,
self.args, self.reference_args) |
| OLD | NEW |