forked from qt-creator/qt-creator
CppEditor: Tests: Fix blocking the token tests by a pop up
Now the used QuickFixFactory InsertVirtualMethods is configured to not generate any pop ups. Change-Id: I36d297678d87e6fb2eb0a73fea6384f0eb7e21f0 Reviewed-by: Christian Stenger <christian.stenger@digia.com>
This commit is contained in:
@@ -27,6 +27,8 @@
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
#include "cppquickfix_test_utils.h"
|
||||
|
||||
#include "cppeditor.h"
|
||||
#include "cppeditorplugin.h"
|
||||
#include "cppquickfixassistant.h"
|
||||
@@ -3121,33 +3123,6 @@ void CppEditorPlugin::test_quickfix_AssignToLocalVariable_noSignatureMatch()
|
||||
data.run(&factory);
|
||||
}
|
||||
|
||||
/// Test dialog for insert virtual functions
|
||||
class InsertVirtualMethodsDialogTest : public InsertVirtualMethodsDialog
|
||||
{
|
||||
public:
|
||||
InsertVirtualMethodsDialogTest(ImplementationMode mode, bool virt, QWidget *parent = 0)
|
||||
: InsertVirtualMethodsDialog(parent)
|
||||
{
|
||||
setImplementationsMode(mode);
|
||||
setInsertKeywordVirtual(virt);
|
||||
}
|
||||
|
||||
bool gather()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
ImplementationMode implementationMode() const
|
||||
{
|
||||
return m_implementationMode;
|
||||
}
|
||||
|
||||
bool insertKeywordVirtual() const
|
||||
{
|
||||
return m_insertKeywordVirtual;
|
||||
}
|
||||
};
|
||||
|
||||
/// Check: Insert only declarations
|
||||
void CppEditorPlugin::test_quickfix_InsertVirtualMethods_onlyDecl()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user