| 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 1326 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1337 if ignore_mode == 'very-flaky' or ignore_mode == 'maybe-flaky': | 1337 if ignore_mode == 'very-flaky' or ignore_mode == 'maybe-flaky': |
| 1338 return expectations.flakes_by_path(ignore_mode == 'very-flaky') | 1338 return expectations.flakes_by_path(ignore_mode == 'very-flaky') |
| 1339 if ignore_mode == 'unexpected': | 1339 if ignore_mode == 'unexpected': |
| 1340 return expectations.unexpected_results_by_path() | 1340 return expectations.unexpected_results_by_path() |
| 1341 _log.warning("Unexpected ignore mode: '%s'." % ignore_mode) | 1341 _log.warning("Unexpected ignore mode: '%s'." % ignore_mode) |
| 1342 return {} | 1342 return {} |
| 1343 | 1343 |
| 1344 def expectations_files(self): | 1344 def expectations_files(self): |
| 1345 return [self.path_to_generic_test_expectations_file()] + self._port_spec
ific_expectations_files() | 1345 return [self.path_to_generic_test_expectations_file()] + self._port_spec
ific_expectations_files() |
| 1346 | 1346 |
| 1347 def repository_paths(self): | 1347 def repository_path(self): |
| 1348 """Returns a list of (repository_name, repository_path) tuples of its de
pending code base.""" | 1348 """Returns the repository path for the chromium code base.""" |
| 1349 return [('blink', self.layout_tests_dir()), | 1349 return self.path_from_chromium_base('build') |
| 1350 ('chromium', self.path_from_chromium_base('build'))] | |
| 1351 | 1350 |
| 1352 _WDIFF_DEL = '##WDIFF_DEL##' | 1351 _WDIFF_DEL = '##WDIFF_DEL##' |
| 1353 _WDIFF_ADD = '##WDIFF_ADD##' | 1352 _WDIFF_ADD = '##WDIFF_ADD##' |
| 1354 _WDIFF_END = '##WDIFF_END##' | 1353 _WDIFF_END = '##WDIFF_END##' |
| 1355 | 1354 |
| 1356 def _format_wdiff_output_as_html(self, wdiff): | 1355 def _format_wdiff_output_as_html(self, wdiff): |
| 1357 wdiff = cgi.escape(wdiff) | 1356 wdiff = cgi.escape(wdiff) |
| 1358 wdiff = wdiff.replace(self._WDIFF_DEL, "<span class=del>") | 1357 wdiff = wdiff.replace(self._WDIFF_DEL, "<span class=del>") |
| 1359 wdiff = wdiff.replace(self._WDIFF_ADD, "<span class=add>") | 1358 wdiff = wdiff.replace(self._WDIFF_ADD, "<span class=add>") |
| 1360 wdiff = wdiff.replace(self._WDIFF_END, "</span>") | 1359 wdiff = wdiff.replace(self._WDIFF_END, "</span>") |
| (...skipping 428 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1789 class PhysicalTestSuite(object): | 1788 class PhysicalTestSuite(object): |
| 1790 def __init__(self, base, args, reference_args=None): | 1789 def __init__(self, base, args, reference_args=None): |
| 1791 self.name = base | 1790 self.name = base |
| 1792 self.base = base | 1791 self.base = base |
| 1793 self.args = args | 1792 self.args = args |
| 1794 self.reference_args = args if reference_args is None else reference_args | 1793 self.reference_args = args if reference_args is None else reference_args |
| 1795 self.tests = set() | 1794 self.tests = set() |
| 1796 | 1795 |
| 1797 def __repr__(self): | 1796 def __repr__(self): |
| 1798 return "PhysicalTestSuite('%s', '%s', %s, %s)" % (self.name, self.base,
self.args, self.reference_args) | 1797 return "PhysicalTestSuite('%s', '%s', %s, %s)" % (self.name, self.base,
self.args, self.reference_args) |
| OLD | NEW |