try to find out where test is broken

This commit is contained in:
Albert Astals Cid 2013-10-29 00:45:39 +01:00
parent b070de5600
commit 38ef3cabf8

View file

@ -10,6 +10,7 @@
#include <qtest_kde.h>
#include "../part.h"
#include "../core/action.h"
#include "../core/page.h"
namespace Okular
@ -38,6 +39,9 @@ void EpubInternalLinksTest::testInternalLinks()
const ObjectRect *rect = doc->page( 0 )->objectRect( ObjectRect::Action, 0.0453564, yCords, width, height);
QVERIFY( rect );
const Okular::Action * action = static_cast< const Okular::Action * >( rect->object() );
QCOMPARE( action->actionType(), Action::Goto );
const Okular::GotoAction * gAction = static_cast< const Okular::GotoAction * >( action );
QCOMPARE( gAction->destViewport().pageNumber, pagesNos );
doc->processAction( action );
QCOMPARE( doc->currentPage(), ( uint ) pagesNos );
part.slotGotoFirst();