-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
QTranslator: rewrite loadLocale test, include failing cases
Add test coverage for the bug reported in QTBUG-124898 with QEXPECT_FAIL to document the failure in our truncation logic in QTranslator. The attempted fix in 9a11273 then introduced QTBUG-129434, as we ignored the order of languages reported by the system locale. Add a test case for that, and use a QSystemLocale subclass inspired by the QLocale unit test to override the system locale with a specific one that supports multiple languages for this test. Pick-to: 6.5 Task-number: QTBUG-124898 Task-number: QTBUG-129434 Change-Id: Iaae80d29e267fd3a2d14df0e73db27ba4c58b31a Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> Reviewed-by: Edward Welbourne <edward.welbourne@qt.io> (cherry picked from commit 1f2ab46) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
- Loading branch information
Showing
2 changed files
with
115 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters