summaryrefslogtreecommitdiff
path: root/client/test/util.h
diff options
context:
space:
mode:
Diffstat (limited to 'client/test/util.h')
-rw-r--r--client/test/util.h32
1 files changed, 16 insertions, 16 deletions
diff --git a/client/test/util.h b/client/test/util.h
index 89a887d..abf7df5 100644
--- a/client/test/util.h
+++ b/client/test/util.h
@@ -10,24 +10,24 @@ QDomElement getWidgetElement(QString type = "",
//
// Predefined tests
//
-#define TEST_CREATION(W) \
+#define TEST_CREATION(W) \
QDomElement n = getWidgetElement(#W, "mywidget"); \
- MacroWindow *wnd = createMacroWindow(); \
- W wgd(n, wnd); \
+ MacroWindow *wnd = createMacroWindow(); \
+ W wgd(n, wnd);
-#define TEST_DISABLE(W) \
+#define TEST_DISABLE(W) \
QDomElement n = getWidgetElement(#W, "mywidget"); \
- MacroWindow *wnd = createMacroWindow(); \
- W wdg(n, wnd); \
- wdg.disable(); \
- QCOMPARE(wdg.isDisabled(), true); \
- wdg.enable(); \
- QCOMPARE(wdg.isDisabled(), false);
+ MacroWindow *wnd = createMacroWindow(); \
+ W wdg(n, wnd); \
+ wdg.setEnabled(false); \
+ QCOMPARE(wdg.enabled(), false); \
+ wdg.setEnabled(true); \
+ QCOMPARE(wdg.enabled(), true);
-#define TEST_VALUE(W) \
+#define TEST_VALUE(W) \
QDomElement n = getWidgetElement(#W, "mywidget"); \
- MacroWindow *wnd = createMacroWindow(); \
- W wdg(n, wnd); \
- QCOMPARE(wdg.getValue(), QString("")); \
- wdg.setValue("hello", "source"); \
- QCOMPARE(wdg.getValue(), QString("hello"));
+ MacroWindow *wnd = createMacroWindow(); \
+ W wdg(n, wnd); \
+ QCOMPARE(wdg.value(), QString("")); \
+ wdg.setValue("hello", "source"); \
+ QCOMPARE(wdg.value(), QString("hello"));