mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-27 19:25:11 +08:00
Fabric: ShadowNode::getChildren() now returns vector, not shared_ptr
Summary: TBD Reviewed By: mdvacca Differential Revision: D8988385 fbshipit-source-id: 1d1c7e0b87b32b242c69bbce44cf70fb0899cf93
This commit is contained in:
committed by
Facebook Github Bot
parent
ca6d263d6d
commit
d74346b616
@@ -59,8 +59,8 @@ TEST(ComponentDescriptorTest, appendChild) {
|
||||
descriptor->appendChild(node1, node2);
|
||||
descriptor->appendChild(node1, node3);
|
||||
|
||||
SharedShadowNodeSharedList node1Children = node1->getChildren();
|
||||
ASSERT_EQ(node1Children->size(), 2);
|
||||
ASSERT_EQ(node1Children->at(0), node2);
|
||||
ASSERT_EQ(node1Children->at(1), node3);
|
||||
auto node1Children = node1->getChildren();
|
||||
ASSERT_EQ(node1Children.size(), 2);
|
||||
ASSERT_EQ(node1Children.at(0), node2);
|
||||
ASSERT_EQ(node1Children.at(1), node3);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user