Skip to content

Commit b76f39e

Browse files
pblottierenyalldawson
authored andcommittedMay 27, 2020
Try to reactivate tests for legend and json export
1 parent 7fa4bab commit b76f39e

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed
 

‎tests/src/core/testqgslegendrenderer.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1440,10 +1440,6 @@ void TestQgsLegendRenderer::testOpacityJson()
14401440
const QJsonObject point_layer = root[1].toObject();
14411441
const QJsonArray point_layer_symbols = point_layer["symbols"].toArray();
14421442

1443-
#if 0
1444-
// these tests were totally broken -- they had a larger number of allowed pixel differences then the reference images themselves!!
1445-
// they've been broken since they were introduced.
1446-
14471443
const QJsonObject point_layer_symbol_red = point_layer_symbols[0].toObject();
14481444
const QImage point_layer_icon_red = _base64ToImage( point_layer_symbol_red["icon"].toString() );
14491445
QString test_name = "point_layer_icon_red_opacity";
@@ -1462,8 +1458,6 @@ void TestQgsLegendRenderer::testOpacityJson()
14621458
point_layer_icon_blue.save( _fileNameForTest( test_name ) );
14631459
QVERIFY( _verifyImage( test_name, mReport, 5 ) );
14641460

1465-
#endif
1466-
14671461
mVL3->setOpacity( opacity );
14681462
}
14691463

0 commit comments

Comments
 (0)
Please sign in to comment.