11 EXPECT_FALSE(result.has_value());
13 result = XFA_GetPacketByName(L"nonesuch");
14 EXPECT_FALSE(result.has_value());
16 result = XFA_GetPacketByName(L"datasets");
17 ASSERT_TRUE(result.has_value());
20 result = XFA_GetPacketByName(L"sourceSet");
21 ASSERT_TRUE(result.has_value());
53 EXPECT_FALSE(result.has_value());
55 result = XFA_GetAttributeByName(L"nonesuch");
56 EXPECT_FALSE(result.has_value());
58 result = XFA_GetAttributeByName(L"h");
59 ASSERT_TRUE(result.has_value());
62 result = XFA_GetAttributeByName(L"short");
63 ASSERT_TRUE(result.has_value());
66 result = XFA_GetAttributeByName(L"decipherOnly");
67 ASSERT_TRUE(result.has_value());
68 EXPECT_EQ(
XFA_Attribute::DecipherOnly, result.value().attribute);
78 EXPECT_FALSE(result.has_value());
80 result = XFA_GetAttributeValueByName(L"nonesuch");
81 EXPECT_FALSE(result.has_value());
83 result = XFA_GetAttributeValueByName(L"*");
84 ASSERT_TRUE(result.has_value());
87 result = XFA_GetAttributeValueByName(L"visible");
88 ASSERT_TRUE(result.has_value());
91 result = XFA_GetAttributeValueByName(L"lowered");
92 ASSERT_TRUE(result.has_value());