Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
54c0e7a4
Unverified
Commit
54c0e7a4
authored
Mar 31, 2021
by
chunhtai
Committed by
GitHub
Mar 31, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enable android semantics integration test (#79295)
parent
4982a7f1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
1 deletion
+12
-1
constants.dart
...on_tests/android_semantics_testing/lib/src/constants.dart
+7
-0
main_test.dart
...ests/android_semantics_testing/test_driver/main_test.dart
+5
-1
No files found.
dev/integration_tests/android_semantics_testing/lib/src/constants.dart
View file @
54c0e7a4
...
...
@@ -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
...
...
dev/integration_tests/android_semantics_testing/test_driver/main_test.dart
View file @
54c0e7a4
...
...
@@ -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
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment