Move to the paged document support in Verify 33.3 - #40
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Moves Verify.PDFium onto the source and derived targets that Verify 33.3 added for paged documents (Verify#1951), and takes the package from 1.5.0 to 2.0.0.
The converter now says which of its targets is the document and which were computed from it. Verify compares the document first, so a file derived from it is only given the benefit of its comparer while the document itself is unchanged, and DiffEngine's viewer shows the files derived from a document beneath it and accepts them with it.
It is a major version because what an existing test suite has to change is listed below.
Verifyand its adapter are pinned at 33.3.0.Migrating from 1.x
Version 2 moves to the paged document support in Verify 33.3. The file names are unchanged. What differs:
Initialize(outputs: PdfiumOutputs.Png)VerifierSettings.PageText(PageTextPlacement.None)Initialize(outputs: PdfiumOutputs.Text)VerifierSettings.ExcludeDerivedTargets("png")Initialize(outputs: PdfiumOutputs.None).ExcludePdfDocument().ExcludeTargets("pdf")The info file has the shape every paged document has: the document properties under
Document, and each page as itsNumber, its size underInfo, and itsText.So every
.verified.txtchanges once, and nothing else does.Testing
Built in Release and run with the commands CI uses, against Verify 33.3.0 from nuget.org: 22 passed.