[ios] make unit tests work on iOS and iOS Simulator
This commit is contained in:
committed by
John Firebaugh
parent
db5ac4785f
commit
c587eefbb1
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user