[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [plasmate] editors/text: Remote the test from editors/text/tests.
From:       Giorgos Tsiapaliwkas <terietor () gmail ! com>
Date:       2012-05-15 11:41:54
Message-ID: 20120515114154.D69D8A60A9 () git ! kde ! org
[Download RAW message or body]

Git commit 733f4dd68a1e0d142a80a795852d570e7bf9baaa by Giorgos Tsiapaliwkas.
Committed on 15/05/2012 at 13:40.
Pushed by tsiapaliwkas into branch 'master'.

Remote the test from editors/text/tests.
I removed the test because it didn't test the our code.
We want to merge TextEditor in a KParts::MainWindow not in a QWidget

D  +0    -15   editors/text/CMakeLists.txt
D  +0    -43   editors/text/tests/test_text.cpp

http://commits.kde.org/plasmate/733f4dd68a1e0d142a80a795852d570e7bf9baaa

diff --git a/editors/text/CMakeLists.txt b/editors/text/CMakeLists.txt
deleted file mode 100644
index cff15c2..0000000
--- a/editors/text/CMakeLists.txt
+++ /dev/null
@@ -1,15 +0,0 @@
-project( plasmate_text_editor_test )
-
-find_package(KDE4 REQUIRED)
-include(KDE4Defaults)
-
-add_definitions(${QT_DEFINITIONS} ${KDE4_DEFINITIONS})
-include_directories(${KDE4_INCLUDES} ../..)
-
-set( testtext_SRCS tests/test_text.cpp
-                        texteditor.cpp
-)
-
-kde4_add_executable( testtext TEST ${testtext_SRCS})
-target_link_libraries( testtext ${KDE4_KDEUI_LIBS} ${KDE4_KTEXTEDITOR_LIBS} ${KDE4_PLASMA_LIBS} )
-
diff --git a/editors/text/tests/test_text.cpp b/editors/text/tests/test_text.cpp
deleted file mode 100644
index 3bbcdff..0000000
--- a/editors/text/tests/test_text.cpp
+++ /dev/null
@@ -1,43 +0,0 @@
-#include <KApplication>
-#include <KAboutData>
-#include <KCmdLineArgs>
-#include <KLocale>
-#include <QDir>
-#include <QVBoxLayout>
-#include <QPushButton>
-
-#include "../texteditor.h"
-
-int main(int argc, char **argv)
-{
-//    KCmdLineArgs::init(argc, argv);
-//    KApplication app;
-
-    QApplication app(argc, argv);
-
-    QWidget *top = new QWidget();
-    QVBoxLayout *vbox = new QVBoxLayout(top);
-
-    TextEditor *ed = new TextEditor(top);
-    vbox->addWidget(ed);
-
-//     QPushButton *save = new QPushButton( top );
-//     save->setText("&Save");
-//     vbox->addWidget(save);
-
-//     QString filename;
-//     if ( argc != 2 ) {
-//  filename = QDir::currentPath() + "/tests/plasma-applet-systemtray.desktop";
-//     }
-//     else {
-//  filename = QDir::currentPath() + "/" + argv[1];
-//     }
-
-//     ed->setFilename( filename );
-//     ed->readFile();
-
-//     QObject::connect( save, SIGNAL(clicked()), ed, SLOT(writeFile()) );
-    top->show();
-
-    return app.exec();
-}
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic