C# Класс BloomTests.Publish.ExportEpubTests

Наследование: BloomTests.Book.BookTestsBase
Показать файл Открыть проект

Открытые методы

Метод Описание
Setup ( ) : void

Защищенные методы

Метод Описание
CreateBook ( ) : Book
MakeFakeAudio ( string path ) : void

Приватные методы

Метод Описание
AddFontFace_WithNullPath_AddsNothing ( ) : void
AudioWithParagraphsAndRealGuids_ProducesOverlay ( ) : void
BloomUi_IsRemoved ( ) : void
BookWithAudio_ProducesOverlay_OmitsInvalidAttrs ( ) : void
CheckBasicsInManifest ( ) : void
CheckBasicsInPage ( ) : void
CheckFontStylesheet ( ) : void
CheckNavPage ( ) : void
ConflictingIds_AreNotConfused ( ) : void
CreateCommonCssFiles ( Bloom book ) : void
CreateEpubMaker ( Bloom book ) : EpubMakerAdjusted
FilesThatMapToSameSafeName_AreNotConfused ( ) : void
FindFontsUsedInCss_FindsQuotedFontFamily ( ) : void
FindFontsUsedInCss_FindsSimpleFontFamily ( ) : void
FindFontsUsedInCss_IncludeFallbackFontsFalse_FindsFirstFontInEachList ( ) : void
FindFontsUsedInCss_IncludeFallbackFontsTrue_FindsMultipleFontFamilies ( ) : void
GetManifestFile ( ZipFile zip ) : string
GetNamespaceManager ( ) : XmlNamespaceManager
GetPageOneData ( ) : void
GetTestFileLocator ( ) : BloomFileLocator
GetTestServer ( ) : EnhancedImageServer
GetZipContent ( ZipFile zip, string path ) : string
GetZipEntry ( ZipFile zip, string path ) : ZipEntry
HandlesMultiplePages ( ) : void
HandlesNonRomanFileNames ( ) : void
HandlesWhiteSpaceInImageNames ( ) : void
IllegalIds_AreFixed ( ) : void
ImageMissing_IsRemoved ( ) : void
ImageSrcQuery_IsIgnored ( ) : void
ImageStyles_ConvertedToPercent ( string sizeClass, double pageWidthMm ) : void
ImageStyles_ConvertedToPercent_SpecialCases ( ) : void
ImageStyles_PercentsAdjustForContainingPercentDivs ( ) : void
InvisibleAndUnwantedContentRemoved ( ) : void
MakeEpub ( string mainFileName, string folderName, Bloom book ) : ZipFile

Make an ePUB out of the specified book. Sets up several instance variables with commonly useful parts of the results.

MakeImageFiles ( Bloom book ) : void
Missing_Audio_CreatedFromWav ( ) : void
Missing_Audio_Ignored ( ) : void
National1_InXMatter_IsNotRemoved ( ) : void
OriginalAcknowledgments_InCreditsPage_InVernacular_IsRemoved ( ) : void
SetupBook ( string text, string lang ) : Book
SetupBookLong ( string text, string lang, string extraPageClass = "", string extraContent = "", string extraImages = "", string extraStyleSheet = "", string parentDivId = "somewrapper", string extraPages = "", string images = null, string extraEditGroupClasses = "", string extraEditDivClasses = "", string defaultLanguages = "auto" ) : Book

Set up a book with the typical content most of our tests need. It has the standard three stylesheets (and empty files for them). It has one bloom editable div, in the specified language, with the specified text. It has a 'lang='*' div which is ignored. It may have extra content in various places. It may have an arbitrary number of images, with the specified names. The image files are not created in this method, because the exact correspondence between the image names inserted into the HTML and the files created (or sometimes purposely not created) is an important aspect of many tests.

StandardStyleSheets_AreRemoved ( ) : void
StripXmlHeader ( string data ) : string
ToValidXmlId ( string input ) : string
VerifyThatFilesInManifestArePresent ( ) : void

Check that all the files referenced in the manifest are actually present in the zip.

Описание методов

CreateBook() защищенный Метод

protected CreateBook ( ) : Book
Результат Bloom.Book.Book

MakeFakeAudio() защищенный Метод

protected MakeFakeAudio ( string path ) : void
path string
Результат void

Setup() публичный Метод

public Setup ( ) : void
Результат void