Bug 747270 - Make UtteranceGenerator return string arrays in all generator methods. r=davidb

This commit is contained in:
Eitan Isaacson 2012-04-27 10:44:15 -07:00
Родитель 1f81710b3c
Коммит c022602013
2 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -237,7 +237,7 @@ AndroidPresenter.prototype.actionInvoked = function(aObject, aActionName) {
gecko: {
type: 'Accessibility:Event',
eventType: ANDROID_TYPE_VIEW_CLICKED,
text: [UtteranceGenerator.genForAction(aObject, aActionName)]
text: UtteranceGenerator.genForAction(aObject, aActionName)
}
});
};

Просмотреть файл

@ -54,7 +54,7 @@ var UtteranceGenerator = {
},
genForAction: function(aObject, aActionName) {
return gStringBundle.GetStringFromName(this.gActionMap[aActionName]);
return [gStringBundle.GetStringFromName(this.gActionMap[aActionName])];
},
verbosityRoleMap: {