Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 354e3439 authored by Fabio D'Urso's avatar Fabio D'Urso

Fix previous commit: QVERIFY( ... == ... ) -> QCOMPARE

parent 4cfea5e4
......@@ -188,8 +188,8 @@ void PartTest::testSaveAs()
Okular::Part part(NULL, NULL, QVariantList(), KGlobal::mainComponent());
part.openDocument( archiveSave.fileName() );
QVERIFY( part.m_document->page( 0 )->annotations().size() == 1 );
QVERIFY( part.m_document->page( 0 )->annotations().first()->uniqueName() == annotName );
QCOMPARE( part.m_document->page( 0 )->annotations().size(), 1 );
QCOMPARE( part.m_document->page( 0 )->annotations().first()->uniqueName(), annotName );
QVERIFY( part.saveAs( KUrl( nativeFromArchiveFile.fileName() ), saveAsNativeFlags ) );
......@@ -204,7 +204,7 @@ void PartTest::testSaveAs()
QCOMPARE( part.m_document->page( 0 )->annotations().size(), nativelySupportsAnnotations ? 1 : 0 );
if ( nativelySupportsAnnotations )
QVERIFY( part.m_document->page( 0 )->annotations().first()->uniqueName() == annotName );
QCOMPARE( part.m_document->page( 0 )->annotations().first()->uniqueName(), annotName );
part.closeUrl();
}
......@@ -217,7 +217,7 @@ void PartTest::testSaveAs()
QCOMPARE( part.m_document->page( 0 )->annotations().size(), nativelySupportsAnnotations ? 1 : 0 );
if ( nativelySupportsAnnotations )
QVERIFY( part.m_document->page( 0 )->annotations().first()->uniqueName() == annotName );
QCOMPARE( part.m_document->page( 0 )->annotations().first()->uniqueName(), annotName );
part.closeUrl();
}
......
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