MCPcopy Create free account
hub / github.com/OpenMS/OpenMS / testGui

Method testGui

src/tests/class_tests/openms_gui/source/GUI/TSGDialog_test.cpp:218–284  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

216}
217
218void TestTSGDialog::testGui()
219{
220 //////////////////////////////////////////////////////
221 // PEPTIDE //
222 //////////////////////////////////////////////////////
223 UI->seq_type->setCurrentText("Peptide");
224 QTest::qWait(DELAY);
225
226 // sequence input
227 testSequenceInput_("PEPTIDE");
228
229 // charge
230 testSpinBox_(UI->charge_spinbox);
231
232 // isotope model
233 QVERIFY2(!UI->isotope_model->isHidden(), "Isotope model hidden for 'Peptide' setting.");
234 testIsotopeModel_();
235
236 // ion types and intensities
237 testIonsIntensities_();
238
239 // check relative loss intensity manually
240 UI->rel_loss_intensity->clear();
241 QTest::keyClicks(UI->rel_loss_intensity, "2");
242 QTest::qWait(DELAY);
243 QVERIFY(2.0 == UI->rel_loss_intensity->value());
244
245 //////////////////////////////////////////////////////
246 // RNA //
247 //////////////////////////////////////////////////////
248 UI->seq_type->setCurrentText("RNA");
249 QTest::qWait(DELAY);
250
251 // sequence input
252 testSequenceInput_("ACGUGCA");
253
254 // charge
255 testSpinBox_(UI->charge_spinbox);
256
257 // isotope model
258 QVERIFY2(UI->isotope_model->isHidden(), "Isotope model not hidden for 'Peptide' setting.");
259
260 // ion types and intensities
261 testIonsIntensities_();
262 // check relative loss intensity manually
263 QVERIFY(UI->rel_loss_intensity->isHidden());
264 QVERIFY(UI->rel_loss_label->isHidden());
265
266 //////////////////////////////////////////////////////
267 // Metabolite //
268 //////////////////////////////////////////////////////
269 UI->seq_type->setCurrentText("Metabolite");
270 QTest::qWait(DELAY);
271
272 // sequence input
273 testSequenceInput_("C100H70N2O6");
274
275 // charge

Callers

nothing calls this directly

Calls 3

isHiddenMethod · 0.80
clearMethod · 0.45
valueMethod · 0.45

Tested by

no test coverage detected