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
e4995301
Unverified
Commit
e4995301
authored
Aug 01, 2022
by
pdblasi-google
Committed by
GitHub
Aug 01, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Create `containsSemantics` to allow for partial matching of semantics in tests. (#108573)
parent
e368e586
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
864 additions
and
130 deletions
+864
-130
semantics.dart
packages/flutter/lib/src/semantics/semantics.dart
+1
-1
matchers.dart
packages/flutter_test/lib/src/matchers.dart
+421
-123
matchers_test.dart
packages/flutter_test/test/matchers_test.dart
+442
-6
No files found.
packages/flutter/lib/src/semantics/semantics.dart
View file @
e4995301
...
...
@@ -2315,7 +2315,7 @@ class SemanticsNode extends AbstractNode with DiagnosticableTreeMixin {
);
assert
(
!
_canPerformAction
(
SemanticsAction
.
decrease
)
||
(
value
==
''
)
==
(
decreasedValue
==
''
),
'A SemanticsNode with action "
in
crease" needs to be annotated with either both "value" and "decreasedValue" or neither'
,
'A SemanticsNode with action "
de
crease" needs to be annotated with either both "value" and "decreasedValue" or neither'
,
);
}
...
...
packages/flutter_test/lib/src/matchers.dart
View file @
e4995301
This diff is collapsed.
Click to expand it.
packages/flutter_test/test/matchers_test.dart
View file @
e4995301
This diff is collapsed.
Click to expand it.
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