diff options
author | John Firebaugh <john.firebaugh@gmail.com> | 2017-06-12 15:12:28 -0700 |
---|---|---|
committer | John Firebaugh <john.firebaugh@gmail.com> | 2017-06-15 07:43:51 -0700 |
commit | fe024bbdf6169d1dd1bdb4f9e20cb93152a0b3b2 (patch) | |
tree | 643c7ddaed75d1cf316de92c34819a6200202d93 /test/api | |
parent | 5a8729182652a5cb4d78644a5b9b9a2a2ff343b6 (diff) | |
download | qtlocation-mapboxgl-fe024bbdf6169d1dd1bdb4f9e20cb93152a0b3b2.tar.gz |
[core] Implement "smart setStyle"
Diffstat (limited to 'test/api')
-rw-r--r-- | test/api/api_misuse.test.cpp | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/test/api/api_misuse.test.cpp b/test/api/api_misuse.test.cpp index af703fddfb..54cde8d9b5 100644 --- a/test/api/api_misuse.test.cpp +++ b/test/api/api_misuse.test.cpp @@ -44,31 +44,3 @@ TEST(API, RenderWithoutCallback) { EXPECT_EQ(log->count(logMessage), 1u); } - -TEST(API, RenderWithoutStyle) { - util::RunLoop loop; - - HeadlessBackend backend { test::sharedDisplay() }; - BackendScope scope { backend }; - OffscreenView view { backend.getContext(), { 128, 512 } }; - StubFileSource fileSource; - ThreadPool threadPool(4); - - Map map(backend, view.getSize(), 1, fileSource, threadPool, MapMode::Still); - - std::exception_ptr error; - map.renderStill(view, [&](std::exception_ptr error_) { - error = error_; - loop.stop(); - }); - - loop.run(); - - try { - std::rethrow_exception(error); - } catch (const util::MisuseException& ex) { - EXPECT_EQ(std::string(ex.what()), "Map doesn't have a style"); - } catch (const std::exception&) { - EXPECT_TRUE(false) << "Unhandled exception."; - } -} |