##// END OF EJS Templates
removed count signal test from tst_qbarset
sauimone -
r1467:fda4040aa838
parent child
Show More
@@ -131,7 +131,6 void tst_QBarSet::append()
131 131 QVERIFY(qFuzzyIsNull(m_barset->sum()));
132 132
133 133 QSignalSpy valueSpy(m_barset, SIGNAL(valuesAdded(int,int)));
134 QSignalSpy countSpy(m_barset, SIGNAL(countChanged(int)));
135 134
136 135 qreal sum(0.0);
137 136 qreal value(0.0);
@@ -147,7 +146,6 void tst_QBarSet::append()
147 146 QVERIFY(qFuzzyCompare(m_barset->sum(), sum));
148 147
149 148 QCOMPARE(valueSpy.count(), count);
150 QCOMPARE(countSpy.count(), count);
151 149 }
152 150
153 151 void tst_QBarSet::appendOperator_data()
@@ -163,7 +161,6 void tst_QBarSet::appendOperator()
163 161 QVERIFY(qFuzzyIsNull(m_barset->sum()));
164 162
165 163 QSignalSpy valueSpy(m_barset,SIGNAL(valuesAdded(int,int)));
166 QSignalSpy countSpy(m_barset, SIGNAL(countChanged(int)));
167 164
168 165 qreal sum(0.0);
169 166 qreal value(0.0);
@@ -178,7 +175,6 void tst_QBarSet::appendOperator()
178 175 QCOMPARE(m_barset->count(), count);
179 176 QVERIFY(qFuzzyCompare(m_barset->sum(), sum));
180 177 QCOMPARE(valueSpy.count(), count);
181 QCOMPARE(countSpy.count(), count);
182 178 }
183 179
184 180 void tst_QBarSet::insert_data()
@@ -190,7 +186,6 void tst_QBarSet::insert()
190 186 QCOMPARE(m_barset->count(), 0);
191 187 QVERIFY(qFuzzyIsNull(m_barset->sum()));
192 188 QSignalSpy valueSpy(m_barset,SIGNAL(valuesAdded(int,int)));
193 QSignalSpy countSpy(m_barset, SIGNAL(countChanged(int)));
194 189
195 190 m_barset->insert(0, 1.0); // 1.0
196 191 QCOMPARE(m_barset->at(0).y(), 1.0);
@@ -210,7 +205,6 void tst_QBarSet::insert()
210 205 QCOMPARE(m_barset->count(), 3);
211 206 QVERIFY(qFuzzyCompare(m_barset->sum(), 6.0));
212 207 QCOMPARE(valueSpy.count(), 3);
213 QCOMPARE(countSpy.count(), 3);
214 208 }
215 209
216 210 void tst_QBarSet::remove_data()
@@ -223,7 +217,6 void tst_QBarSet::remove()
223 217 QVERIFY(qFuzzyIsNull(m_barset->sum()));
224 218
225 219 QSignalSpy valueSpy(m_barset,SIGNAL(valuesRemoved(int,int)));
226 QSignalSpy countSpy(m_barset, SIGNAL(countChanged(int)));
227 220
228 221 m_barset->append(1.0);
229 222 m_barset->append(2.0);
@@ -247,7 +240,6 void tst_QBarSet::remove()
247 240 QCOMPARE(m_barset->sum(), 6.0);
248 241
249 242 QCOMPARE(valueSpy.count(), 2);
250 QCOMPARE(countSpy.count(), 6);
251 243 }
252 244
253 245 void tst_QBarSet::replace_data()
General Comments 0
You need to be logged in to leave comments. Login now