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)

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

        self.assert_('already enabled' in self.stderr)
        self.assert_('already enabled' in self.stderr)

Generated by  Doxygen 1.6.0   Back to index