[ios] make unit tests work on iOS and iOS Simulator

This commit is contained in:
Konstantin Käfer
2016-02-18 13:26:44 +01:00
committed by John Firebaugh
parent db5ac4785f
commit c587eefbb1
26 changed files with 217 additions and 40 deletions

View File

@@ -37,7 +37,9 @@ TEST(API, RepeatedRender) {
auto result = promise.get_future().get();
ASSERT_EQ(256, result.width);
ASSERT_EQ(512, result.height);
#if !TEST_READ_ONLY
util::write_file("test/fixtures/api/1.png", encodePNG(result));
#endif
}
{
@@ -49,7 +51,9 @@ TEST(API, RepeatedRender) {
auto result = promise.get_future().get();
ASSERT_EQ(256, result.width);
ASSERT_EQ(512, result.height);
#if !TEST_READ_ONLY
util::write_file("test/fixtures/api/2.png", encodePNG(result));
#endif
}
auto observer = Log::removeObserver();