def __init__(self, testFuncName): unittest.TestCase.__init__(self, testFuncName) player.enableGLErrorChecks(True) self.__testFuncName = testFuncName self.__logger = avg.logger self.__skipped = False self.__warnOnImageDiff = False
def __init__(self, testFuncName): unittest.TestCase.__init__(self, testFuncName) player.enableGLErrorChecks(True) logger.configureCategory("MEMORY", logger.Severity.ERR) logger.configureCategory("DEPREC", logger.Severity.ERR) self.__testFuncName = testFuncName self.__logger = avg.logger self.__skipped = False self.__warnOnImageDiff = False self.__mouseEmulator = None
def __init__(self, testFuncName): unittest.TestCase.__init__(self, testFuncName) player.enableGLErrorChecks(True) logger.configureCategory("MEMORY", logger.Severity.ERR); logger.configureCategory("DEPREC", logger.Severity.ERR); self.__testFuncName = testFuncName self.__logger = avg.logger self.__skipped = False self.__warnOnImageDiff = False self.__mouseEmulator = None
def __dumpConfig(self): player.enableGLErrorChecks(True) avg.logger.pushCategories() avg.logger.setCategories(avg.logger.APP | avg.logger.CONFIG | avg.logger.DEPRECATION) player.loadString(""" <avg id="avg" width="160" height="120"> </avg> """) player.setTimeout(0, player.stop) player.setFramerate(10000) player.play() avg.logger.popCategories()
def __dumpConfig(self): player.enableGLErrorChecks(True) cats = avg.logger.getCategories() for cat in [avg.logger.Category.APP, avg.logger.Category.CONFIG, avg.logger.Category.DEPREC]: avg.logger.configureCategory(cat, avg.logger.Severity.INFO) player.loadString(""" <avg id="avg" width="160" height="120"> </avg> """) player.setTimeout(0, player.stop) player.setFramerate(10000) player.play() for cat, severity in cats.iteritems(): avg.logger.configureCategory(cat, severity)
def __dumpConfig(self): player.enableGLErrorChecks(True) cats = avg.logger.getCategories() for cat in [ avg.logger.Category.APP, avg.logger.Category.CONFIG, avg.logger.Category.DEPREC ]: avg.logger.configureCategory(cat, avg.logger.Severity.INFO) player.loadString(""" <avg id="avg" width="160" height="120"> </avg> """) player.setTimeout(0, player.stop) player.setFramerate(10000) player.play() for cat, severity in cats.iteritems(): avg.logger.configureCategory(cat, severity)