calendarui/views/dayview/tsrc/unittests/unittest_calendayview/unittest_calendayview.cpp
equal
deleted
inserted
replaced
101 QVERIFY(testView); |
101 QVERIFY(testView); |
102 |
102 |
103 delete testView; |
103 delete testView; |
104 } |
104 } |
105 |
105 |
106 int main(int argc, char ** argv) |
106 QTEST_MAIN(TestCalenDayView); |
107 |
107 |
108 { |
|
109 |
|
110 argc++; |
|
111 |
|
112 argc++; |
|
113 |
|
114 char * argvNew[3]; |
|
115 |
|
116 argvNew[0]= argv[0]; |
|
117 |
|
118 argvNew[1]= const_cast<char*>("-o"); |
|
119 |
|
120 argvNew[2]= const_cast<char*>("c:\\unittest\\TestCalenDayView.txt");//set place where //output chould be |
|
121 |
|
122 QApplication app(argc, argvNew); |
|
123 |
|
124 TestCalenDayView testFile;//file with class containing unit tests |
|
125 |
|
126 QTest::qExec(&testFile,argc,argvNew); |
|
127 |
|
128 } |
|
129 #include "unittest_calendayview.moc" |
108 #include "unittest_calendayview.moc" |