Test that 'Quick Annotations' is correctly populated

remotes/origin/work/aacid/annoying_braces
Simone Gaiarin 6 years ago committed by Albert Astals Cid
parent d31ec70726
commit 00118158b9
  1. 6
      autotests/annotationtoolbartest.cpp

@ -17,6 +17,8 @@
#include <QToolBar>
#include <QWidget>
#include <KSelectAction>
#include "../core/page.h"
#include "../part.h"
#include "../settings.h"
@ -153,6 +155,10 @@ void AnnotationToolBarTest::testAnnotationToolBar()
QVERIFY(!aAdvancedSettings->isEnabled());
QVERIFY(aContinuousMode->isEnabled());
// Ensure that the 'Quick Annotations' action is correctly populated
// (at least the 'Configure Annotations...' action must be present)
QVERIFY(!qobject_cast<KSelectAction *>(aQuickTools)->actions().isEmpty());
// Test annotation toolbar visibility triggers
QAction *toggleAnnotationToolBar = part->actionCollection()->action(QStringLiteral("mouse_toggle_annotate"));
QAction *aHideToolBar = part->actionCollection()->action(QStringLiteral("hide_annotation_toolbar"));

Loading…
Cancel
Save