C# Class BloomTests.Book.HtmlDomTests

Show file Open project: BloomBooks/BloomDesktop

Private Methods

Method Description
AddClassIfMissing_AlreadyThere_LeavesAlone ( ) : void
AddClassIfMissing_Missing_Adds ( ) : void
AddClassIfMissing_NoClasses_Adds ( ) : void
AssertHasClasses ( string expectedString, string actualString ) : void
BaseForRelativePaths_HasExistingBase_Removes ( ) : void
BaseForRelativePaths_NoHead_NoLongerThrows ( ) : void
BaseForRelativePaths_NullPath_SetsToEmpty ( ) : void
ConvertHtmlBreaksToNewLines_Works ( ) : void
GetBookSetting_NotThere_ReturnsEmptyMultistring ( ) : void
GetBookSetting_TwoVariationsWereThere_ReturnsBoth ( ) : void
GetImageElementUrl_ElementHasNoImage_ReturnsEmpty ( ) : void
GetImageElementUrl_ElementHasUrlOnFont_ReturnsEmpty ( ) : void
GetImageElementUrl_ElementIsDivWithBackgroundImage_ReturnsUrl ( ) : void
GetImageElementUrl_ElementIsImgWithPercent2B_ReturnsSrc ( ) : void
GetImageElementUrl_ElementIsImgWithPlus_ReturnsSrc ( ) : void
GetImageElementUrl_ElementIsImg_ReturnsSrc ( ) : void
GetIsImgOrSomethingWithBackgroundImage_HasBackgroundImageProperty_True ( ) : void
GetIsImgOrSomethingWithBackgroundImage_ImgIsChild_False ( ) : void
GetIsImgOrSomethingWithBackgroundImage_ImgIsSybling_False ( ) : void
GetIsImgOrSomethingWithBackgroundImage_Img_True ( ) : void
GetIsImgOrSomethingWithBackgroundImage_NoBackgroundImageProperty_False ( ) : void
MakeElement ( string xml ) : ElementProxy
MergeClasses ( string sourceClasses, string targetClasses, string classesToDrop ) : string
MergeClassesIntoNewPage_BothEmtpy ( ) : void
MergeClassesIntoNewPage_MergesAndDropsItemsInDropList ( ) : void
MergeClassesIntoNewPage_SourceAllDroppable ( ) : void
MergeClassesIntoNewPage_SourceEmpty ( ) : void
MergeClassesIntoNewPage_TargetEmpty ( ) : void
RemoveBookSetting_NoneThere_NothingHappens ( ) : void
RemoveBookSetting_TwoVariationsWereThere_BothRemoved ( ) : void
RemoveExtraBookTitles_BookTitlesThatAreJustGeneric_Removed ( ) : void
RemoveMetaValue_IsThere_RemovesIt ( ) : void
RemoveMetaValue_NotThere_OK ( ) : void
SelectChildImgAndBackgroundImageElements ( ) : void
SetBookSetting_AddANewVariationToAnExistingKey_Added ( ) : void
SetBookSetting_HadADifferentValueCompletely_NewValue ( ) : void
SetBookSetting_HadValueWithNoLanguage_RemovesItAndSavesNewValue ( ) : void
SetBookSetting_NoDataDivYet_SettingAdded ( ) : void
SetBookSetting_WasMissingCompletely_DataDivHasNewString ( ) : void
SetElementFromUserStringPreservingLineBreaks_Various ( ) : void
SetImageElementUrl_GivenDiv_SetsStyle ( ) : void
SetImageElementUrl_GivenImg_SetsSrc ( ) : void
SortStyleSheetLinks_LeavesBasePageBeforePreviewMode ( ) : void
SortStyleSheetLinks_LeavesOverridesAtEndAndSpecialFilesInMiddle ( ) : void
Title_CanChange ( ) : void
Title_EmptyDom_RoundTrips ( ) : void
Title_HasHtml_Stripped ( ) : void