File tree Expand file tree Collapse file tree 2 files changed +37
-0
lines changed Expand file tree Collapse file tree 2 files changed +37
-0
lines changed Original file line number Diff line number Diff line change @@ -117,6 +117,7 @@ ADD_QGIS_TEST(zoomtest testqgsmaptoolzoom.cpp)
117
117
118
118
#ADD_QGIS_TEST(histogramtest testqgsrasterhistogram.cpp)
119
119
ADD_QGIS_TEST (projectionissues testprojectionissues.cpp )
120
+ ADD_QGIS_TEST (qgsguitest testqgsgui.cpp )
120
121
ADD_QGIS_TEST (scalecombobox testqgsscalecombobox.cpp )
121
122
ADD_QGIS_TEST (dualviewtest testqgsdualview.cpp )
122
123
ADD_QGIS_TEST (doublespinbox testqgsdoublespinbox.cpp )
Original file line number Diff line number Diff line change
1
+ /* **************************************************************************
2
+ testqgsgui.cpp
3
+ --------------------------------------
4
+ Date : 26.1.2015
5
+ Copyright : (C) 2015 Michael Kirk
6
+ Email : michael at jackpine dot me
7
+ ***************************************************************************
8
+ * *
9
+ * This program is free software; you can redistribute it and/or modify *
10
+ * it under the terms of the GNU General Public License as published by *
11
+ * the Free Software Foundation; either version 2 of the License, or *
12
+ * (at your option) any later version. *
13
+ * *
14
+ ***************************************************************************/
15
+
16
+ #include < QtTest/QtTest>
17
+ #include < qgisgui.h>
18
+
19
+ class TestQgsGui : public QObject
20
+ {
21
+ Q_OBJECT
22
+ private slots:
23
+ void createFileFilter ();
24
+
25
+ };
26
+
27
+ void TestQgsGui::createFileFilter ()
28
+ {
29
+ QString expected = " FOO format (*.foo *.FOO)" ;
30
+ QString actual = QgisGui::createFileFilter_ (" foo" );;
31
+
32
+ QCOMPARE ( actual, expected );
33
+ }
34
+
35
+ QTEST_MAIN ( TestQgsGui )
36
+ #include " testqgsgui.moc"
You can’t perform that action at this time.
0 commit comments