Commit 280e87cc authored by Albert Astals Cid's avatar Albert Astals Cid

test: Switch another QCOMPARE to the right order

parent f74dacd0
Pipeline #6632 passed with stage
in 10 minutes and 33 seconds
......@@ -50,11 +50,11 @@ private slots:
foreach ( QWidget *w, allToplevelWidgets ) {
if ( w->inherits( "QMessageBox" ) ) {
mb = qobject_cast< QMessageBox * >( w );
QCOMPARE( m_message, mb->text() );
QCOMPARE( m_title, mb->windowTitle() );
QCOMPARE( m_icon, mb->icon() );
QCOMPARE( mb->text(), m_message );
QCOMPARE( mb->windowTitle(), m_title );
QCOMPARE( mb->icon(), m_icon );
QCheckBox *box = mb->checkBox();
QCOMPARE( m_checkBox, box != nullptr );
QCOMPARE( box != nullptr, m_checkBox );
mb->button( m_button )->click();
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment