Ejemplo n.º 1
0
    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
Ejemplo n.º 2
0
    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
Ejemplo n.º 3
0
    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
Ejemplo n.º 4
0
 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()
Ejemplo n.º 5
0
 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)
Ejemplo n.º 6
0
 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)