예제 #1
0
class BrowserTestCase(unittest.TestCase):
    def testBrowser(self):
        logging.debug(self.__class__.__name__ +': testRun()')
        self.app=Application(sys.argv)
        self.app.mainWindow().setWindowTitle("test Browser")
        self.plugin=BrowserPlugin(self.app)
        self.plugin.startUp()
        self.tab = BrowserTab(self.app.mainWindow())
        self.controller = BrowserTabController(self.plugin)
        self.controller.setDataAccessor(TestDataAccessor())
        self.tab.setController(self.controller)
        self.app.mainWindow().addTab(self.tab)
        self.controller.updateContent()
        self.controller.updateViewMenu()
        if not hasattr(unittest,"NO_GUI_TEST"):
            self.app.run()
예제 #2
0
 def startUp(self):
     BrowserPlugin.startUp(self)
     self._fillEventNavigatorMenu()
예제 #3
0
 def startUp(self):
     BrowserPlugin.startUp(self)
     self._fillEventNavigatorMenu()
예제 #4
0
 def startUp(self):
     BrowserPlugin.startUp(self)
     self.addCenterView(NoneView)
     self.addCenterView(ConnectionStructureView,True)
     self.addCenterView(SequenceStructureView)
예제 #5
0
 def startUp(self):
     BrowserPlugin.startUp(self)
     self.addCenterView(NoneView)
     self.addCenterView(ConnectionStructureView, True)
     self.addCenterView(SequenceStructureView)