Lines Matching refs:expectation

41 # Test expectation and specifier constants.
43 # FIXME: range() starts with 0 which makes if expectation checks harder
153 expectations = [expectation.lower() for expectation in expectation_line.expectations]
167 expectation = TestExpectations.expectation_from_string(part)
168 if expectation is None: # Careful, PASS is currently 0.
169 expectation_line.warnings.append('Unsupported expectation: %s' % part)
171 result.add(expectation)
247 The new format for a test expectation line is:
328 warnings.append('Unrecognized expectation "%s"' % token)
370 """Initializes a blank-line equivalent of an expectation."""
509 for expectation in expectations:
510 expectation = expectation.upper()
511 new_expectations.append(TestExpectationParser._inverted_expectation_tokens.get(expectation, expectation))
579 def get_test_set(self, expectation, include_skips=True):
580 tests = self._expectation_to_tests[expectation]
624 for expectation in expectations:
625 retval.append(self.expectation_to_string(expectation))
629 def expectation_to_string(self, expectation):
630 """Return the uppercased string equivalent of a given expectation."""
632 if item[1] == expectation:
634 raise ValueError(expectation)
667 for expectation in expectation_line.parsed_expectations:
668 self._expectation_to_tests[expectation].add(test)
722 # We've moved on to a new expectation file, which overrides older ones.
849 assert(' ' not in string) # This only handles one expectation at a time.
988 def get_test_set(self, expectation, include_skips=True):
989 return self._model.get_test_set(expectation, include_skips)
998 def expectation_to_string(self, expectation):
999 return self._model.expectation_to_string(expectation)
1019 for expectation in self._expectations:
1020 for warning in expectation.warnings:
1021 warnings.append('%s:%s %s %s' % (self._shorten_filename(expectation.filename), expectation.line_numbers,
1022 warning, expectation.name if expectation.expectations else expectation.original_string))
1047 for expectation in self._expectations:
1048 if expectation.name != test or not expectation.parsed_expectations:
1050 if test_configuration not in expectation.matching_configurations:
1053 expectation.matching_configurations.remove(test_configuration)
1054 if expectation.matching_configurations:
1055 modified_expectations.append(expectation)
1057 expectations_to_remove.append(expectation)
1059 for expectation in expectations_to_remove:
1060 index = self._expectations.index(expectation)
1061 self._expectations.remove(expectation)