mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-06-17 22:03:37 -06:00
Bazzar: GoogleTestUI unique configuration flag.
git-svn-id: svn://ultimatepp.org/upp/trunk@14990 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
3cf2896c61
commit
2a13927e70
4 changed files with 12 additions and 9 deletions
|
|
@ -1,4 +1,4 @@
|
|||
#ifdef flagTESTING_TEST
|
||||
#ifdef flagTESTING_GOOGLE_TEST_UI_EXAMPLE
|
||||
|
||||
#include "AppWindow.h"
|
||||
|
||||
|
|
@ -44,11 +44,12 @@ TEST_F(AppWindowTest, ApperanceTest)
|
|||
if (!FileExists(fileName)) {
|
||||
encoder.SaveFile(fileName, id);
|
||||
Cout() << "Non referal window image. Creating and failing test..\n";
|
||||
EXPECT_TRUE(false);
|
||||
} else {
|
||||
auto img = StreamRaster::LoadFileAny(fileName);
|
||||
EXPECT_EQ(img, id);
|
||||
ASSERT_TRUE(false);
|
||||
return;
|
||||
}
|
||||
|
||||
auto img = StreamRaster::LoadFileAny(fileName);
|
||||
EXPECT_EQ(img, id);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue