diff --git a/tests/assets/languages/fr.ts b/tests/assets/languages/fr.ts index 35e03cd16..ef856f80c 100644 --- a/tests/assets/languages/fr.ts +++ b/tests/assets/languages/fr.ts @@ -135,11 +135,11 @@ removeAllEntriesDescription - + Êtes-vous sûr de vouloir supprimer cet historique ? removeAllEntriesTitle - + Suppression de l'historique @@ -161,7 +161,7 @@ attachmentTooltip - + Envoyer un fichier @@ -170,41 +170,29 @@ incomingCall Appel entrant - - hangup - Fin d'appel - - - lostIncomingCall - Appel entrant manqué - - - lostOutgoingCall - Appel sortant manqué - outgoingCall - + Appel sortant declinedIncomingCall - + Appel entrant refusé declinedOutgoingCall - + Appel sortant refusé endedCall - + Fin d'appel missedIncomingCall - + Appel entrant manqué missedOutgoingCall - + Appel sortant sans réponse @@ -319,7 +307,7 @@ PresenceString presenceOnline - + En ligne presenceOutToLunch @@ -339,7 +327,7 @@ presenceOffline - + Hors-ligne presenceUnknown diff --git a/tests/ui/modules/Common/Styles/Menu/MenuStyle.qml b/tests/ui/modules/Common/Styles/Menu/MenuStyle.qml index 93999d6ab..b589d20ca 100644 --- a/tests/ui/modules/Common/Styles/Menu/MenuStyle.qml +++ b/tests/ui/modules/Common/Styles/Menu/MenuStyle.qml @@ -28,7 +28,7 @@ QtObject { } property QtObject text: QtObject { - property int fontSize: 13 + property int fontSize: 11 property QtObject color: QtObject { property color normal: Colors.k50 diff --git a/tests/ui/scripts/Utils/utils.js b/tests/ui/scripts/Utils/utils.js index a55a21e36..bd02678a7 100644 --- a/tests/ui/scripts/Utils/utils.js +++ b/tests/ui/scripts/Utils/utils.js @@ -80,7 +80,6 @@ function getTopParent (object, useFakeParent) { var parent = _getTopParent(object, useFakeParent) var p - while ((p = _getTopParent(parent, useFakeParent)) != null) { parent = p } @@ -97,8 +96,8 @@ function openConfirmDialog (parent, options) { 'import QtQuick 2.7;' + 'import Common 1.0;' + 'ConfirmDialog {' + - 'descriptionText: \'' + options.descriptionText + '\';' + - 'title: \'' + options.title + '\'' + + 'descriptionText: \'' + escapeQuotes(options.descriptionText) + '\';' + + 'title: \'' + escapeQuotes(options.title) + '\'' + '}', parent, { isString: true, @@ -268,6 +267,14 @@ function ensureArray (obj) { // ------------------------------------------------------------------- +function escapeQuotes (str) { + return str != null + ? str.replace(/([^'\\]*(?:\\.[^'\\]*)*)'/g, '$1\\\'') + : '' +} + +// ------------------------------------------------------------------- + // Get the first matching value in a array or object. // The matching value is obtained if `cb` returns true. function find (obj, cb, context) {