Update documentation and test with synopsis insert feature
This commit is contained in:
@@ -137,6 +137,7 @@ a key or key combination for the inserted content.
|
|||||||
":kbd:`Ctrl`:kbd:`K`, :kbd:`F`", "Insert a ``@focus`` keyword."
|
":kbd:`Ctrl`:kbd:`K`, :kbd:`F`", "Insert a ``@focus`` keyword."
|
||||||
":kbd:`Ctrl`:kbd:`K`, :kbd:`C`", "Insert a ``@char`` keyword."
|
":kbd:`Ctrl`:kbd:`K`, :kbd:`C`", "Insert a ``@char`` keyword."
|
||||||
":kbd:`Ctrl`:kbd:`K`, :kbd:`P`", "Insert a ``@plot`` keyword."
|
":kbd:`Ctrl`:kbd:`K`, :kbd:`P`", "Insert a ``@plot`` keyword."
|
||||||
|
":kbd:`Ctrl`:kbd:`K`, :kbd:`S`", "Insert a synopsis comment."
|
||||||
":kbd:`Ctrl`:kbd:`K`, :kbd:`T`", "Insert a ``@time`` keyword."
|
":kbd:`Ctrl`:kbd:`K`, :kbd:`T`", "Insert a ``@time`` keyword."
|
||||||
":kbd:`Ctrl`:kbd:`K`, :kbd:`L`", "Insert a ``@location`` keyword."
|
":kbd:`Ctrl`:kbd:`K`, :kbd:`L`", "Insert a ``@location`` keyword."
|
||||||
":kbd:`Ctrl`:kbd:`K`, :kbd:`O`", "Insert an ``@object`` keyword."
|
":kbd:`Ctrl`:kbd:`K`, :kbd:`O`", "Insert an ``@object`` keyword."
|
||||||
|
|||||||
@@ -537,9 +537,8 @@ def testGuiMenu_Insert(qtbot, monkeypatch, nwGUI, fncDir, fncProj, mockRnd):
|
|||||||
assert nwGUI.docEditor.getText() == nwUnicode.U_THNBSP
|
assert nwGUI.docEditor.getText() == nwUnicode.U_THNBSP
|
||||||
nwGUI.docEditor.clear()
|
nwGUI.docEditor.clear()
|
||||||
|
|
||||||
##
|
# Insert Keywords
|
||||||
# Insert Keywords
|
# ===============
|
||||||
##
|
|
||||||
|
|
||||||
nwGUI.docEditor.setText("Stuff")
|
nwGUI.docEditor.setText("Stuff")
|
||||||
nwGUI.mainMenu.mInsKWItems[nwKeyWords.TAG_KEY][0].activate(QAction.Trigger)
|
nwGUI.mainMenu.mInsKWItems[nwKeyWords.TAG_KEY][0].activate(QAction.Trigger)
|
||||||
@@ -589,9 +588,15 @@ def testGuiMenu_Insert(qtbot, monkeypatch, nwGUI, fncDir, fncProj, mockRnd):
|
|||||||
|
|
||||||
nwGUI.docEditor.clear()
|
nwGUI.docEditor.clear()
|
||||||
|
|
||||||
##
|
# Insert Special Comments
|
||||||
# Insert Break or Space
|
# =======================
|
||||||
##
|
|
||||||
|
nwGUI.docEditor.setText("Stuff\n")
|
||||||
|
nwGUI.mainMenu.aInsSynopsis.activate(QAction.Trigger)
|
||||||
|
assert nwGUI.docEditor.getText() == "Stuff\n% Synopsis: \n"
|
||||||
|
|
||||||
|
# Insert Break or Space
|
||||||
|
# =====================
|
||||||
|
|
||||||
nwGUI.docEditor.setText("### Stuff\n")
|
nwGUI.docEditor.setText("### Stuff\n")
|
||||||
nwGUI.mainMenu.aInsNewPage.activate(QAction.Trigger)
|
nwGUI.mainMenu.aInsNewPage.activate(QAction.Trigger)
|
||||||
@@ -607,9 +612,8 @@ def testGuiMenu_Insert(qtbot, monkeypatch, nwGUI, fncDir, fncProj, mockRnd):
|
|||||||
|
|
||||||
nwGUI.docEditor.clear()
|
nwGUI.docEditor.clear()
|
||||||
|
|
||||||
##
|
# Insert Text from File
|
||||||
# Insert text from file
|
# =====================
|
||||||
##
|
|
||||||
|
|
||||||
nwGUI.closeDocument()
|
nwGUI.closeDocument()
|
||||||
|
|
||||||
@@ -645,9 +649,8 @@ def testGuiMenu_Insert(qtbot, monkeypatch, nwGUI, fncDir, fncProj, mockRnd):
|
|||||||
nwGUI.mainMenu.aImportFile.activate(QAction.Trigger)
|
nwGUI.mainMenu.aImportFile.activate(QAction.Trigger)
|
||||||
assert nwGUI.docEditor.getText() == "Foo"
|
assert nwGUI.docEditor.getText() == "Foo"
|
||||||
|
|
||||||
##
|
# Reveal File Location
|
||||||
# Reveal file location
|
# ====================
|
||||||
##
|
|
||||||
|
|
||||||
theMessage = ""
|
theMessage = ""
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user