未验证 提交 a5673e3a 编写于 作者: I Ian McKellar 提交者: GitHub

[flutter_runner] fix a11y tests (#13947)

Instead of running over 400000000 nodes, do something a little quicker.
上级 e2e1b64f
......@@ -254,8 +254,8 @@ TEST_F(AccessibilityBridgeTest, BatchesLargeMessages) {
flutter::SemanticsNodeUpdates update;
const int32_t child_nodes = fuchsia::accessibility::semantics::MAX_FAN_OUT;
const int32_t leaf_nodes = fuchsia::accessibility::semantics::MAX_FAN_OUT;
const int32_t child_nodes = 100;
const int32_t leaf_nodes = 100;
for (int32_t i = 1; i < child_nodes + 1; i++) {
flutter::SemanticsNode node;
node.id = i;
......@@ -276,7 +276,7 @@ TEST_F(AccessibilityBridgeTest, BatchesLargeMessages) {
RunLoopUntilIdle();
EXPECT_EQ(0, semantics_manager_.DeleteCount());
EXPECT_EQ(13, semantics_manager_.UpdateCount());
EXPECT_EQ(4, semantics_manager_.UpdateCount());
EXPECT_EQ(1, semantics_manager_.CommitCount());
EXPECT_FALSE(semantics_manager_.DeleteOverflowed());
EXPECT_FALSE(semantics_manager_.UpdateOverflowed());
......@@ -289,7 +289,7 @@ TEST_F(AccessibilityBridgeTest, BatchesLargeMessages) {
RunLoopUntilIdle();
EXPECT_EQ(1, semantics_manager_.DeleteCount());
EXPECT_EQ(14, semantics_manager_.UpdateCount());
EXPECT_EQ(5, semantics_manager_.UpdateCount());
EXPECT_EQ(2, semantics_manager_.CommitCount());
EXPECT_FALSE(semantics_manager_.DeleteOverflowed());
EXPECT_FALSE(semantics_manager_.UpdateOverflowed());
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册