Skip to content

Commit

Permalink
Update labeling tests to use engine v2, update expected reference images
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Dec 3, 2019
1 parent 499f240 commit 7f4226d
Show file tree
Hide file tree
Showing 21 changed files with 70 additions and 74 deletions.
2 changes: 1 addition & 1 deletion tests/src/core/testqgslabelingengine.cpp
Expand Up @@ -205,7 +205,7 @@ void TestQgsLabelingEngine::setDefaultLabelParams( QgsPalLayerSettings &settings
QgsLabelingEngineSettings TestQgsLabelingEngine::createLabelEngineSettings()
{
QgsLabelingEngineSettings settings;
settings.setPlacementVersion( QgsLabelingEngineSettings::PlacementEngineVersion1 );
settings.setPlacementVersion( QgsLabelingEngineSettings::PlacementEngineVersion2 );
return settings;
}

Expand Down
4 changes: 3 additions & 1 deletion tests/src/python/test_qgspallabeling_base.py
Expand Up @@ -127,7 +127,9 @@ def setUp(self):
@classmethod
def setDefaultEngineSettings(cls):
"""Restore default settings for pal labeling"""
cls._MapSettings.setLabelingEngineSettings(QgsLabelingEngineSettings())
settings = QgsLabelingEngineSettings()
settings.setPlacementVersion(QgsLabelingEngineSettings.PlacementEngineVersion2)
cls._MapSettings.setLabelingEngineSettings(settings)

@classmethod
def removeAllLayers(cls):
Expand Down
138 changes: 66 additions & 72 deletions tests/src/python/test_qgspallabeling_placement.py

Large diffs are not rendered by default.

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.
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.
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.
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.
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.
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 7f4226d

Please sign in to comment.