Skip to content

Commit

Permalink
Fix further calls to createDialogByName.
Browse files Browse the repository at this point in the history
Refs #9756
  • Loading branch information
martyngigg committed Jun 30, 2014
1 parent e8b6857 commit ff472ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Code/Mantid/MantidPlot/test/MantidPlotAlgorithmDialogTest.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@ class MantidPlotAlgorithmDialogTest(unittest.TestCase):
def test_OpenDialog(self):
interface_manager = mantidqtpython.MantidQt.API.InterfaceManager()
parent = None
dialog = threadsafe_call( interface_manager.createDialogFromName, self.__target_algorithm__, parent, self.__clean_properties__)
dialog = threadsafe_call( interface_manager.createDialogFromName, self.__target_algorithm__, -1, parent, self.__clean_properties__)
is_instance_of_alg_dialog = isinstance(dialog, mantidqtpython.MantidQt.API.AlgorithmDialog)
self.assertEqual(is_instance_of_alg_dialog, True, "Did not get an AlgorithmDialog instance back.")
threadsafe_call( dialog.close )

def test_ScreenShotDialog(self):
interface_manager = mantidqtpython.MantidQt.API.InterfaceManager()
parent = None
dialog = threadsafe_call( interface_manager.createDialogFromName, self.__target_algorithm__, parent, self.__clean_properties__)
dialog = threadsafe_call( interface_manager.createDialogFromName, self.__target_algorithm__, -1, parent, self.__clean_properties__)
screenshotdir = tempfile.gettempdir();
filename = "CreateMDWorkspace_screenshot.png"
screenshot_to_dir(widget=dialog, filename=filename, screenshot_dir=screenshotdir)
Expand Down

0 comments on commit ff472ed

Please sign in to comment.