Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(75)

Side by Side Diff: Tools/Scripts/webkitpy/layout_tests/port/base.py

Issue 378113003: Modifications to layout test framework so that it can work with browser_tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Removed get_port_class_name() override. Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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'])
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 1043 matching lines...) Expand 10 before | Expand all | Expand 10 after
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)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698