Make TestXmlReader/TestXmlReaderWithoutSpaces handle translated error messages
ClosedPublic

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

Details

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.

Diff Detail

Repository
R8 Calligra
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
kossebau updated this revision to Diff 4887.Jul 1 2016, 1:57 PM
kossebau retitled this revision from to Make TestXmlReader/TestXmlReaderWithoutSpaces handle translated error messages.
kossebau updated this object.
kossebau edited the test plan for this revision. (Show Details)
kossebau added a reviewer: Calligra-Devel-list.
Restricted Application added projects: KEXI, Calligra: 3.0. · View Herald TranscriptJul 1 2016, 1:57 PM
boemann accepted this revision.Jul 2 2016, 5:59 AM
boemann added a reviewer: boemann.
boemann added a subscriber: boemann.

Was my idea on how to fix too so i agree

This revision is now accepted and ready to land.Jul 2 2016, 5:59 AM
This revision was automatically updated to reflect the committed changes.