Logo Search packages:      
Sourcecode: jockey version File versions  Download package

def ui::UITest::test_check_composite_enabled (   self  ) 

calling with --check-composite and already enabled driver

Definition at line 708 of file ui.py.

00708                                           :
        '''calling with --check-composite and already enabled driver'''

        sys.argv = ['ui-test', '--check-composite']
        ui = sandbox.TestUI()

        class XorgComp(XorgDriverHandler):
            def __init__(self, ui):
                XorgDriverHandler.__init__(self, ui, 'vanilla3d',
                    'mesa-vanilla', 'v3d', 'vanilla')
            def supports_composite(self):
                return True
            def enabled(self):
                return True

        h = XorgComp(ui)
        ui.handlers.add(h)

        self.assertEqual(ui.run(), 1)

        self.stop_capture()
        self.failIf(os.path.exists(self.open_app_log))
        self.assert_('already enabled' in self.stderr)
        self.assert_('already enabled' in self.stderr)


Generated by  Doxygen 1.6.0   Back to index