From fdd188516bf4673226667cfdd10a1413496b1474 Mon Sep 17 00:00:00 2001 From: "Veronica K. B. Olsen" <1619840+vkbo@users.noreply.github.com> Date: Wed, 10 Feb 2021 21:47:42 +0100 Subject: [PATCH] Update sample project and test --- sample/content/bc0cbd2a407f3.nwd | 2 ++ sample/nwProject.nwx | 12 ++++++------ tests/test_gui/test_gui_mainmenu.py | 4 ++++ 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/sample/content/bc0cbd2a407f3.nwd b/sample/content/bc0cbd2a407f3.nwd index 17524248..80f75eef 100644 --- a/sample/content/bc0cbd2a407f3.nwd +++ b/sample/content/bc0cbd2a407f3.nwd @@ -4,6 +4,7 @@ ### Another Scene @pov: John +@focus: Jane @location: Earth Adding more scenes to a chapter is as easy as adding more scene files, with a level three heading, or just adding another level three heading in the same file if that works for the way you want to structure your files. @@ -13,6 +14,7 @@ In fact, if you wish, you can add all the scenes in the chapter file too. All no ### More Scenes @pov: Jane +@focus: John @location: Earth This is a second scene in the same file as the previous scene. You can always split the files up later. diff --git a/sample/nwProject.nwx b/sample/nwProject.nwx index 4bc8a637..9fc95dda 100644 --- a/sample/nwProject.nwx +++ b/sample/nwProject.nwx @@ -1,13 +1,13 @@ - + Sample Project Sample Project Jane Smith Jay Doh - 886 - 158 - 42826 + 935 + 161 + 46219 False @@ -120,7 +120,7 @@ 1810 318 8 - 219 + 3 Another Scene @@ -132,7 +132,7 @@ 476 93 3 - 428 + 430 Interlude diff --git a/tests/test_gui/test_gui_mainmenu.py b/tests/test_gui/test_gui_mainmenu.py index f6504abf..50305184 100644 --- a/tests/test_gui/test_gui_mainmenu.py +++ b/tests/test_gui/test_gui_mainmenu.py @@ -500,6 +500,10 @@ def testGuiMenu_Insert(qtbot, monkeypatch, nwGUI, fncDir, fncProj): nwGUI.mainMenu.mInsKWItems[nwKeyWords.POV_KEY][0].activate(QAction.Trigger) assert nwGUI.docEditor.getText() == "Stuff\n%s: " % nwKeyWords.POV_KEY + nwGUI.docEditor.setText("Stuff") + nwGUI.mainMenu.mInsKWItems[nwKeyWords.FOCUS_KEY][0].activate(QAction.Trigger) + assert nwGUI.docEditor.getText() == "Stuff\n%s: " % nwKeyWords.FOCUS_KEY + nwGUI.docEditor.setText("Stuff") nwGUI.mainMenu.mInsKWItems[nwKeyWords.CHAR_KEY][0].activate(QAction.Trigger) assert nwGUI.docEditor.getText() == "Stuff\n%s: " % nwKeyWords.CHAR_KEY