| 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 1495 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1506 # a dictionary mapping from symbol substrings to possibly disabled test dire
ctories. | 1506 # a dictionary mapping from symbol substrings to possibly disabled test dire
ctories. |
| 1507 # When the symbol substrings are not matched, the directories will be skippe
d. | 1507 # When the symbol substrings are not matched, the directories will be skippe
d. |
| 1508 # If ports don't ever enable certain features, then those directories can ju
st be | 1508 # If ports don't ever enable certain features, then those directories can ju
st be |
| 1509 # in the Skipped list instead of compile-time-checked here. | 1509 # in the Skipped list instead of compile-time-checked here. |
| 1510 def _missing_symbol_to_skipped_tests(self): | 1510 def _missing_symbol_to_skipped_tests(self): |
| 1511 """Return the supported feature dictionary. The keys are symbol-substrin
gs | 1511 """Return the supported feature dictionary. The keys are symbol-substrin
gs |
| 1512 and the values are the lists of directories to skip if that symbol is mi
ssing.""" | 1512 and the values are the lists of directories to skip if that symbol is mi
ssing.""" |
| 1513 return { | 1513 return { |
| 1514 "MathMLElement": ["mathml"], | 1514 "MathMLElement": ["mathml"], |
| 1515 "GraphicsLayer": ["compositing"], | 1515 "GraphicsLayer": ["compositing"], |
| 1516 "WebCoreHas3DRendering": ["animations/3d", "transforms/3d"], | |
| 1517 "WebGLShader": ["fast/canvas/webgl", "compositing/webgl", "http/test
s/canvas/webgl", "webgl"], | 1516 "WebGLShader": ["fast/canvas/webgl", "compositing/webgl", "http/test
s/canvas/webgl", "webgl"], |
| 1518 "MHTMLArchive": ["mhtml"], | 1517 "MHTMLArchive": ["mhtml"], |
| 1519 "CSSVariableValue": ["fast/css/variables", "inspector/styles/variabl
es"], | 1518 "CSSVariableValue": ["fast/css/variables", "inspector/styles/variabl
es"], |
| 1520 } | 1519 } |
| 1521 | 1520 |
| 1522 def _has_test_in_directories(self, directory_lists, test_list): | 1521 def _has_test_in_directories(self, directory_lists, test_list): |
| 1523 if not test_list: | 1522 if not test_list: |
| 1524 return False | 1523 return False |
| 1525 | 1524 |
| 1526 directories = itertools.chain.from_iterable(directory_lists) | 1525 directories = itertools.chain.from_iterable(directory_lists) |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1560 | 1559 |
| 1561 class VirtualTestSuite(object): | 1560 class VirtualTestSuite(object): |
| 1562 def __init__(self, name, base, args, tests=None): | 1561 def __init__(self, name, base, args, tests=None): |
| 1563 self.name = name | 1562 self.name = name |
| 1564 self.base = base | 1563 self.base = base |
| 1565 self.args = args | 1564 self.args = args |
| 1566 self.tests = tests or set() | 1565 self.tests = tests or set() |
| 1567 | 1566 |
| 1568 def __repr__(self): | 1567 def __repr__(self): |
| 1569 return "VirtualTestSuite('%s', '%s', %s)" % (self.name, self.base, self.
args) | 1568 return "VirtualTestSuite('%s', '%s', %s)" % (self.name, self.base, self.
args) |
| OLD | NEW |