Chromium Code Reviews| 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 716 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 727 return tests | 727 return tests |
| 728 | 728 |
| 729 def _real_tests(self, paths): | 729 def _real_tests(self, paths): |
| 730 # When collecting test cases, skip these directories | 730 # When collecting test cases, skip these directories |
| 731 skipped_directories = set(['.svn', '_svn', 'platform', 'resources', 'scr ipt-tests', 'reference', 'reftest']) | 731 skipped_directories = set(['.svn', '_svn', 'platform', 'resources', 'scr ipt-tests', 'reference', 'reftest']) |
| 732 files = find_files.find(self._filesystem, self.layout_tests_dir(), paths , skipped_directories, Port.is_test_file, self.test_key) | 732 files = find_files.find(self._filesystem, self.layout_tests_dir(), paths , skipped_directories, Port.is_test_file, self.test_key) |
| 733 return [self.relative_test_filename(f) for f in files] | 733 return [self.relative_test_filename(f) for f in files] |
| 734 | 734 |
| 735 # When collecting test cases, we include any file with these extensions. | 735 # When collecting test cases, we include any file with these extensions. |
| 736 _supported_file_extensions = set(['.html', '.xml', '.xhtml', '.xht', '.pl', | 736 _supported_file_extensions = set(['.html', '.xml', '.xhtml', '.xht', '.pl', |
| 737 '.htm', '.php', '.svg', '.mht']) | 737 '.htm', '.php', '.svg', '.mht', '.pdf']) |
|
ivandavid
2014/07/10 22:39:09
Added so that the framework can look for .pdf test
| |
| 738 | 738 |
| 739 @staticmethod | 739 @staticmethod |
| 740 # If any changes are made here be sure to update the isUsedInReftest method in old-run-webkit-tests as well. | 740 # If any changes are made here be sure to update the isUsedInReftest method in old-run-webkit-tests as well. |
| 741 def is_reference_html_file(filesystem, dirname, filename): | 741 def is_reference_html_file(filesystem, dirname, filename): |
| 742 if filename.startswith('ref-') or filename.startswith('notref-'): | 742 if filename.startswith('ref-') or filename.startswith('notref-'): |
| 743 return True | 743 return True |
| 744 filename_wihout_ext, unused = filesystem.splitext(filename) | 744 filename_wihout_ext, unused = filesystem.splitext(filename) |
| 745 for suffix in ['-expected', '-expected-mismatch', '-ref', '-notref']: | 745 for suffix in ['-expected', '-expected-mismatch', '-ref', '-notref']: |
| 746 if filename_wihout_ext.endswith(suffix): | 746 if filename_wihout_ext.endswith(suffix): |
| 747 return True | 747 return True |
| (...skipping 780 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1528 return [ | 1528 return [ |
| 1529 # For example, to turn on force-compositing-mode in the svg/ directo ry: | 1529 # For example, to turn on force-compositing-mode in the svg/ directo ry: |
| 1530 # PhysicalTestSuite('svg', | 1530 # PhysicalTestSuite('svg', |
| 1531 # ['--force-compositing-mode']), | 1531 # ['--force-compositing-mode']), |
| 1532 ] | 1532 ] |
| 1533 | 1533 |
| 1534 def virtual_test_suites(self): | 1534 def virtual_test_suites(self): |
| 1535 return [ | 1535 return [ |
| 1536 VirtualTestSuite('gpu', | 1536 VirtualTestSuite('gpu', |
| 1537 'fast/canvas', | 1537 'fast/canvas', |
| 1538 ['--enable-accelerated-2d-canvas']), | 1538 ['--enable-accelerated-2d-canvas']), |
|
ivandavid
2014/07/10 22:39:09
All of this VirtualTestSuite stuff is the undoing
| |
| 1539 VirtualTestSuite('gpu', | 1539 VirtualTestSuite('gpu', |
| 1540 'canvas/philip', | 1540 'canvas/philip', |
| 1541 ['--enable-accelerated-2d-canvas']), | 1541 ['--enable-accelerated-2d-canvas']), |
| 1542 VirtualTestSuite('threaded', | 1542 VirtualTestSuite('threaded', |
| 1543 'compositing/visibility', | 1543 'compositing/visibility', |
| 1544 ['--enable-threaded-compositing']), | 1544 ['--enable-threaded-compositing']), |
| 1545 VirtualTestSuite('threaded', | 1545 VirtualTestSuite('threaded', |
| 1546 'compositing/webgl', | 1546 'compositing/webgl', |
| 1547 ['--enable-threaded-compositing']), | 1547 ['--enable-threaded-compositing']), |
| 1548 VirtualTestSuite('softwarecompositing', | 1548 VirtualTestSuite('softwarecompositing', |
| (...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1791 | 1791 |
| 1792 class PhysicalTestSuite(object): | 1792 class PhysicalTestSuite(object): |
| 1793 def __init__(self, base, args): | 1793 def __init__(self, base, args): |
| 1794 self.name = base | 1794 self.name = base |
| 1795 self.base = base | 1795 self.base = base |
| 1796 self.args = args | 1796 self.args = args |
| 1797 self.tests = set() | 1797 self.tests = set() |
| 1798 | 1798 |
| 1799 def __repr__(self): | 1799 def __repr__(self): |
| 1800 return "PhysicalTestSuite('%s', '%s', %s)" % (self.name, self.base, self .args) | 1800 return "PhysicalTestSuite('%s', '%s', %s)" % (self.name, self.base, self .args) |
| OLD | NEW |