def output_proc(self): if self._expected_exception is not None: return test262.ExceptionOutProc(self.expected_outcomes, self._expected_exception) if self.expected_outcomes == outproc.OUTCOMES_PASS: return test262.PASS_NO_EXCEPTION return test262.NoExceptionOutProc(self.expected_outcomes)
def output_proc(self): if self._expected_exception is not None: return test262.ExceptionOutProc(self.expected_outcomes, self._expected_exception, self._fail_phase_reverse) else: # We only support fail phase reverse on tests that expect an exception. assert not self._fail_phase_reverse if self.expected_outcomes == outproc.OUTCOMES_PASS: return test262.PASS_NO_EXCEPTION return test262.NoExceptionOutProc(self.expected_outcomes)