示例#1
0
文件: testcfg.py 项目: ttgg-lancer/v8
 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)
示例#2
0
    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)