Make TestXmlReader/TestXmlReaderWithoutSpaces handle translated error messages

Authored by kossebau on Jul 1 2016, 1:44 PM.

Description

Make TestXmlReader/TestXmlReaderWithoutSpaces handle translated error messages

Summary:
Linking KI18n results in Qt translations being loaded on start. And
QXmlStreamReader, used internally by KoXmlDocument, returns translated error messages.
So running in a non-en locale still testing the english strings will fail.

Checking undocumented error strings is fragile already, so relying on a certain
translation context does not make things a lot worse.

Test Plan:
Tests no longer fail with Qt translations installed and running in a non-en
locale.

Reviewers: Calligra-Devel-list, boemann

Reviewed By: boemann

Subscribers: boemann

Tags: KEXI, #calligra:_3.0

Differential Revision: https://phabricator.kde.org/D2058

Details

Committed
kossebauJul 2 2016, 11:35 AM
Reviewer
boemann
Differential Revision
D2058: Make TestXmlReader/TestXmlReaderWithoutSpaces handle translated error messages
Parents
R8:ee9b0ca16e6b: Plan: Fix crash
Branches
Unknown
Tags
Unknown