Ejemplo n.º 1
0
 def testAppFullscreen(self):
     app = TestApp()
     resString = str(res.x) + "x" + str(res.y)
     app.CUSTOM_SETTINGS = {'app_resolution': resString}
     app.settings.set('app_fullscreen', 'true')
     app.testRun([
         lambda: self.assert_(player.isFullscreen()),
     ])
Ejemplo n.º 2
0
 def init(self):
     self.testInstance.assert_(not player.isFullscreen())
     rootNodeSize = player.getRootNode().size
     self.testInstance.assertEqual(rootNodeSize, TEST_RESOLUTION)
     
     # windowSize = player.getWindowResolution()
     # self.testInstance.assertEqual(windowSize, Point2D(TEST_RESOLUTION)/2)
     self.requestStop()
Ejemplo n.º 3
0
 def testAppFullscreen(self):
     app = TestApp()
     resString = str(res.x) + "x" + str(res.y)
     app.CUSTOM_SETTINGS = {'app_resolution': resString}
     app.settings.set('app_fullscreen', 'true')
     app.testRun([
             lambda: self.assert_(player.isFullscreen()),
             ])
Ejemplo n.º 4
0
            def init(self):
                self.testInstance.assert_(not player.isFullscreen())
                rootNodeSize = player.getRootNode().size
                self.testInstance.assertEqual(rootNodeSize, TEST_RESOLUTION)

                # windowSize = player.getWindowResolution()
                # self.testInstance.assertEqual(windowSize, Point2D(TEST_RESOLUTION)/2)
                self.requestStop()
Ejemplo n.º 5
0
 def testAppResolution(self):
     app = TestApp()
     app.testRun(
         [
             lambda: self.assertEquals(player.getRootNode().size, (160, 120)),
             lambda: self.assert_(not player.isFullscreen()),
         ]
     )
Ejemplo n.º 6
0
 def testAppResolution(self):
     app = TestApp()
     app.testRun([
         lambda: self.assertEquals(player.getRootNode().size, (160, 120)),
         lambda: self.assert_(not player.isFullscreen()),
     ])
Ejemplo n.º 7
0
 def init(self):
     self.testInstance.assert_(player.isFullscreen())
     rootNodeSize = player.getRootNode().size
     self.testInstance.assertEqual(rootNodeSize, resolution)
     self.requestStop()
Ejemplo n.º 8
0
 def init(self):
     self.testInstance.assert_(not player.isFullscreen())
     self.requestStop()
Ejemplo n.º 9
0
 def testAppFullscreen(self):
     app = TestApp()
     app.settings.set('app_fullscreen', 'true')
     app.testRun([
         lambda: self.assert_(player.isFullscreen()),
     ])
Ejemplo n.º 10
0
 def testAppFullscreen(self):
     app = TestApp()
     app.settings.set('app_fullscreen', 'true')
     app.testRun([
             lambda: self.assert_(player.isFullscreen()),
             ])
Ejemplo n.º 11
0
 def init(self):
     self.testInstance.assert_(player.isFullscreen())
     rootNodeSize = player.getRootNode().size
     self.testInstance.assertEqual(rootNodeSize, res)
     self.requestStop()
Ejemplo n.º 12
0
 def init(self):
     self.testInstance.assert_(not player.isFullscreen())
     self.requestStop()