Added tests for the new Android heading semantic flag to android_semantics_testing (#44031)

Added tests for the new Android heading semantic flag to android_semantics_testing.
This commit is contained in:
Darren Austin
2019-11-04 16:35:04 -08:00
committed by GitHub
parent bbb2a0f837
commit b815f76293
8 changed files with 98 additions and 1 deletions

View File

@@ -33,6 +33,7 @@ class AndroidSemanticsNode {
/// "isEnabled": bool,
/// "isFocusable": bool,
/// "isFocused": bool,
/// "isHeading": bool,
/// "isPassword": bool,
/// "isLongClickable": bool,
/// },
@@ -115,6 +116,9 @@ class AndroidSemanticsNode {
/// Whether the node is focused.
bool get isFocused => _flags['isFocused'];
/// Whether the node is considered a heading.
bool get isHeading => _flags['isHeading'];
/// Whether the node represents a password field.
///
/// Equivalent to [SemanticsFlag.isObscured].