예제 #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
    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
예제 #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
예제 #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()
예제 #5
0
파일: testapp.py 프로젝트: JohnChu/libavg
 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)
예제 #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)