Enable Qt4 tests
[mussa.git] / qui / test / TestColorSharing.hpp
1 #ifndef _TEST_COLOR_SHARING_HPP_
2 #define _TEST_COLOR_SHARING_HPP_
3
4 #include <QtGui>
5 #include <QtTest/QtTest>
6
7 #include "alg/mussa.hpp"
8 #include "alg/color.hpp"
9 #include "qui/MussaWindow.hpp"
10
11 //! do our colors get shared correctly between different windows?
12 class TestColorSharing : public QObject
13 {
14   Q_OBJECT
15
16 private slots:
17
18   void simple2sequence() {
19     Color green(0.0, 1.0, 0.0);
20     Mussa m;
21     m.append_sequence("AAGGCCTT");
22     m.append_sequence("GGTTCCAA");
23     m.set_window(2);
24     m.set_threshold(2);
25     m.analyze();
26
27     //MussaWindow mw(&m);
28     m.add_motif("GG", green);
29   }
30 };
31 #endif