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

List:       kde-commits
Subject:    koffice/kspread
From:       Ariya Hidayat <ariya () kde ! org>
Date:       2004-09-13 21:55:23
Message-ID: 20040913215523.36FCA175C () office ! kde ! org
[Download RAW message or body]

CVS commit by ariya: 

use the TestRunner, for developers only


  M +16 -0     kspread_view.cc   1.791
  M +2 -0      kspread_view.h   1.252


--- koffice/kspread/kspread_view.h  #1.251:1.252
@@ -489,4 +489,6 @@ public slots:
     void handleDamages( const QValueList<KSpread::Damage*>& damages );
 
+    void runInternalTests();
+
 protected slots:
     /**

--- koffice/kspread/kspread_view.cc  #1.790:1.791
@@ -120,4 +120,6 @@
 #include "damages.h"
 
+#include "testrunner.h"
+
 #include "KSpreadViewIface.h"
 #include "kspread_dlg_paperlayout.h"
@@ -558,4 +560,5 @@ public:
     KAction* customList;
     KAction* spellChecking;
+    KAction* internalTests;
 
     // settings
@@ -1247,4 +1250,8 @@ void ViewPrivate::initActions()
   actions->calcCount->setToolTip(i18n("Calculate using the count."));
 
+  // -- special action, only for developers --
+
+  actions->internalTests = new KAction( i18n("Run Internal Tests..."), "internalTests", 
+                  0, view, SLOT( runInternalTests() ), ac, "internalTests" );
 }
 
@@ -6665,4 +6672,13 @@ void KSpreadView::handleDamages( const Q
 }
 
+void KSpreadView::runInternalTests()
+{
+    // run various tests, only for developers   
+    KSpread::TestRunner* runner = new KSpread::TestRunner();
+    runner->exec();
+    delete runner;
+}
+
+
 
 #include "kspread_view.moc"


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

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