Bug 932158 - ensuring that the type information is not included into the output for an input of type 'text'. r=eeejay

---
 accessible/src/jsat/OutputGenerator.jsm                   | 3 ++-
 accessible/tests/mochitest/jsat/test_utterance_order.html | 4 ++++
 2 files changed, 6 insertions(+), 1 deletion(-)
This commit is contained in:
Yura Zenevich 2013-11-01 09:38:41 -04:00
parent dbd6cf47e7
commit 9e4e707512
2 changed files with 6 additions and 1 deletions

View File

@ -216,7 +216,8 @@ this.OutputGenerator = {
}
let typeName = Utils.getAttributes(aAccessible)['text-input-type'];
if (!typeName) {
// Ignore the the input type="text" case.
if (!typeName || typeName === 'text') {
return;
}
aDesc.push(gStringBundle.GetStringFromName('textInputType_' + typeName));

View File

@ -106,6 +106,9 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=753984
["URL entry", "http://example.com"],
["http://example.com", "URL entry"]
]
}, {
accOrElmOrID: "textInput",
expected: [["entry", "This is text."], ["This is text.", "entry"]]
}, {
// Test pivot to list from li_one.
accOrElmOrID: "list",
@ -303,6 +306,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=753984
<input id="search" type="search" value="This is a search" />
<input id="tel" type="tel" value="555-5555" />
<input id="url" type="url" value="http://example.com" />
<input id="textInput" type="text" value="This is text." />
</div>
</body>
</html>