Unverified Commit 54c0e7a4 authored by chunhtai's avatar chunhtai Committed by GitHub

Enable android semantics integration test (#79295)

parent 4982a7f1
......@@ -57,6 +57,7 @@ class AndroidSemanticsAction {
static const int _kSetSelectionIndex = 1 << 17;
static const int _kExpandIndex = 1 << 18;
static const int _kCollapseIndex = 1 << 19;
static const int _kSetText = 1 << 21;
/// Matches `AccessibilityAction.ACTION_FOCUS`.
static const AndroidSemanticsAction focus = AndroidSemanticsAction._(_kFocusIndex);
......@@ -118,6 +119,9 @@ class AndroidSemanticsAction {
/// Matches `AccessibilityAction.ACTION_COLLAPSE`.
static const AndroidSemanticsAction collapse = AndroidSemanticsAction._(_kCollapseIndex);
/// Matches `AccessibilityAction.SET_TEXT`.
static const AndroidSemanticsAction setText = AndroidSemanticsAction._(_kSetText);
@override
String toString() {
switch (id) {
......@@ -161,6 +165,8 @@ class AndroidSemanticsAction {
return 'AndroidSemanticsAction.expand';
case _kCollapseIndex:
return 'AndroidSemanticsAction.collapse';
case _kSetText:
return 'AndroidSemanticsAction.setText';
default:
return null;
}
......@@ -187,6 +193,7 @@ class AndroidSemanticsAction {
_kSetSelectionIndex: setSelection,
_kExpandIndex: expand,
_kCollapseIndex: collapse,
_kSetText: setText,
};
@override
......
......@@ -133,6 +133,7 @@ void main() {
AndroidSemanticsAction.click,
AndroidSemanticsAction.copy,
AndroidSemanticsAction.setSelection,
AndroidSemanticsAction.setText,
],
),
);
......@@ -155,6 +156,7 @@ void main() {
AndroidSemanticsAction.click,
AndroidSemanticsAction.copy,
AndroidSemanticsAction.setSelection,
AndroidSemanticsAction.setText,
],
),
);
......@@ -198,6 +200,7 @@ void main() {
AndroidSemanticsAction.click,
AndroidSemanticsAction.copy,
AndroidSemanticsAction.setSelection,
AndroidSemanticsAction.setText,
],
),
);
......@@ -220,6 +223,7 @@ void main() {
AndroidSemanticsAction.click,
AndroidSemanticsAction.copy,
AndroidSemanticsAction.setSelection,
AndroidSemanticsAction.setText,
],
),
);
......@@ -228,7 +232,7 @@ void main() {
tearDownAll(() async {
await driver.tap(find.byValueKey('back'));
});
}, skip: true); // TODO(chunhtai): skip to enable engine roll https://github.com/flutter/flutter/issues/77965.
});
group('SelectionControls', () {
setUpAll(() async {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment