summaryrefslogtreecommitdiff
path: root/kde-apps/artikulate/files/artikulate-25.08.2-editorsession-test.patch
blob: db101c0deba62f80b59b0a5a1a5167f584393141 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
From b527ac775a6a5f1991c924720bd47802f48ad1c5 Mon Sep 17 00:00:00 2001
From: Andreas Cord-Landwehr <cordlandwehr@kde.org>
Date: Sat, 6 Sep 2025 18:00:02 +0200
Subject: [PATCH] Fix editorsession test

---
 autotests/unittests/editorsession/test_editorsession.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/autotests/unittests/editorsession/test_editorsession.cpp b/autotests/unittests/editorsession/test_editorsession.cpp
index f0859d12..fd9a4a20 100644
--- a/autotests/unittests/editorsession/test_editorsession.cpp
+++ b/autotests/unittests/editorsession/test_editorsession.cpp
@@ -159,7 +159,8 @@ void TestEditorSession::iterateCourse()
 
     // session assumed to initialize with first units's first phrase
     QCOMPARE(session.activeUnit(), unitA.get());
-    QCOMPARE(session.activePhrase()->self(), phraseA1);
+    // activating a unit shall not automatially select a phrase
+    QVERIFY(session.activePhrase() == nullptr);
     QVERIFY(course.get() == session.course());
 
     // test direct unit setters
-- 
GitLab