Commit 00118158 authored by Simone Gaiarin's avatar Simone Gaiarin Committed by Albert Astals Cid
Browse files

Test that 'Quick Annotations' is correctly populated

parent d31ec707
......@@ -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"));
......
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