devtools/qunit.py
changeset 8692 40d4ba3589be
parent 8261 d4d9c88d4a5f
child 8695 358d8bed9626
equal deleted inserted replaced
8691:fa1e27a93fb2 8692:40d4ba3589be
   187                     yield InnerTest(test_name, lambda : 1)
   187                     yield InnerTest(test_name, lambda : 1)
   188                 else:
   188                 else:
   189                     yield InnerTest(test_name, self.fail, msg)
   189                     yield InnerTest(test_name, self.fail, msg)
   190             except Empty:
   190             except Empty:
   191                 error = True
   191                 error = True
   192                 yield InnerTest(test_file, raise_exception, RuntimeError, "%s did not report execution end. %i test processed so far." % (test_file, test_count))
   192                 msg = '%s inactivity timeout (%is). %i test results received'
   193 
   193                 yield InnerTest(test_file, raise_exception, RuntimeError,
       
   194                                  msg % (test_file, timeout, test_count))
   194         browser.stop()
   195         browser.stop()
   195         if test_count <= 0 and not error:
   196         if test_count <= 0 and not error:
   196             yield InnerTest(test_name, raise_exception, RuntimeError, 'No test yielded by qunit for %s' % test_file)
   197             yield InnerTest(test_name, raise_exception, RuntimeError,
       
   198                             'No test yielded by qunit for %s' % test_file)
   197 
   199 
   198 class QUnitResultController(Controller):
   200 class QUnitResultController(Controller):
   199 
   201 
   200     __regid__ = 'qunit_result'
   202     __regid__ = 'qunit_result'
   201 
   203