summaryrefslogtreecommitdiff
path: root/sw/qa/extras/inc
diff options
context:
space:
mode:
Diffstat (limited to 'sw/qa/extras/inc')
-rw-r--r--sw/qa/extras/inc/swmodeltestbase.hxx15
1 files changed, 15 insertions, 0 deletions
diff --git a/sw/qa/extras/inc/swmodeltestbase.hxx b/sw/qa/extras/inc/swmodeltestbase.hxx
index afd0cb36ba00..27cacf254a1c 100644
--- a/sw/qa/extras/inc/swmodeltestbase.hxx
+++ b/sw/qa/extras/inc/swmodeltestbase.hxx
@@ -123,7 +123,9 @@ protected:
if (mustTestImportOf(filename))
{
header();
+ preTest(filename);
load(mpTestDocumentPath, filename);
+ postTest(filename);
verify();
finish();
}
@@ -158,6 +160,19 @@ protected:
{
return true;
}
+ /**
+ * Override this function if some special filename-specific setup is needed
+ */
+ virtual void preTest(const char* /*filename*/)
+ {
+ }
+
+ /**
+ * Override this function if some special filename-specific teardown is needed
+ */
+ virtual void postTest(const char* /*filename*/)
+ {
+ }
private:
void dumpLayout()