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
e154298e
Unverified
Commit
e154298e
authored
Jul 21, 2018
by
Jonah Williams
Committed by
GitHub
Jul 21, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Roll engine to 96f5f5b96c7220ffc8c4ce22ed895616a15ad3a0 (#19615)
parent
3bff2e46
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
41 additions
and
7 deletions
+41
-7
engine.version
bin/internal/engine.version
+1
-1
custom_painter_test.dart
packages/flutter/test/widgets/custom_painter_test.dart
+10
-4
semantics_test.dart
packages/flutter/test/widgets/semantics_test.dart
+10
-2
matchers.dart
packages/flutter_test/lib/src/matchers.dart
+15
-0
matchers_test.dart
packages/flutter_test/test/matchers_test.dart
+5
-0
No files found.
bin/internal/engine.version
View file @
e154298e
482469bad8094ff05fd66dfc07149fbef4ae00ac
96f5f5b96c7220ffc8c4ce22ed895616a15ad3a0
packages/flutter/test/widgets/custom_painter_test.dart
View file @
e154298e
...
...
@@ -347,10 +347,10 @@ void _defineTests() {
),
),
));
final
Set
<
SemanticsAction
>
allActions
=
SemanticsAction
.
values
.
values
.
toSet
()
..
remove
(
SemanticsAction
.
customAction
)
// customAction is not user-exposed.
..
remove
(
SemanticsAction
.
showOnScreen
);
// showOnScreen is not user-exposed.
..
remove
(
SemanticsAction
.
showOnScreen
)
// showOnScreen is not user-exposed
..
remove
(
SemanticsAction
.
dismiss
);
// TODO(jonahwilliams): update when dismiss is exposed.
const
int
expectedId
=
2
;
final
TestSemantics
expectedSemantics
=
new
TestSemantics
.
root
(
...
...
@@ -420,7 +420,13 @@ void _defineTests() {
),
),
));
// TODO(jonahwilliams): update when the following semantics flags are added.
final
List
<
SemanticsFlag
>
flags
=
SemanticsFlag
.
values
.
values
.
toList
();
flags
..
remove
(
SemanticsFlag
.
isImage
)
..
remove
(
SemanticsFlag
.
hasToggledState
)
..
remove
(
SemanticsFlag
.
isToggled
)
..
remove
(
SemanticsFlag
.
isLiveRegion
);
final
TestSemantics
expectedSemantics
=
new
TestSemantics
.
root
(
children:
<
TestSemantics
>[
new
TestSemantics
.
rootChild
(
...
...
@@ -429,7 +435,7 @@ void _defineTests() {
new
TestSemantics
.
rootChild
(
id:
2
,
rect:
TestSemantics
.
fullScreen
,
flags:
SemanticsFlag
.
values
.
values
.
toList
()
,
flags:
flags
,
),
]
),
...
...
packages/flutter/test/widgets/semantics_test.dart
View file @
e154298e
...
...
@@ -416,7 +416,8 @@ void main() {
final
Set
<
SemanticsAction
>
allActions
=
SemanticsAction
.
values
.
values
.
toSet
()
..
remove
(
SemanticsAction
.
customAction
)
// customAction is not user-exposed.
..
remove
(
SemanticsAction
.
showOnScreen
);
// showOnScreen is not user-exposed.
..
remove
(
SemanticsAction
.
showOnScreen
)
// showOnScreen is not user-exposed
..
remove
(
SemanticsAction
.
dismiss
);
// TODO(jonahwilliams): remove when dismiss action is exposed.
const
int
expectedId
=
1
;
final
TestSemantics
expectedSemantics
=
new
TestSemantics
.
root
(
...
...
@@ -478,12 +479,19 @@ void main() {
namesRoute:
true
,
)
);
// TODO(jonahwilliams): update when the following semantics flags are added.
final
List
<
SemanticsFlag
>
flags
=
SemanticsFlag
.
values
.
values
.
toList
();
flags
..
remove
(
SemanticsFlag
.
isImage
)
..
remove
(
SemanticsFlag
.
hasToggledState
)
..
remove
(
SemanticsFlag
.
isToggled
)
..
remove
(
SemanticsFlag
.
isLiveRegion
);
TestSemantics
expectedSemantics
=
new
TestSemantics
.
root
(
children:
<
TestSemantics
>[
new
TestSemantics
.
rootChild
(
rect:
TestSemantics
.
fullScreen
,
flags:
SemanticsFlag
.
values
.
values
.
toList
()
,
flags:
flags
,
),
],
);
...
...
packages/flutter_test/lib/src/matchers.dart
View file @
e154298e
...
...
@@ -321,6 +321,10 @@ Matcher matchesSemanticsData({
bool
namesRoute
=
false
,
bool
scopesRoute
=
false
,
bool
isHidden
=
false
,
bool
isImage
=
false
,
bool
isLiveRegion
=
false
,
bool
hasToggledState
=
false
,
bool
isToggled
=
false
,
// Actions //
bool
hasTapAction
=
false
,
bool
hasLongPressAction
=
false
,
...
...
@@ -340,6 +344,7 @@ Matcher matchesSemanticsData({
bool
hasDidGainAccessibilityFocusAction
=
false
,
bool
hasDidLoseAccessibilityFocusAction
=
false
,
bool
hasCustomAction
=
false
,
bool
hasDismissAction
=
false
,
})
{
final
List
<
SemanticsFlag
>
flags
=
<
SemanticsFlag
>[];
if
(
hasCheckedState
)
...
...
@@ -370,6 +375,14 @@ Matcher matchesSemanticsData({
flags
.
add
(
SemanticsFlag
.
scopesRoute
);
if
(
isHidden
)
flags
.
add
(
SemanticsFlag
.
isHidden
);
if
(
isImage
)
flags
.
add
(
SemanticsFlag
.
isImage
);
if
(
isLiveRegion
)
flags
.
add
(
SemanticsFlag
.
isLiveRegion
);
if
(
hasToggledState
)
flags
.
add
(
SemanticsFlag
.
hasToggledState
);
if
(
isToggled
)
flags
.
add
(
SemanticsFlag
.
isToggled
);
final
List
<
SemanticsAction
>
actions
=
<
SemanticsAction
>[];
if
(
hasTapAction
)
...
...
@@ -408,6 +421,8 @@ Matcher matchesSemanticsData({
actions
.
add
(
SemanticsAction
.
didLoseAccessibilityFocus
);
if
(
hasCustomAction
)
actions
.
add
(
SemanticsAction
.
customAction
);
if
(
hasDismissAction
)
actions
.
add
(
SemanticsAction
.
dismiss
);
return
new
_MatchesSemanticsData
(
label:
label
,
...
...
packages/flutter_test/test/matchers_test.dart
View file @
e154298e
...
...
@@ -454,6 +454,10 @@ void main() {
namesRoute:
true
,
scopesRoute:
true
,
isHidden:
true
,
isImage:
true
,
isLiveRegion:
true
,
hasToggledState:
true
,
isToggled:
true
,
/* Actions */
hasTapAction:
true
,
hasLongPressAction:
true
,
...
...
@@ -473,6 +477,7 @@ void main() {
hasDidGainAccessibilityFocusAction:
true
,
hasDidLoseAccessibilityFocusAction:
true
,
hasCustomAction:
true
,
hasDismissAction:
true
,
));
});
});
...
...
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