Skip to content
Permalink
Browse files

Try to reactivate tests for legend and json export

  • Loading branch information
pblottiere authored and nyalldawson committed May 27, 2020
1 parent 7fa4bab commit b76f39e3c4804c77de8926ceb01d5da22e3a7cda
Showing with 0 additions and 6 deletions.
  1. +0 −6 tests/src/core/testqgslegendrenderer.cpp
@@ -1440,10 +1440,6 @@ void TestQgsLegendRenderer::testOpacityJson()
const QJsonObject point_layer = root[1].toObject();
const QJsonArray point_layer_symbols = point_layer["symbols"].toArray();

#if 0
// these tests were totally broken -- they had a larger number of allowed pixel differences then the reference images themselves!!
// they've been broken since they were introduced.

const QJsonObject point_layer_symbol_red = point_layer_symbols[0].toObject();
const QImage point_layer_icon_red = _base64ToImage( point_layer_symbol_red["icon"].toString() );
QString test_name = "point_layer_icon_red_opacity";
@@ -1462,8 +1458,6 @@ void TestQgsLegendRenderer::testOpacityJson()
point_layer_icon_blue.save( _fileNameForTest( test_name ) );
QVERIFY( _verifyImage( test_name, mReport, 5 ) );

#endif

mVL3->setOpacity( opacity );
}

0 comments on commit b76f39e

Please sign in to comment.
You can’t perform that action at this time.