Comments (2)
Thanks for the report -- I'll take a look at what might be going on here. Just glancing at the layout, I believe I'd expect:
- No result for
id_test1
, since it would be focused, but should have a spoken description of "foo" aggregated from theid_test3
TextView
- A
NOT_RUN
result forid_test2
ofRESULT_ID_NOT_IMPORTANT_FOR_ACCESSIBILITY
- A
NOT_RUN
result forid_test3
ofRESULT_ID_SHOULD_NOT_FOCUS
, sinceid_test1
would be the focus-qualifying element which would include its text.
Would you share some info on how you're invoking SpeakableTextPresentCheck
? Is this from an Espresso test, Accessibility Scanner, or something else?
from accessibility-test-framework-for-android.
Thanks for your reply.
I downloaded the source code and resolved the dependency problems.I did not change any key source code.
Then I ran the following code when a button clicked in a demo project without any test framework.
Set<AccessibilityHierarchyCheck> checks =AccessibilityCheckPreset.getAccessibilityHierarchyChecksForPreset(AccessibilityCheckPreset.LATEST);
AccessibilityHierarchy hierarchy = AccessibilityHierarchy.newBuilder(findViewById(R.id.id_test1)).build();
List<AccessibilityHierarchyCheckResult> results = new ArrayList<>();
for (AccessibilityHierarchyCheck check : checks) {
if(check instanceof SpeakableTextPresentCheck){
results.addAll(check.runCheckOnHierarchy(hierarchy));
}
}
and I get the result with 2 suggestions
id/id_test1,description:This item would not be focused by a screen reader
id/id_test2,description:This item was not found to be important for accessibility.
I can't understand the first suggestion, because I actually focused id_test1 when using talkback,and I know it is reasonable.
from accessibility-test-framework-for-android.
Related Issues (20)
- https://github.com/google/Accessibility-Test-Framework-for-Android/blob/a6117fe0059c82dd764fa628d3817d724570f69e/src/main/java/com/google/android/apps/common/testing/accessibility/framework/integrations/espresso/AccessibilityValidator.java#L82
- Migrate to protobuf-javalite HOT 4
- Jetpack compose compatibility HOT 7
- False Positive for SpeakableTextPresentCheck in RecyclerView HOT 2
- Security Policy violation Binary Artifacts HOT 41
- There is a vulnerability in jsoup 1.12.2,upgrade recommended HOT 1
- There is a vulnerability in Guava: Google Core Libraries for Java 28.2-android,upgrade recommended HOT 1
- 4.0.0 is published but there are no release notes HOT 1
- T
- Add Sample and Run Tests in Google Action Workflow
- Test Framework / Accessibility
- nils
- OSV API
- Advance
- Question about custom AccessibilityHierarchyCheck HOT 1
- https://developers.google.com/android/guides/releases
- Cookie & Advertising Policymaking for
- iOS 17
- Google HOT 1
- Tolerant seen
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from accessibility-test-framework-for-android.