Browse Source

Update TestSemanticMeaning to include PDFUA_1 conformance settings

Marcin Ziąbek 1 month ago
parent
commit
b0a2f343f2

+ 7 - 1
Source/QuestPDF.ConformanceTests/TestEngine/ConformanceTestBase.cs

@@ -53,7 +53,13 @@ internal abstract class ConformanceTestBase
     public void TestSemanticMeaning()
     {
         var expectedSemanticTree = GetExpectedSemanticTree();
-        GetDocumentUnderTest().TestSemanticTree(expectedSemanticTree);
+            
+        GetDocumentUnderTest()
+            .WithSettings(new DocumentSettings
+            {
+                PDFUA_Conformance = PDFUA_Conformance.PDFUA_1
+            })
+            .TestSemanticTree(expectedSemanticTree);
     }
 
     private DocumentMetadata GetMetadata()