@@ -476,7 +476,7 @@ TEST(Annotations, ViewFrustumCulling) {
|
||||
|
||||
// Important premise of this test is "static const float viewportPadding =
|
||||
// 100;" as defined in collision_index.cpp: tests using edge insets are
|
||||
// writen so that padding is 128 (half of viewSize width). If increasing
|
||||
// written so that padding is 128 (half of viewSize width). If increasing
|
||||
// viewportPadding, increase the padding in test cases below.
|
||||
AnnotationTest test;
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ using namespace mbgl::style;
|
||||
|
||||
/**
|
||||
* An implementation of style::LayerObserver that forwards all methods to
|
||||
* dynamically-settable lambas.
|
||||
* dynamically-settable lambdas.
|
||||
*/
|
||||
class StubLayerObserver : public style::LayerObserver {
|
||||
public:
|
||||
|
||||
@@ -6,7 +6,7 @@ using namespace mbgl;
|
||||
|
||||
/**
|
||||
* An implementation of TileObserver that forwards all methods to
|
||||
* dynamically-settable lambas.
|
||||
* dynamically-settable lambdas.
|
||||
*/
|
||||
class StubTileObserver : public TileObserver {
|
||||
public:
|
||||
|
||||
@@ -159,7 +159,7 @@ TEST(OfflineDatabase, TEST_REQUIRES_WRITE(CreateFail)) {
|
||||
}
|
||||
|
||||
// Now, we're "freeing up" some space on the disk, and try to insert and
|
||||
// query again. This time, we should be opening the datbase, creating the
|
||||
// query again. This time, we should be opening the database, creating the
|
||||
// schema, and writing the data so that we can retrieve it again.
|
||||
fs.allowFileCreate(true);
|
||||
for (const auto& res : {fixture::resource, fixture::tile}) {
|
||||
|
||||
@@ -1001,7 +1001,7 @@ TEST(Source, GeoJSONSourceTilesAfterDataReset) {
|
||||
|
||||
source.setGeoJSONData(nullptr);
|
||||
static_cast<RenderSource&>(renderSource).update(source.baseImpl, layers, true, true, test.tileParameters());
|
||||
EXPECT_FALSE(renderSource.isLoaded()); // Tiles remain in continous mode.
|
||||
EXPECT_FALSE(renderSource.isLoaded()); // Tiles remain in continuous mode.
|
||||
|
||||
source.setGeoJSONData(geoJSONData);
|
||||
static_cast<RenderSource&>(renderSource).update(source.baseImpl, layers, true, true, test.tileParameters());
|
||||
|
||||
@@ -380,6 +380,9 @@ TEST(GlyphManager, LocalCJKGlyphPrefersLocalRasterizationOverRange) {
|
||||
ASSERT_EQ(testPositions.size(), 1u);
|
||||
ASSERT_EQ(testPositions.count(u'々'), 1u);
|
||||
|
||||
// Katakana letter te, should be locally rasterized
|
||||
// instead of using the glyph received from the range
|
||||
// for the ideagraphic mark
|
||||
test.glyphManager.getGlyphs(test.requestor,
|
||||
GlyphDependencies{.glyphs = {{{{"Test Stack"}}, {u'テ'}}}, // 0x30c6
|
||||
.shapes = {}},
|
||||
|
||||
@@ -169,8 +169,8 @@ TEST(AsyncTask, scheduleAndReplyValue) {
|
||||
loop.stop();
|
||||
};
|
||||
|
||||
std::shared_ptr<Scheduler> sheduler = Scheduler::GetBackground();
|
||||
sheduler->scheduleAndReplyValue(util::SimpleIdentity::Empty, runInBackground, onResult);
|
||||
std::shared_ptr<Scheduler> scheduler = Scheduler::GetBackground();
|
||||
scheduler->scheduleAndReplyValue(util::SimpleIdentity::Empty, runInBackground, onResult);
|
||||
loop.run();
|
||||
}
|
||||
|
||||
@@ -197,11 +197,11 @@ TEST(AsyncTask, SequencedScheduler) {
|
||||
loop.stop();
|
||||
};
|
||||
|
||||
std::shared_ptr<Scheduler> sheduler = Scheduler::GetSequenced();
|
||||
std::shared_ptr<Scheduler> scheduler = Scheduler::GetSequenced();
|
||||
|
||||
sheduler->schedule(first);
|
||||
sheduler->schedule(second);
|
||||
sheduler->schedule(third);
|
||||
scheduler->schedule(first);
|
||||
scheduler->schedule(second);
|
||||
scheduler->schedule(third);
|
||||
loop.run();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user