Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
More test updates
  • Loading branch information
nyalldawson committed Jul 8, 2020
1 parent 48c322e commit fd1555d
Show file tree
Hide file tree
Showing 10 changed files with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/src/core/testqgslayoutmap.cpp
Expand Up @@ -34,6 +34,7 @@
#include "qgspallabeling.h"
#include "qgsvectorlayerlabeling.h"
#include "qgstemporalrangeobject.h"
#include "qgsfontutils.h"

#include <QObject>
#include "qgstest.h"
Expand Down Expand Up @@ -86,6 +87,8 @@ void TestQgsLayoutMap::initTestCase()
QgsApplication::init();
QgsApplication::initQgis();

QgsFontUtils::loadStandardTestFonts( QStringList() << QStringLiteral( "Bold" ) );

//create maplayers from testdata and add to layer registry
QFileInfo rasterFileInfo( QStringLiteral( TEST_DATA_DIR ) + "/landsat.tif" );
mRasterLayer = new QgsRasterLayer( rasterFileInfo.filePath(),
Expand Down Expand Up @@ -553,6 +556,7 @@ void TestQgsLayoutMap::rasterized()
QgsLayoutItemMapGrid *grid = new QgsLayoutItemMapGrid( "test", map );
grid->setIntervalX( 10 );
grid->setIntervalY( 10 );
grid->setAnnotationTextFormat( QgsTextFormat::fromQFont( QgsFontUtils::getStandardTestFont( QStringLiteral( "Bold" ) ) ) );
grid->setBlendMode( QPainter::CompositionMode_Darken );
grid->setAnnotationEnabled( true );
grid->setAnnotationDisplay( QgsLayoutItemMapGrid::ShowAll, QgsLayoutItemMapGrid::Left );
Expand Down
Binary file not shown.
Binary file not shown.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit fd1555d

Please sign in to comment.