mirror of
https://invent.kde.org/graphics/okular
synced 2024-08-27 03:30:20 +00:00
try to find out where test is broken
This commit is contained in:
parent
b070de5600
commit
38ef3cabf8
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue