Skip to content
Permalink
Browse files

also remove transparency tests

  • Loading branch information
jef-n committed Apr 8, 2013
1 parent 6b2af9a commit c9c3aa03acbf3bfc43a9a165e54933a1fcca764c
Showing with 8 additions and 2 deletions.
  1. +8 −2 tests/src/core/testziplayer.cpp
10 tests/src/core/testziplayer.cpp 100644 → 100755
@@ -51,8 +51,8 @@ class TestZipLayer: public QObject
// test item(s) in zip item (supply name or test all)
bool testZipItem( QString myFileName, QString myChildName = "", QString myDriverName = "" );
// get layer transparency to test for .qml loading
int getLayerTransparency( QString myFileName, QString myProviderKey, QString myScanZipSetting = "basic" );
bool testZipItemTransparency( QString myFileName, QString myProviderKey, int myTarget );
// int getLayerTransparency( QString myFileName, QString myProviderKey, QString myScanZipSetting = "basic" );
// bool testZipItemTransparency( QString myFileName, QString myProviderKey, int myTarget );

private slots:

@@ -77,13 +77,15 @@ class TestZipLayer: public QObject
void testTarItemVector();
void testZipItemAll();
void testTarItemAll();
#if 0
// test that styles are loaded from .qml files outside zip files
void testZipItemVectorTransparency();
void testTarItemVectorTransparency();
void testGzipItemVectorTransparency();
void testZipItemRasterTransparency();
void testTarItemRasterTransparency();
void testGzipItemRasterTransparency();
#endif
//make sure items inside subfolders can be read
void testZipItemSubfolder();
void testTarItemSubfolder();
@@ -211,6 +213,7 @@ bool TestZipLayer::testZipItem( QString myFileName, QString myChildName, QString
return ok;
}

#if 0
int TestZipLayer::getLayerTransparency( QString myFileName, QString myProviderKey, QString myScanZipSetting )
{
int myTransparency = -1;
@@ -247,6 +250,7 @@ bool TestZipLayer::testZipItemTransparency( QString myFileName, QString myProvid
}
return true;
}
#endif


// slots
@@ -438,6 +442,7 @@ void TestZipLayer::testTarItemAll()
QVERIFY( testZipItem( mDataDir + "testtar.tgz", "" ) );
}

#if 0
void TestZipLayer::testZipItemVectorTransparency()
{
#if GDAL_VERSION_NUM < 1800
@@ -479,6 +484,7 @@ void TestZipLayer::testGzipItemRasterTransparency()
{
QVERIFY( testZipItemTransparency( mDataDir + "landsat_b1.tif.gz", "gdal", 250 ) );
}
#endif

void TestZipLayer::testZipItemSubfolder()
{

3 comments on commit c9c3aa0

@etiennesky

This comment has been minimized.

Copy link
Contributor

@etiennesky etiennesky replied Apr 26, 2013

Jurgen - is there a way to test transparency with latest api?

@jef-n

This comment has been minimized.

Copy link
Member Author

@jef-n jef-n replied Apr 26, 2013

No idea - otherwise I probably would have fixed the test ;)

@etiennesky

This comment has been minimized.

Copy link
Contributor

@etiennesky etiennesky replied Apr 26, 2013

ok thanks, I'll wait until api freeze and check it out

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