26 auto* parser = cppgc::MakeGarbageCollected<CXFA_TestTextParser>(
27 heap()->GetAllocationHandle());
28 EXPECT_TRUE(parser->TagValidate(L"br"));
29 EXPECT_TRUE(parser->TagValidate(L"Br"));
30 EXPECT_TRUE(parser->TagValidate(L"BR"));
31 EXPECT_TRUE(parser->TagValidate(L"a"));
32 EXPECT_TRUE(parser->TagValidate(L"b"));
33 EXPECT_TRUE(parser->TagValidate(L"i"));
34 EXPECT_TRUE(parser->TagValidate(L"p"));
35 EXPECT_TRUE(parser->TagValidate(L"li"));
36 EXPECT_TRUE(parser->TagValidate(L"ol"));
37 EXPECT_TRUE(parser->TagValidate(L"ul"));
38 EXPECT_TRUE(parser->TagValidate(L"sub"));
39 EXPECT_TRUE(parser->TagValidate(L"sup"));
40 EXPECT_TRUE(parser->TagValidate(L"span"));
41 EXPECT_TRUE(parser->TagValidate(L"body"));
42 EXPECT_TRUE(parser->TagValidate(L"html"));
44 EXPECT_FALSE(parser->TagValidate(L""));
45 EXPECT_FALSE(parser->TagValidate(L"tml"));
46 EXPECT_FALSE(parser->TagValidate(L"xhtml"));
47 EXPECT_FALSE(parser->TagValidate(L"htmlx"));
TEST_F(CXFATextParserTest, TagValidate)