mirror of
https://github.com/Murmele/Gittyup.git
synced 2024-11-05 02:46:56 +03:00
40 lines
879 B
C++
40 lines
879 B
C++
//
|
|
// Copyright (c) 2016, Scientific Toolworks, Inc.
|
|
//
|
|
// This software is licensed under the MIT License. The LICENSE.md file
|
|
// describes the conditions under which this software may be distributed.
|
|
//
|
|
// Author: Shane Gramlich
|
|
//
|
|
|
|
#include "Test.h"
|
|
#include "dialogs/ExternalToolsDialog.h"
|
|
#include <QMainWindow>
|
|
#include <QPlainTextEdit>
|
|
|
|
using namespace Test;
|
|
using namespace QTest;
|
|
|
|
class TestExternalToolsDialog : public QObject {
|
|
Q_OBJECT
|
|
|
|
private slots:
|
|
void initTestCase();
|
|
void cleanupTestCase();
|
|
|
|
private:
|
|
int closeDelay = 0;
|
|
};
|
|
|
|
void TestExternalToolsDialog::initTestCase() {
|
|
ExternalToolsDialog *dialog = new ExternalToolsDialog("diff");
|
|
dialog->show();
|
|
QVERIFY(qWaitForWindowActive(dialog));
|
|
}
|
|
|
|
void TestExternalToolsDialog::cleanupTestCase() { qWait(closeDelay); }
|
|
|
|
TEST_MAIN(TestExternalToolsDialog)
|
|
|
|
#include "external_tools_dialog.moc"
|