Trigger the viewDocument call in gui test, which tests the tokenizer and converter as well
This commit is contained in:
+2
-2
@@ -242,7 +242,7 @@ class GuiMain(QMainWindow):
|
|||||||
tHandle = self.treeView.getSelectedHandle()
|
tHandle = self.treeView.getSelectedHandle()
|
||||||
if tHandle is None:
|
if tHandle is None:
|
||||||
logger.warning("No document selected")
|
logger.warning("No document selected")
|
||||||
return
|
return False
|
||||||
|
|
||||||
tItem = self.theProject.getItem(tHandle)
|
tItem = self.theProject.getItem(tHandle)
|
||||||
if tItem.itemType == nwItemType.FILE:
|
if tItem.itemType == nwItemType.FILE:
|
||||||
@@ -263,7 +263,7 @@ class GuiMain(QMainWindow):
|
|||||||
self.splitMain.setSizes(bPos)
|
self.splitMain.setSizes(bPos)
|
||||||
self.docEditor.changeWidth()
|
self.docEditor.changeWidth()
|
||||||
|
|
||||||
return
|
return True
|
||||||
|
|
||||||
##
|
##
|
||||||
# Tree Item Actions
|
# Tree Item Actions
|
||||||
|
|||||||
@@ -105,6 +105,10 @@ def testMainWindows(qtbot, nwTempGUI, nwRef):
|
|||||||
assert nwGUI.saveDocument()
|
assert nwGUI.saveDocument()
|
||||||
qtbot.wait(stepDelay)
|
qtbot.wait(stepDelay)
|
||||||
|
|
||||||
|
# Open and view the edited document
|
||||||
|
assert nwGUI.openDocument("31489056e0916")
|
||||||
|
assert nwGUI.viewDocument("31489056e0916")
|
||||||
|
|
||||||
# Check the files
|
# Check the files
|
||||||
projFile = path.join(nwTempGUI,"nwProject.nwx")
|
projFile = path.join(nwTempGUI,"nwProject.nwx")
|
||||||
assert cmpFiles(projFile, path.join(nwRef,"gui","1_nwProject.nwx"), [2])
|
assert cmpFiles(projFile, path.join(nwRef,"gui","1_nwProject.nwx"), [2])
|
||||||
|
|||||||
Reference in New Issue
Block a user