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

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

Issue 15592005: support .xht directly so we do not have to rename files during w3c imports (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 7 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 | Annotate | Revision Log
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 585 matching lines...) Expand 10 before | Expand all | Expand 10 after
596 596
597 return expanded_paths 597 return expanded_paths
598 598
599 def _real_tests(self, paths): 599 def _real_tests(self, paths):
600 # When collecting test cases, skip these directories 600 # When collecting test cases, skip these directories
601 skipped_directories = set(['.svn', '_svn', 'resources', 'script-tests', 'reference', 'reftest']) 601 skipped_directories = set(['.svn', '_svn', 'resources', 'script-tests', 'reference', 'reftest'])
602 files = find_files.find(self._filesystem, self.layout_tests_dir(), paths , skipped_directories, Port.is_test_file, self.test_key) 602 files = find_files.find(self._filesystem, self.layout_tests_dir(), paths , skipped_directories, Port.is_test_file, self.test_key)
603 return [self.relative_test_filename(f) for f in files] 603 return [self.relative_test_filename(f) for f in files]
604 604
605 # When collecting test cases, we include any file with these extensions. 605 # When collecting test cases, we include any file with these extensions.
606 _supported_file_extensions = set(['.html', '.xml', '.xhtml', '.pl', 606 _supported_file_extensions = set(['.html', '.xml', '.xhtml', '.xht', '.pl',
ojan 2013/05/22 00:22:06 Do we not have any tests of what extensions we sup
607 '.htm', '.php', '.svg', '.mht']) 607 '.htm', '.php', '.svg', '.mht'])
608 608
609 @staticmethod 609 @staticmethod
610 # If any changes are made here be sure to update the isUsedInReftest method in old-run-webkit-tests as well. 610 # If any changes are made here be sure to update the isUsedInReftest method in old-run-webkit-tests as well.
611 def is_reference_html_file(filesystem, dirname, filename): 611 def is_reference_html_file(filesystem, dirname, filename):
612 if filename.startswith('ref-') or filename.startswith('notref-'): 612 if filename.startswith('ref-') or filename.startswith('notref-'):
613 return True 613 return True
614 filename_wihout_ext, unused = filesystem.splitext(filename) 614 filename_wihout_ext, unused = filesystem.splitext(filename)
615 for suffix in ['-expected', '-expected-mismatch', '-ref', '-notref']: 615 for suffix in ['-expected', '-expected-mismatch', '-ref', '-notref']:
616 if filename_wihout_ext.endswith(suffix): 616 if filename_wihout_ext.endswith(suffix):
(...skipping 892 matching lines...) Expand 10 before | Expand all | Expand 10 after
1509 1509
1510 class VirtualTestSuite(object): 1510 class VirtualTestSuite(object):
1511 def __init__(self, name, base, args, tests=None): 1511 def __init__(self, name, base, args, tests=None):
1512 self.name = name 1512 self.name = name
1513 self.base = base 1513 self.base = base
1514 self.args = args 1514 self.args = args
1515 self.tests = tests or set() 1515 self.tests = tests or set()
1516 1516
1517 def __repr__(self): 1517 def __repr__(self):
1518 return "VirtualTestSuite('%s', '%s', %s)" % (self.name, self.base, self. args) 1518 return "VirtualTestSuite('%s', '%s', %s)" % (self.name, self.base, self. args)
OLDNEW
« no previous file with comments | « no previous file | Tools/Scripts/webkitpy/w3c/test_importer.py » ('j') | Tools/Scripts/webkitpy/w3c/test_importer.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698