OSDN Git Service

Remove test of Qt4 project loading
authorTobias Hunger <tobias.hunger@nokia.com>
Mon, 29 Aug 2011 14:31:18 +0000 (14:31 +0000)
committerTobias Hunger <tobias.hunger@nokia.com>
Mon, 29 Aug 2011 15:37:12 +0000 (17:37 +0200)
This test is broken for a long time now and the squish tests cover
this functionality.

Change-Id: I5ec598da8d2b9fec304a6df76509fa66318a6c2b
Reviewed-on: http://codereview.qt.nokia.com/3820
Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com>
src/plugins/qt4projectmanager/qt4projectmanagerplugin.cpp
src/plugins/qt4projectmanager/qt4projectmanagerplugin.h

index c08372b..d45f38e 100644 (file)
@@ -326,18 +326,4 @@ void Qt4ProjectManagerPlugin::jumpToFile()
         editor->jumpToFile();
 }
 
-#ifdef WITH_TESTS
-void Qt4ProjectManagerPlugin::testBasicProjectLoading()
-{
-    QString testDirectory = ExtensionSystem::PluginManager::instance()->testDataDirectory() + "/qt4projectmanager/";
-    QString test1 = testDirectory + "test1/test1.pro";
-    m_projectExplorer->openProject(test1);
-    QVERIFY(!m_projectExplorer->session()->projects().isEmpty());
-    Qt4Project *qt4project = qobject_cast<Qt4Project *>(m_projectExplorer->session()->projects().first());
-    QVERIFY(qt4project);
-    QVERIFY(qt4project->rootQt4ProjectNode()->projectType() == ApplicationTemplate);
-    QVERIFY(m_projectExplorer->currentProject() != 0);
-}
-#endif
-
 Q_EXPORT_PLUGIN(Qt4ProjectManagerPlugin)
index c6c66d3..c1d67e0 100644 (file)
@@ -72,7 +72,6 @@ private slots:
     void jumpToFile();
 
 #ifdef WITH_TESTS
-    void testBasicProjectLoading(); // Test fails!
     void testAbldOutputParsers_data();
     void testAbldOutputParsers();
     void testSbsV2OutputParsers_data();