Ok, the long awaited config wizard is here (at least in a very basic state). There...
[quassel.git] / src / contrib / libqxt-2007-10-24 / tests / web / htmltemplate / main.cpp
1 #include <QTest>
2 #include <QSignalSpy>
3 #include <QxtHtmlTemplate>
4 class Test: public QObject
5 {
6 Q_OBJECT 
7 private slots:
8     void simple()
9     { 
10         QxtHtmlTemplate t;
11         t.load("<?=foo?>");
12         t["foo"]="bla";
13         QVERIFY(t.render()=="bla");
14     }
15     void surounded()
16     { 
17         QxtHtmlTemplate t;
18         t.load("123456789<?=foo?>123456789");
19         t["foo"]="heyJO";
20         QVERIFY(t.render()=="123456789heyJO123456789");
21     }
22     void indented()
23     { 
24         QxtHtmlTemplate t;
25         t.load("\n       <?=foo?>");
26         t["foo"]="baz\nbar";
27         QVERIFY(t.render()=="\n       baz\n       bar");
28     }
29 };
30
31 QTEST_MAIN(Test)
32 #include "main.moc"