зеркало из https://github.com/mozilla/gecko-dev.git
Bug 934737 - [AccessFu] fixing a string bundle error when encountering an input type='date'. r=eeejay
--- accessible/src/jsat/OutputGenerator.jsm | 7 ++++++- accessible/tests/mochitest/jsat/test_utterance_order.html | 4 ++++ dom/locales/en-US/chrome/accessibility/AccessFu.properties | 1 + 3 files changed, 11 insertions(+), 1 deletion(-)
This commit is contained in:
Родитель
a00a50d182
Коммит
f5f3c48812
|
@ -220,7 +220,12 @@ this.OutputGenerator = {
|
|||
if (!typeName || typeName === 'text') {
|
||||
return;
|
||||
}
|
||||
aDesc.push(gStringBundle.GetStringFromName('textInputType_' + typeName));
|
||||
typeName = 'textInputType_' + typeName;
|
||||
try {
|
||||
aDesc.push(gStringBundle.GetStringFromName(typeName));
|
||||
} catch (x) {
|
||||
Logger.warning('Failed to get a string from a bundle for', typeName);
|
||||
}
|
||||
},
|
||||
|
||||
get outputOrder() {
|
||||
|
|
|
@ -83,6 +83,9 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=753984
|
|||
"Column 1 Row 1", "Fruits and vegetables",
|
||||
"table with 1 column and 1 row"
|
||||
]]
|
||||
}, {
|
||||
accOrElmOrID: "date",
|
||||
expected: [["date entry", "2011-09-29"], ["2011-09-29", "date entry"]]
|
||||
}, {
|
||||
accOrElmOrID: "email",
|
||||
expected: [
|
||||
|
@ -302,6 +305,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=753984
|
|||
<label id="label4">Points:
|
||||
<input id="input4" type="range" name="points" min="1" max="10" value="3">
|
||||
</label>
|
||||
<input id="date" type="date" value="2011-09-29" />
|
||||
<input id="email" type="email" value="test@example.com" />
|
||||
<input id="search" type="search" value="This is a search" />
|
||||
<input id="tel" type="tel" value="555-5555" />
|
||||
|
|
|
@ -73,6 +73,7 @@ definition = definition
|
|||
textarea = text area
|
||||
|
||||
# Text input types
|
||||
textInputType_date = date
|
||||
textInputType_email = e-mail
|
||||
textInputType_search = search
|
||||
textInputType_tel = telephone
|
||||
|
|
Загрузка…
Ссылка в новой задаче