Skip to content

Test to ensure accessibility enums remain in sync #101217

@cbracken

Description

@cbracken

Flutter includes several accessibility-specific enums that must remain in sync. For example, accessibility features are recorded in:

  • FlutterAccessibilityFeature enum in shell/platform/embedder/embedder.h
  • AccessibilityFeatureFlag enum in lib/ui/window/platform_configuration.h
  • AccessibilityFeatures class in lib/ui/window.dart
  • AccessibilityFeatures class in lib/web_ui/lib/window.dart

Similarly, FlutterSemanticsAction, FlutterSemanticsFlag, and other enums need to be kept in sync.

Currently, a comment at each location reminds developers to keep these enums in sync, but what's needed is a test that automatically enforces this in presubmit.

Metadata

Metadata

Assignees

Labels

P2Important issues not at the top of the work lista: tests"flutter test", flutter_test, or one of our testsc: tech-debtTechnical debt, code quality, testing, etc.engineflutter/engine related. See also e: labels.

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions