Skip to content

Commit

Permalink
Test fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Oct 31, 2019
1 parent c7d152d commit 65b81b6
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions tests/src/core/testqgsdxfexport.cpp
Expand Up @@ -153,7 +153,7 @@ void TestQgsDxfExport::testPoints()

QString file = getTempFileName( "point_dxf" );
QFile dxfFile( file );
QCOMPARE( d.writeToFile( &dxfFile, QStringLiteral( "CP1252" ) ), QgsDxfExport::Success );
QCOMPARE( d.writeToFile( &dxfFile, QStringLiteral( "CP1252" ) ), QgsDxfExport::ExportResult::Success );
dxfFile.close();

// reload and compare
Expand Down Expand Up @@ -181,7 +181,7 @@ void TestQgsDxfExport::testLines()

QString file = getTempFileName( "line_dxf" );
QFile dxfFile( file );
QCOMPARE( d.writeToFile( &dxfFile, QStringLiteral( "CP1252" ) ), QgsDxfExport::Success );
QCOMPARE( d.writeToFile( &dxfFile, QStringLiteral( "CP1252" ) ), QgsDxfExport::ExportResult::Success );
dxfFile.close();

// reload and compare
Expand Down Expand Up @@ -209,7 +209,7 @@ void TestQgsDxfExport::testPolygons()

QString file = getTempFileName( "polygon_dxf" );
QFile dxfFile( file );
QCOMPARE( d.writeToFile( &dxfFile, QStringLiteral( "CP1252" ) ), QgsDxfExport::Success );
QCOMPARE( d.writeToFile( &dxfFile, QStringLiteral( "CP1252" ) ), QgsDxfExport::ExportResult::Success );
dxfFile.close();

// reload and compare
Expand Down Expand Up @@ -242,7 +242,7 @@ void TestQgsDxfExport::testMultiSurface()

QString file = getTempFileName( "multisurface_dxf" );
QFile dxfFile( file );
QCOMPARE( d.writeToFile( &dxfFile, QStringLiteral( "CP1252" ) ), QgsDxfExport::Success );
QCOMPARE( d.writeToFile( &dxfFile, QStringLiteral( "CP1252" ) ), QgsDxfExport::ExportResult::Success );
dxfFile.close();

// reload and compare
Expand Down Expand Up @@ -295,7 +295,7 @@ void TestQgsDxfExport::testMTextEscapeSpaces()

QString file = getTempFileName( "mtext_escape_spaces" );
QFile dxfFile( file );
QCOMPARE( d.writeToFile( &dxfFile, QStringLiteral( "CP1252" ) ), QgsDxfExport::Success );
QCOMPARE( d.writeToFile( &dxfFile, QStringLiteral( "CP1252" ) ), QgsDxfExport::ExportResult::Success );
dxfFile.close();
QVERIFY( fileContainsText( file, "\\fQGIS Vera Sans|i0|b1;\\H3.81136;A\\~text\\~with\\~spaces" ) );
}
Expand Down Expand Up @@ -331,7 +331,7 @@ void TestQgsDxfExport::testText()

QString file = getTempFileName( "text_dxf" );
QFile dxfFile( file );
QCOMPARE( d.writeToFile( &dxfFile, QStringLiteral( "CP1252" ) ), QgsDxfExport::Success );
QCOMPARE( d.writeToFile( &dxfFile, QStringLiteral( "CP1252" ) ), QgsDxfExport::ExportResult::Success );
dxfFile.close();


Expand Down Expand Up @@ -397,7 +397,7 @@ bool TestQgsDxfExport::testMtext( QgsVectorLayer *vlayer, const QString &tempFil

QString file = getTempFileName( tempFileName );
QFile dxfFile( file );
if ( d.writeToFile( &dxfFile, QStringLiteral( "CP1252" ) ) != 0 )
if ( d.writeToFile( &dxfFile, QStringLiteral( "CP1252" ) ) != QgsDxfExport::ExportResult::Success )
{
return false;
}
Expand Down Expand Up @@ -451,7 +451,7 @@ void TestQgsDxfExport::testGeometryGeneratorExport()

QString file = getTempFileName( "geometry_generator_dxf" );
QFile dxfFile( file );
QCOMPARE( d.writeToFile( &dxfFile, QStringLiteral( "CP1252" ) ), QgsDxfExport::Success );
QCOMPARE( d.writeToFile( &dxfFile, QStringLiteral( "CP1252" ) ), QgsDxfExport::ExportResult::Success );
dxfFile.close();

QVERIFY( fileContainsText( file, "HATCH" ) );
Expand Down Expand Up @@ -484,7 +484,7 @@ void TestQgsDxfExport::testCurveExport()

QString file = getTempFileName( wktType );
QFile dxfFile( file );
QCOMPARE( d.writeToFile( &dxfFile, QStringLiteral( "CP1252" ) ), QgsDxfExport::Success );
QCOMPARE( d.writeToFile( &dxfFile, QStringLiteral( "CP1252" ) ), QgsDxfExport::ExportResult::Success );
dxfFile.close();

QVERIFY( fileContainsText( file, dxfText ) );
Expand Down

0 comments on commit 65b81b6

Please sign in to comment.