Add unit test for serializer

This commit is contained in:
Flamefire committed 2014-10-27 17:54:31 +01:00
1 parent e982d7ee6f
commit f9e85d8168
14 files changed
+1225

No files matched your search

+97
View File
@@ -0,0 +1,97 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<Info />
<Debug>
<DebugLevel>TR_CONFIG_LEVEL_MAX</DebugLevel>
<SaveModifiedSongs>TR_CONFIG_ON</SaveModifiedSongs>
</Debug>
<Graphics>
<Renderer>TR_CONFIG_DIRECT3D</Renderer>
<TextureQuality>TR_CONFIG_TEXTURE_HIGH</TextureQuality>
<CoverSize>128</CoverSize>
<ScreenW>1024</ScreenW>
<ScreenH>576</ScreenH>
<ScreenAlignment>Middle</ScreenAlignment>
<BorderLeft>0</BorderLeft>
<BorderRight>1</BorderRight>
<BorderTop>0</BorderTop>
<BorderBottom>0</BorderBottom>
<AAMode>X0</AAMode>
<MaxFPS>60</MaxFPS>
<VSync>TR_CONFIG_ON</VSync>
<FullScreen>TR_CONFIG_OFF</FullScreen>
<FadeTime>0.4</FadeTime>
</Graphics>
<Theme>
<Name>Ambient</Name>
<Skin>Blue</Skin>
<Cover>Blue</Cover>
<DrawNoteLines>TR_CONFIG_ON</DrawNoteLines>
<DrawToneHelper>TR_CONFIG_ON</DrawToneHelper>
<TimerLook>TR_CONFIG_TIMERLOOK_EXPANDED</TimerLook>
<PlayerInfo>TR_CONFIG_PLAYERINFO_BOTH</PlayerInfo>
<FadePlayerInfo>TR_CONFIG_FADEPLAYERINFO_OFF</FadePlayerInfo>
<CoverLoading>TR_CONFIG_COVERLOADING_ATSTART</CoverLoading>
<LyricStyle>Slide</LyricStyle>
</Theme>
<Sound>
<PlayBackLib>GstreamerSharp</PlayBackLib>
<RecordLib>PortAudio</RecordLib>
<AudioBufferSize>B2048</AudioBufferSize>
<AudioLatency>0</AudioLatency>
<BackgroundMusic>TR_CONFIG_ON</BackgroundMusic>
<BackgroundMusicVolume>20</BackgroundMusicVolume>
<BackgroundMusicSource>TR_CONFIG_NO_OWN_MUSIC</BackgroundMusicSource>
<BackgroundMusicUseStart>TR_CONFIG_ON</BackgroundMusicUseStart>
<PreviewMusicVolume>50</PreviewMusicVolume>
<GameMusicVolume>100</GameMusicVolume>
</Sound>
<Game>
<Language>Deutsch</Language>
<SongFolder>E:\Songs</SongFolder>
<SongMenu>TR_CONFIG_TILE_BOARD</SongMenu>
<SongSorting>TR_CONFIG_ARTIST_LETTER</SongSorting>
<IgnoreArticles>TR_CONFIG_ON</IgnoreArticles>
<ScoreAnimationTime>10</ScoreAnimationTime>
<TimerMode>TR_CONFIG_TIMERMODE_REMAINING</TimerMode>
<NumPlayers>1</NumPlayers>
<Tabs>TR_CONFIG_ON</Tabs>
<LyricsPosition>TR_CONFIG_LYRICSPOSITION_BOTTOM</LyricsPosition>
<MinLineBreakTime>0.1</MinLineBreakTime>
<Players>
<Player>guest1.xml</Player>
<Player>guest1.xml</Player>
<Player>guest1.xml</Player>
<Player>guest1.xml</Player>
<Player />
<Player />
</Players>
</Game>
<Video>
<VideoDecoder>FFmpeg</VideoDecoder>
<VideoBackgrounds>TR_CONFIG_ON</VideoBackgrounds>
<VideoPreview>TR_CONFIG_ON</VideoPreview>
<VideosInSongs>TR_CONFIG_ON</VideosInSongs>
<VideosToBackground>TR_CONFIG_ON</VideosToBackground>
<WebcamLib>OpenCV</WebcamLib>
<WebcamConfig>
<MonikerString />
<Framerate>0</Framerate>
<Width>0</Width>
<Height>0</Height>
</WebcamConfig>
</Video>
<Record>
<MicConfig>
<DeviceName>Mikrofon (C-Media USB Headphone Set )</DeviceName>
<DeviceDriver>Mikrofon (C-Media USB Headphone Set )6</DeviceDriver>
<Channel>1</Channel>
</MicConfig>
<MicDelay>120</MicDelay>
</Record>
<Server>
<ServerActive>TR_CONFIG_ON</ServerActive>
<ServerEncryption>TR_CONFIG_ON</ServerEncryption>
<ServerPort>3000</ServerPort>
</Server>
</root>
@@ -0,0 +1,35 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<Fonts>
<Font>
<Name>Normal</Name>
<Outline>0</Outline>
<OutlineColor>
<R>0</R>
<G>0</G>
<B>0</B>
<A>1</A>
</OutlineColor>
<Folder>FreeSans</Folder>
<FileNormal>FreeSans.ttf</FileNormal>
<FileBold>FreeSansBold.ttf</FileBold>
<FileItalic>FreeSansOblique.ttf</FileItalic>
<FileBoldItalic>FreeSansBoldOblique.ttf</FileBoldItalic>
</Font>
<Font>
<Name>Outline</Name>
<Outline>0.1</Outline>
<OutlineColor>
<R>0</R>
<G>0</G>
<B>0</B>
<A>1</A>
</OutlineColor>
<Folder>FreeSans</Folder>
<FileNormal>FreeSans.ttf</FileNormal>
<FileBold>FreeSansBold.ttf</FileBold>
<FileItalic>FreeSansOblique.ttf</FileItalic>
<FileBoldItalic>FreeSansBoldOblique.ttf</FileBoldItalic>
</Font>
</Fonts>
</root>
+268
View File
@@ -0,0 +1,268 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<SkinSystemVersion>4</SkinSystemVersion>
<Info>
<Name>Blue</Name>
<Author>bohning</Author>
<VersionMajor>0</VersionMajor>
<VersionMinor>0</VersionMinor>
</Info>
<Colors>
<Player1>
<R>0</R>
<G>0</G>
<B>1</B>
<A>1</A>
</Player1>
<Player2>
<R>1</R>
<G>0</G>
<B>0</B>
<A>1</A>
</Player2>
<Player3>
<R>0</R>
<G>1</G>
<B>0</B>
<A>1</A>
</Player3>
<Player4>
<R>0.5</R>
<G>0</G>
<B>1</B>
<A>1</A>
</Player4>
<Player5>
<R>1</R>
<G>0.8</G>
<B>0</B>
<A>1</A>
</Player5>
<Player6>
<R>1</R>
<G>0</G>
<B>0.5</B>
<A>1</A>
</Player6>
<BackgroundColor>
<R>0</R>
<G>0</G>
<B>0.75</B>
<A>1</A>
</BackgroundColor>
<StaticColor>
<R>0.675</R>
<G>0.89</G>
<B>0.969</B>
<A>1</A>
</StaticColor>
<StaticColorAlpha>
<R>0.675</R>
<G>0.89</G>
<B>0.969</B>
<A>0.5</A>
</StaticColorAlpha>
<StaticWarningColor>
<R>0.675</R>
<G>0.89</G>
<B>0.969</B>
<A>0.6</A>
</StaticWarningColor>
<ButtonColor>
<R>0.675</R>
<G>0.89</G>
<B>0.969</B>
<A>0.3</A>
</ButtonColor>
<ButtonSelColor>
<R>0.675</R>
<G>0.89</G>
<B>0.969</B>
<A>1</A>
</ButtonSelColor>
<ButtonTextColor>
<R>0.675</R>
<G>0.89</G>
<B>0.969</B>
<A>0.5</A>
</ButtonTextColor>
<ButtonTextSelColor>
<R>0.675</R>
<G>0.89</G>
<B>0.969</B>
<A>1</A>
</ButtonTextSelColor>
<SelectSlideColor>
<R>0.675</R>
<G>0.89</G>
<B>0.969</B>
<A>1</A>
</SelectSlideColor>
<SelectSlideColorAlpha>
<R>0.675</R>
<G>0.89</G>
<B>0.969</B>
<A>0.5</A>
</SelectSlideColorAlpha>
<SelectSlideSelColor>
<R>0.675</R>
<G>0.89</G>
<B>0.969</B>
<A>0.5</A>
</SelectSlideSelColor>
<ArrowColor>
<R>0.675</R>
<G>0.89</G>
<B>0.969</B>
<A>0.3</A>
</ArrowColor>
<ArrowSelColor>
<R>0.675</R>
<G>0.89</G>
<B>0.969</B>
<A>1</A>
</ArrowSelColor>
<TextColor>
<R>0.675</R>
<G>0.89</G>
<B>0.969</B>
<A>0.5</A>
</TextColor>
<TextSelColor>
<R>0.675</R>
<G>0.89</G>
<B>0.969</B>
<A>1</A>
</TextSelColor>
<TextWarningColor>
<R>1</R>
<G>0</G>
<B>0</B>
<A>1</A>
</TextWarningColor>
<Black>
<R>0</R>
<G>0</G>
<B>0</B>
<A>1</A>
</Black>
<White>
<R>1</R>
<G>1</G>
<B>1</B>
<A>1</A>
</White>
<Visible>
<R>1</R>
<G>1</G>
<B>1</B>
<A>1</A>
</Visible>
<Invisible>
<R>1</R>
<G>1</G>
<B>1</B>
<A>0</A>
</Invisible>
<LyricProcessedColor>
<R>0</R>
<G>0</G>
<B>1</B>
<A>1</A>
</LyricProcessedColor>
<LyricMainColor>
<R>0</R>
<G>0</G>
<B>0</B>
<A>1</A>
</LyricMainColor>
<LyricSubColor>
<R>0.3</R>
<G>0.3</G>
<B>0.3</B>
<A>1</A>
</LyricSubColor>
<LyricHelper>
<R>0</R>
<G>0</G>
<B>1</B>
<A>0.5</A>
</LyricHelper>
<TimeBar>
<R>0.8</R>
<G>0.95</G>
<B>1</B>
<A>0.5</A>
</TimeBar>
<TimeBarSentence>
<R>0.8</R>
<G>0.95</G>
<B>1</B>
<A>0.85</A>
</TimeBarSentence>
</Colors>
<Skins>
<BG_Default>[Blue]BG_Default.png</BG_Default>
<BG_Options>[Blue]BG_Options.png</BG_Options>
<Menu>Menu.png</Menu>
<Button>Button.png</Button>
<CoverTile>CoverTile.png</CoverTile>
<CoverBackground>CoverBackground.png</CoverBackground>
<Cursor>Cursor.png</Cursor>
<TimeBar>TimeBar.png</TimeBar>
<TimeLine>TimeLine.png</TimeLine>
<Pointer>Pointer.png</Pointer>
<SelectSlide>SelectSlide.png</SelectSlide>
<SelectSlidePlayer>SelectSlidePlayer.png</SelectSlidePlayer>
<SelectSlideArrowLeft>SelectSlideArrowLeft.png</SelectSlideArrowLeft>
<SelectSlideArrowRight>SelectSlideArrowRight.png</SelectSlideArrowRight>
<NoteLeft>notes_left.png</NoteLeft>
<NoteMiddle>notes_mid.png</NoteMiddle>
<NoteRight>notes_right.png</NoteRight>
<NoteBackgroundLeft>notes_bg_left.png</NoteBackgroundLeft>
<NoteBackgroundMiddle>notes_bg_mid.png</NoteBackgroundMiddle>
<NoteBackgroundRight>notes_bg_right.png</NoteBackgroundRight>
<PointsBar>points_bar.png</PointsBar>
<PointsBarBG>points_bar_bg.png</PointsBarBG>
<Lyrics>Lyrics.png</Lyrics>
<LyricHelper>LyricHelper.png</LyricHelper>
<ToneHelper>ToneHelper.png</ToneHelper>
<TextBG>TextBG.png</TextBG>
<Score>Score.png</Score>
<Star>Star.png</Star>
<Snowflake>Snowflake.png</Snowflake>
<SongMenu>SongMenu.png</SongMenu>
<PerfectNoteStar>PerfectNoteStar.png</PerfectNoteStar>
<PauseBG>Pause.png</PauseBG>
<EnergyBeam>EnergyBeam.png</EnergyBeam>
<DuetIcon>DuetIcon.png</DuetIcon>
<VideoIcon>VideoIcon.png</VideoIcon>
<VideoIconCO>VideoIconCO.png</VideoIconCO>
<VideoIconBG>VideoIconBG.png</VideoIconBG>
<MedleyCalcIcon>MedleyCalcIcon.png</MedleyCalcIcon>
<MedleyTagIcon>MedleyTagIcon.png</MedleyTagIcon>
<PlayerSelector>PlayerSelector.png</PlayerSelector>
<PreviousIcon>PreviousIcon.png</PreviousIcon>
<NextIcon>NextIcon.png</NextIcon>
<PlayIcon>PlayIcon.png</PlayIcon>
<PauseIcon>PauseIcon.png</PauseIcon>
<RepeatIcon>RepeatIcon.png</RepeatIcon>
<SongMenuBG>SongMenuBG.png</SongMenuBG>
<CloseIcon>Close.png</CloseIcon>
<DeleteIcon>Delete.png</DeleteIcon>
<SaveIcon>Save.png</SaveIcon>
<SingIcon>Sing.png</SingIcon>
<Minus>Minus.png</Minus>
<Plus>Plus.png</Plus>
<Random>Random.png</Random>
<PopupBG>Popup.png</PopupBG>
<ScrollUp>ScrollUp.png</ScrollUp>
<ScrollDown>ScrollDown.png</ScrollDown>
</Skins>
<Videos>
<BG_Video>[Blue]BG_Video.mp4</BG_Video>
<IntroIn>[Blue]IntroIn.mp4</IntroIn>
<IntroMid>[Blue]IntroMid.mp4</IntroMid>
<IntroOut>[Blue]IntroOut.mp4</IntroOut>
</Videos>
</root>
+16
View File
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<ThemeSystemVersion>5</ThemeSystemVersion>
<Info>
<Name>Ambient</Name>
<Author>bohning</Author>
<VersionMajor>0</VersionMajor>
<VersionMinor>2</VersionMinor>
</Info>
<Cursor>
<Skin>Cursor</Skin>
<W>40</W>
<H>40</H>
<Color Name="StaticColor" />
</Cursor>
</root>
@@ -0,0 +1,37 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<Info>
<Name>Blue</Name>
<Folder>Blue</Folder>
<Author>flokuep</Author>
</Info>
<CoverGenerator Type="Default">
<Text>
<Text>%TEXT%</Text>
<Font>
<Name>Normal</Name>
<Style>Bold</Style>
<Size>500</Size>
</Font>
<Color>
<R>1</R>
<G>1</G>
<B>1</B>
<A>0.8</A>
</Color>
<Margin Default="24">
<Left>24</Left>
</Margin>
<Indent>100</Indent>
</Text>
<BackgroundColor>
<R>1</R>
<G>1</G>
<B>1</B>
<A>1</A>
</BackgroundColor>
<Image>EmptyCover.png</Image>
<ImageAlpha>0.75</ImageAlpha>
<ShowFirstCover>True</ShowFirstCover>
</CoverGenerator>
</root>
+256
View File
@@ -0,0 +1,256 @@
<?xml version="1.0" encoding="utf-8"?>
<Screen>
<Informations>
<ScreenName>ScreenMain</ScreenName>
<ScreenVersion>2</ScreenVersion>
</Informations>
<Backgrounds>
<Background Name="Background1">
<Type>Video</Type>
<SlideShowTextures />
<Video>BG_Video</Video>
<Skin>BG_Default</Skin>
<Color Name="BackgroundColor" />
</Background>
</Backgrounds>
<Statics>
<Static Name="StaticMenuBar">
<Skin>Menu</Skin>
<Color Name="Invisible" />
<Rect>
<X>49</X>
<Y>32</Y>
<W>1181</W>
<H>50</H>
<Z>0</Z>
</Rect>
</Static>
<Static Name="StaticWarningProfiles">
<Skin>TextBG</Skin>
<Color Name="StaticWarningColor" />
<Rect>
<X>150</X>
<Y>610</Y>
<W>355</W>
<H>30</H>
<Z>-1.9</Z>
</Rect>
</Static>
</Statics>
<Texts>
<Text Name="TextRelease">
<X>10</X>
<Y>690</Y>
<Z>-1</Z>
<H>15</H>
<MaxW>0</MaxW>
<Color Name="White" />
<SelColor Name="White" />
<Align>Left</Align>
<ResizeAlign>Center</ResizeAlign>
<Style>Normal</Style>
<Font>Normal</Font>
<Text>Vocaluxe "Shining Heaven" v0.3.0 (x64) Beta (0083)</Text>
</Text>
<Text Name="TextWarningProfiles">
<X>320</X>
<Y>612</Y>
<Z>-2</Z>
<H>27</H>
<MaxW>355</MaxW>
<Color Name="TextWarningColor" />
<SelColor Name="TextWarningColor" />
<Align>Center</Align>
<ResizeAlign>Center</ResizeAlign>
<Style>Bold</Style>
<Font>Outline</Font>
<Text>TR_SCREENMAIN_TEXT_NOPROFILES</Text>
</Text>
</Texts>
<Buttons>
<Button Name="ButtonSing">
<Skin>Button</Skin>
<SkinSelected>Button</SkinSelected>
<Rect>
<X>145</X>
<Y>600</Y>
<W>150</W>
<H>50</H>
<Z>0</Z>
</Rect>
<Color Name="ButtonColor" />
<SelColor Name="ButtonSelColor" />
<Text Name="Text">
<X>75</X>
<Y>12</Y>
<Z>0</Z>
<H>27</H>
<MaxW>142</MaxW>
<Color Name="ButtonTextColor" />
<SelColor Name="ButtonTextSelColor" />
<Align>Center</Align>
<ResizeAlign>Center</ResizeAlign>
<Style>Bold</Style>
<Font>Outline</Font>
<Text>TR_SCREENMAIN_BUTTON_SING</Text>
</Text>
<Reflection>
<Height>26</Height>
<Space>10</Space>
</Reflection>
<SelReflection>
<Height>26</Height>
<Space>10</Space>
</SelReflection>
</Button>
<Button Name="ButtonParty">
<Skin>Button</Skin>
<SkinSelected>Button</SkinSelected>
<Rect>
<X>355</X>
<Y>600</Y>
<W>150</W>
<H>50</H>
<Z>0</Z>
</Rect>
<Color Name="ButtonColor" />
<SelColor Name="ButtonSelColor" />
<Text Name="Text">
<X>75</X>
<Y>12</Y>
<Z>0</Z>
<H>27</H>
<MaxW>142</MaxW>
<Color Name="ButtonTextColor" />
<SelColor Name="ButtonTextSelColor" />
<Align>Center</Align>
<ResizeAlign>Center</ResizeAlign>
<Style>Bold</Style>
<Font>Outline</Font>
<Text>TR_SCREENMAIN_BUTTON_PARTY</Text>
</Text>
<Reflection>
<Height>26</Height>
<Space>10</Space>
</Reflection>
<SelReflection>
<Height>26</Height>
<Space>10</Space>
</SelReflection>
</Button>
<Button Name="ButtonOptions">
<Skin>Button</Skin>
<SkinSelected>Button</SkinSelected>
<Rect>
<X>565</X>
<Y>600</Y>
<W>150</W>
<H>50</H>
<Z>0</Z>
</Rect>
<Color Name="ButtonColor" />
<SelColor Name="ButtonSelColor" />
<Text Name="Text">
<X>75</X>
<Y>12</Y>
<Z>0</Z>
<H>27</H>
<MaxW>142</MaxW>
<Color Name="ButtonTextColor" />
<SelColor Name="ButtonTextSelColor" />
<Align>Center</Align>
<ResizeAlign>Center</ResizeAlign>
<Style>Bold</Style>
<Font>Outline</Font>
<Text>TR_SCREENMAIN_BUTTON_OPTIONS</Text>
</Text>
<Reflection>
<Height>26</Height>
<Space>10</Space>
</Reflection>
<SelReflection>
<Height>26</Height>
<Space>10</Space>
</SelReflection>
</Button>
<Button Name="ButtonProfiles">
<Skin>Button</Skin>
<SkinSelected>Button</SkinSelected>
<Rect>
<X>775</X>
<Y>600</Y>
<W>150</W>
<H>50</H>
<Z>0</Z>
</Rect>
<Color Name="ButtonColor" />
<SelColor Name="ButtonSelColor" />
<Text Name="Text">
<X>75</X>
<Y>12</Y>
<Z>0</Z>
<H>27</H>
<MaxW>142</MaxW>
<Color Name="ButtonTextColor" />
<SelColor Name="ButtonTextSelColor" />
<Align>Center</Align>
<ResizeAlign>Center</ResizeAlign>
<Style>Bold</Style>
<Font>Outline</Font>
<Text>TR_SCREENMAIN_BUTTON_PROFILES</Text>
</Text>
<Reflection>
<Height>26</Height>
<Space>10</Space>
</Reflection>
<SelReflection>
<Height>26</Height>
<Space>10</Space>
</SelReflection>
</Button>
<Button Name="ButtonExit">
<Skin>Button</Skin>
<SkinSelected>Button</SkinSelected>
<Rect>
<X>985</X>
<Y>600</Y>
<W>150</W>
<H>50</H>
<Z>0</Z>
</Rect>
<Color Name="ButtonColor" />
<SelColor Name="ButtonSelColor" />
<Text Name="Text">
<X>75</X>
<Y>12</Y>
<Z>0</Z>
<H>27</H>
<MaxW>142</MaxW>
<Color Name="ButtonTextColor" />
<SelColor Name="ButtonTextSelColor" />
<Align>Center</Align>
<ResizeAlign>Center</ResizeAlign>
<Style>Bold</Style>
<Font>Outline</Font>
<Text>TR_BUTTON_EXIT</Text>
</Text>
<Reflection>
<Height>26</Height>
<Space>10</Space>
</Reflection>
<SelReflection>
<Height>26</Height>
<Space>10</Space>
</SelReflection>
</Button>
</Buttons>
<SongMenus />
<Lyrics />
<SelectSlides />
<SingNotes />
<NameSelections />
<Equalizers />
<Playlists />
<ParticleEffects />
<ScreenSettings />
</Screen>