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 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
221 def buildbot_archives_baselines(self): | 221 def buildbot_archives_baselines(self): |
222 return True | 222 return True |
223 | 223 |
224 def additional_drt_flag(self): | 224 def additional_drt_flag(self): |
225 driver_name = self.driver_name() | 225 driver_name = self.driver_name() |
226 if driver_name == self.CONTENT_SHELL_NAME: | 226 if driver_name == self.CONTENT_SHELL_NAME: |
227 return ['--dump-render-tree'] | 227 return ['--dump-render-tree'] |
228 if driver_name == self.MOJO_SHELL_NAME: | 228 if driver_name == self.MOJO_SHELL_NAME: |
229 return [ | 229 return [ |
230 '--args-for=mojo://native_viewport_service/ --use-headless-confi
g', | 230 '--args-for=mojo://native_viewport_service/ --use-headless-confi
g', |
231 '--content-handlers=text/html,mojo://sky_viewer/', | 231 '--content-handlers=text/sky,mojo://sky_viewer/', |
232 '--url-mappings=mojo:window_manager=mojo:sky_tester', | 232 '--url-mappings=mojo:window_manager=mojo:sky_tester', |
233 'mojo:window_manager', | 233 'mojo:window_manager', |
234 ] | 234 ] |
235 return [] | 235 return [] |
236 | 236 |
237 def supports_per_test_timeout(self): | 237 def supports_per_test_timeout(self): |
238 return False | 238 return False |
239 | 239 |
240 def default_pixel_tests(self): | 240 def default_pixel_tests(self): |
241 return False | 241 return False |
(...skipping 476 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
718 tests.extend(self._virtual_tests(paths, self.populated_virtual_test_suit
es())) | 718 tests.extend(self._virtual_tests(paths, self.populated_virtual_test_suit
es())) |
719 return tests | 719 return tests |
720 | 720 |
721 def _real_tests(self, paths): | 721 def _real_tests(self, paths): |
722 # When collecting test cases, skip these directories | 722 # When collecting test cases, skip these directories |
723 skipped_directories = set(['.svn', '_svn', 'platform', 'resources', 'sup
port', 'script-tests', 'reference', 'reftest', 'conf']) | 723 skipped_directories = set(['.svn', '_svn', 'platform', 'resources', 'sup
port', 'script-tests', 'reference', 'reftest', 'conf']) |
724 files = find_files.find(self._filesystem, self.layout_tests_dir(), paths
, skipped_directories, Port.is_test_file, self.test_key) | 724 files = find_files.find(self._filesystem, self.layout_tests_dir(), paths
, skipped_directories, Port.is_test_file, self.test_key) |
725 return [self.relative_test_filename(f) for f in files] | 725 return [self.relative_test_filename(f) for f in files] |
726 | 726 |
727 # When collecting test cases, we include any file with these extensions. | 727 # When collecting test cases, we include any file with these extensions. |
728 _supported_file_extensions = set(['.html']) | 728 _supported_file_extensions = set(['.sky']) |
729 | 729 |
730 @staticmethod | 730 @staticmethod |
731 # If any changes are made here be sure to update the isUsedInReftest method
in old-run-webkit-tests as well. | 731 # If any changes are made here be sure to update the isUsedInReftest method
in old-run-webkit-tests as well. |
732 def is_reference_html_file(filesystem, dirname, filename): | 732 def is_reference_html_file(filesystem, dirname, filename): |
733 if filename.startswith('ref-') or filename.startswith('notref-'): | 733 if filename.startswith('ref-') or filename.startswith('notref-'): |
734 return True | 734 return True |
735 filename_wihout_ext, unused = filesystem.splitext(filename) | 735 filename_wihout_ext, unused = filesystem.splitext(filename) |
736 for suffix in ['-expected', '-expected-mismatch', '-ref', '-notref']: | 736 for suffix in ['-expected', '-expected-mismatch', '-ref', '-notref']: |
737 if filename_wihout_ext.endswith(suffix): | 737 if filename_wihout_ext.endswith(suffix): |
738 return True | 738 return True |
(...skipping 1021 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1760 | 1760 |
1761 class PhysicalTestSuite(object): | 1761 class PhysicalTestSuite(object): |
1762 def __init__(self, base, args): | 1762 def __init__(self, base, args): |
1763 self.name = base | 1763 self.name = base |
1764 self.base = base | 1764 self.base = base |
1765 self.args = args | 1765 self.args = args |
1766 self.tests = set() | 1766 self.tests = set() |
1767 | 1767 |
1768 def __repr__(self): | 1768 def __repr__(self): |
1769 return "PhysicalTestSuite('%s', '%s', %s)" % (self.name, self.base, self
.args) | 1769 return "PhysicalTestSuite('%s', '%s', %s)" % (self.name, self.base, self
.args) |
OLD | NEW |