Update test coverage
This commit is contained in:
@@ -35,6 +35,8 @@ Some “ double quoted text with spaces padded ”.
|
|||||||
|
|
||||||
Add space before this colon : See?
|
Add space before this colon : See?
|
||||||
|
|
||||||
|
But don’t add a double space : See?
|
||||||
|
|
||||||
“Tab-indented text”
|
“Tab-indented text”
|
||||||
|
|
||||||
>“Paragraph-indented text”
|
>“Paragraph-indented text”
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<?xml version='1.0' encoding='utf-8'?>
|
<?xml version='1.0' encoding='utf-8'?>
|
||||||
<novelWriterXML appVersion="1.7-beta1" hexVersion="0x010700b1" fileVersion="1.4" timeStamp="2022-09-29 19:57:40">
|
<novelWriterXML appVersion="1.7-beta1" hexVersion="0x010700b1" fileVersion="1.4" timeStamp="2022-10-01 22:33:13">
|
||||||
<project>
|
<project>
|
||||||
<name>New Project</name>
|
<name>New Project</name>
|
||||||
<title>New Novel</title>
|
<title>New Novel</title>
|
||||||
@@ -17,8 +17,8 @@
|
|||||||
<lastViewed>None</lastViewed>
|
<lastViewed>None</lastViewed>
|
||||||
<lastNovel>0000000000008</lastNovel>
|
<lastNovel>0000000000008</lastNovel>
|
||||||
<lastOutline>0000000000008</lastOutline>
|
<lastOutline>0000000000008</lastOutline>
|
||||||
<lastWordCount>145</lastWordCount>
|
<lastWordCount>153</lastWordCount>
|
||||||
<novelWordCount>118</novelWordCount>
|
<novelWordCount>126</novelWordCount>
|
||||||
<notesWordCount>27</notesWordCount>
|
<notesWordCount>27</notesWordCount>
|
||||||
<autoReplace/>
|
<autoReplace/>
|
||||||
<titleFormat>
|
<titleFormat>
|
||||||
@@ -59,7 +59,7 @@
|
|||||||
<name status="s000000" import="i000004" exported="True">New Chapter</name>
|
<name status="s000000" import="i000004" exported="True">New Chapter</name>
|
||||||
</item>
|
</item>
|
||||||
<item handle="000000000000f" parent="000000000000d" root="0000000000008" order="1" type="FILE" class="NOVEL" layout="DOCUMENT">
|
<item handle="000000000000f" parent="000000000000d" root="0000000000008" order="1" type="FILE" class="NOVEL" layout="DOCUMENT">
|
||||||
<meta expanded="False" charCount="693" wordCount="111" paraCount="12" cursorPos="917"/>
|
<meta expanded="False" charCount="728" wordCount="119" paraCount="13" cursorPos="954"/>
|
||||||
<name status="s000000" import="i000004" exported="True">New Scene</name>
|
<name status="s000000" import="i000004" exported="True">New Scene</name>
|
||||||
</item>
|
</item>
|
||||||
<item handle="0000000000009" parent="None" root="0000000000009" order="1" type="ROOT" class="PLOT">
|
<item handle="0000000000009" parent="None" root="0000000000009" order="1" type="ROOT" class="PLOT">
|
||||||
|
|||||||
@@ -412,6 +412,7 @@ def testGuiMain_Editing(qtbot, monkeypatch, nwGUI, fncProj, refDir, outDir, mock
|
|||||||
# Insert spaces before and after quotes
|
# Insert spaces before and after quotes
|
||||||
nwGUI.mainConf.fmtPadBefore = "\u201d"
|
nwGUI.mainConf.fmtPadBefore = "\u201d"
|
||||||
nwGUI.mainConf.fmtPadAfter = "\u201c"
|
nwGUI.mainConf.fmtPadAfter = "\u201c"
|
||||||
|
nwGUI.docEditor.initEditor()
|
||||||
|
|
||||||
for c in "Some \"double quoted text with spaces padded\".":
|
for c in "Some \"double quoted text with spaces padded\".":
|
||||||
qtbot.keyClick(nwGUI.docEditor, c, delay=typeDelay)
|
qtbot.keyClick(nwGUI.docEditor, c, delay=typeDelay)
|
||||||
@@ -420,9 +421,11 @@ def testGuiMain_Editing(qtbot, monkeypatch, nwGUI, fncProj, refDir, outDir, mock
|
|||||||
|
|
||||||
nwGUI.mainConf.fmtPadBefore = ""
|
nwGUI.mainConf.fmtPadBefore = ""
|
||||||
nwGUI.mainConf.fmtPadAfter = ""
|
nwGUI.mainConf.fmtPadAfter = ""
|
||||||
|
nwGUI.docEditor.initEditor()
|
||||||
|
|
||||||
# Insert spaces before colon, but ignore tags and synopsis
|
# Insert spaces before colon, but ignore tags and synopsis
|
||||||
nwGUI.mainConf.fmtPadBefore = ":"
|
nwGUI.mainConf.fmtPadBefore = ":"
|
||||||
|
nwGUI.docEditor.initEditor()
|
||||||
|
|
||||||
for c in "@object: NoSpaceAdded":
|
for c in "@object: NoSpaceAdded":
|
||||||
qtbot.keyClick(nwGUI.docEditor, c, delay=typeDelay)
|
qtbot.keyClick(nwGUI.docEditor, c, delay=typeDelay)
|
||||||
@@ -439,7 +442,13 @@ def testGuiMain_Editing(qtbot, monkeypatch, nwGUI, fncProj, refDir, outDir, mock
|
|||||||
qtbot.keyClick(nwGUI.docEditor, Qt.Key_Return, delay=keyDelay)
|
qtbot.keyClick(nwGUI.docEditor, Qt.Key_Return, delay=keyDelay)
|
||||||
qtbot.keyClick(nwGUI.docEditor, Qt.Key_Return, delay=keyDelay)
|
qtbot.keyClick(nwGUI.docEditor, Qt.Key_Return, delay=keyDelay)
|
||||||
|
|
||||||
|
for c in "But don't add a double space : See?":
|
||||||
|
qtbot.keyClick(nwGUI.docEditor, c, delay=typeDelay)
|
||||||
|
qtbot.keyClick(nwGUI.docEditor, Qt.Key_Return, delay=keyDelay)
|
||||||
|
qtbot.keyClick(nwGUI.docEditor, Qt.Key_Return, delay=keyDelay)
|
||||||
|
|
||||||
nwGUI.mainConf.fmtPadBefore = ""
|
nwGUI.mainConf.fmtPadBefore = ""
|
||||||
|
nwGUI.docEditor.initEditor()
|
||||||
|
|
||||||
# Indent and Align
|
# Indent and Align
|
||||||
# ================
|
# ================
|
||||||
|
|||||||
Reference in New Issue
Block a user