-
Notifications
You must be signed in to change notification settings - Fork 6k
Win32: add test of native a11y tree nodes #29993
Conversation
| ASSERT_EQ(node0_accessible->get_accChildCount(&node0_child_count), S_OK); | ||
| EXPECT_EQ(node0_child_count, 2); | ||
|
|
||
| { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why additional scope?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just to keep from re-using variables (the variables for reading name/value/role). Forces us to re-declare the locals to the expected values (the variants) so they don't get accidentally polluted by prior tests. From a readability pt of view, also avoids having to scroll back up to look at how some variable was initialised.
It'd be straightforward to remove the scopes if you like that better.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this looks good :), was just wondering whether this is part of the test.
Adds AddSemanticsNodeUpdateWithChildren, which tests that the native tree of IAccessible COM objects is an accurate representation of the platform-agnostic accessibility tree. Issue: flutter/flutter#77838
chunhtai
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
| ASSERT_EQ(node0_accessible->get_accChildCount(&node0_child_count), S_OK); | ||
| EXPECT_EQ(node0_child_count, 2); | ||
|
|
||
| { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this looks good :), was just wondering whether this is part of the test.
Adds AddSemanticsNodeUpdateWithChildren, which tests that the native
tree of IAccessible COM objects is an accurate representation of the
platform-agnostic accessibility tree.
Issue: flutter/flutter#77838
Pre-launch Checklist
writing and running engine tests.
///).If you need help, consider asking for advice on the #hackers-new channel on Discord.