Skip to content
Permalink
Browse files

use QEXPECT_FAIL instead of disabling the test

  • Loading branch information
jef-n committed Aug 19, 2012
1 parent 4e4f6fe commit bcbdd7cba5e2daf52be3a683f125d4c55ded5b60
Showing with 3 additions and 3 deletions.
  1. +1 −1 src/core/symbology-ng/qgsstylev2.cpp
  2. +2 −2 tests/src/core/testqgsstylev2.cpp
@@ -336,7 +336,7 @@ bool QgsStyleV2::save( QString filename )
filename = mFileName;

// TODO evaluate the requirement of this function and change implementation accordingly
// TODO enable save TestStyleV2::testSaveLoad()
// TODO remove QEXPECT_FAIL from TestStyleV2::testSaveLoad() when done
#if 0
QDomDocument doc( "qgis_style" );
QDomElement root = doc.createElement( "qgis_style" );
@@ -188,7 +188,8 @@ void TestStyleV2::testLoadColorRamps()

void TestStyleV2::testSaveLoad()
{
#if 0
QEXPECT_FAIL("", "save() currently disabled in core", Abort);

mStyle->save();
mStyle->clear();
mStyle->load( QgsApplication::userStyleV2Path() );
@@ -205,7 +206,6 @@ void TestStyleV2::testSaveLoad()
if ( ramp )
delete ramp;
}
#endif
}


0 comments on commit bcbdd7c

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