Changes in src/sas/qtgui/MainWindow/UnitTesting/MainWindowTest.py [8353d90:53c771e] in sasview
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/MainWindow/UnitTesting/MainWindowTest.py
r8353d90 r53c771e 15 15 from sas.qtgui.MainWindow.MainWindow import SplashScreen 16 16 from sas.qtgui.MainWindow.GuiManager import GuiManager 17 from sas.qtgui.Perspectives.Fitting import FittingPerspective18 17 19 18 if not QtWidgets.QApplication.instance(): … … 41 40 self.assertIsInstance(splash, QtWidgets.QSplashScreen) 42 41 43 def testWidgets(self):44 """ Test enablement/disablement of widgets """45 # Open the main window46 tmp_main = MainSasViewWindow(None)47 tmp_main.showMaximized()48 # See that only one subwindow is up49 self.assertEqual(len(tmp_main.workspace.subWindowList()), 1)50 # and that the subwindow is the fitting perspective51 self.assertIsInstance(tmp_main.workspace.subWindowList()[0].widget(),52 FittingPerspective.FittingWindow)53 # Show the message widget54 tmp_main.guiManager.showWelcomeMessage()55 # Assure it is visible and a part of the MdiArea56 self.assertTrue(tmp_main.guiManager.welcomePanel.isVisible())57 self.assertEqual(len(tmp_main.workspace.subWindowList()), 2)58 59 tmp_main.close()60 61 42 def testExit(self): 62 43 """
Note: See TracChangeset
for help on using the changeset viewer.