Add android semantics integration test to device lab (#20971)

This commit is contained in:
Jonah Williams
2018-09-06 12:31:18 -07:00
committed by GitHub
parent a4838a2adc
commit c6e8a513f0
26 changed files with 683 additions and 2 deletions

View File

@@ -37,6 +37,7 @@ class AndroidSemanticsNode {
/// "isLongClickable": bool,
/// },
/// "text": String,
/// "contentDescription": String,
/// "className": String,
/// "id": int,
/// "rect": {
@@ -64,6 +65,16 @@ class AndroidSemanticsNode {
/// the Flutter [SemanticsNode].
String get text => _values['text'];
/// The contentDescription of the semantics node.
///
/// This field is used for the Switch, Radio, and Checkbox widgets
/// instead of [text]. If the text property is used for these, TalkBack
/// will not read out the "checked" or "not checked" label by default.
///
/// This is produced by combining the value, label, and hint fields from
/// the Flutter [SemanticsNode].
String get contentDescription => _values['contentDescription'];
/// The className of the semantics node.
///
/// Certain kinds of Flutter semantics are mapped to Android classes to