summaryrefslogtreecommitdiff
path: root/test/formats/osxml/OsxmlParserTest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/formats/osxml/OsxmlParserTest.cpp')
-rw-r--r--test/formats/osxml/OsxmlParserTest.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/formats/osxml/OsxmlParserTest.cpp b/test/formats/osxml/OsxmlParserTest.cpp
index 79dd58b..03f10d3 100644
--- a/test/formats/osxml/OsxmlParserTest.cpp
+++ b/test/formats/osxml/OsxmlParserTest.cpp
@@ -399,5 +399,20 @@ TEST(OsxmlParser, complexDocumentParsing)
ASSERT_FALSE(logger.hasError());
}
+TEST(OsxmlParser, simpleAnnotation)
+{
+ logger.reset();
+ XmlStandaloneEnvironment env(logger);
+ Rooted<Node> book_document_node =
+ env.parse("simple_annotation.osxml", "", "", RttiSet{&RttiTypes::Document});
+ ASSERT_FALSE(logger.hasError());
+ ASSERT_FALSE(book_document_node == nullptr);
+ ASSERT_TRUE(book_document_node->isa(&RttiTypes::Document));
+ Rooted<Document> doc = book_document_node.cast<Document>();
+ ASSERT_TRUE(doc->validate(logger));
+ ASSERT_FALSE(logger.hasError());
+}
+
+
}