summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@suse.cz>2012-12-18 18:16:44 +0100
committerMiklos Vajna <vmiklos@suse.cz>2012-12-18 18:17:38 +0100
commit058702256211804a449ae7e16b4fc4bd16236f40 (patch)
tree4f3a5423438f2a0f85c02ec55decd7230f34ceeb /sw
parentdf271449deecef88abdddeb2f5248da32b922311 (diff)
sw: update README of qa/extras
Change-Id: I7fc9fb44cbcabfc6d9e766777a3425794beb2bb2
Diffstat (limited to 'sw')
-rw-r--r--sw/qa/extras/README17
1 files changed, 10 insertions, 7 deletions
diff --git a/sw/qa/extras/README b/sw/qa/extras/README
index 261478d854bf..09a9b6dfad3f 100644
--- a/sw/qa/extras/README
+++ b/sw/qa/extras/README
@@ -5,12 +5,13 @@ tests. This file documents how to add new testcases to this framework.
== Import tests
-Import tests are the easier ones. All start with a `load()` method that loads a
-file to `mxComponent`, which represents the UNO model of the document.
+Import tests are the easier ones. First you need to add a new entry to the
+table inside the `run()` method, so the framework will load the specified file
+to `mxComponent`, which represents the UNO model of the document.
-The rest of the testcase is about asserting this document model: use the UNO
-API to retrieve properties, then use `CPPUNIT_ASSERT_EQUAL()` to test against
-an expected value.
+The rest of the testcase is about implementing the test method asserting this
+document model: use the UNO API to retrieve properties, then use
+`CPPUNIT_ASSERT_EQUAL()` to test against an expected value.
See below for more details on writing the UNO code see below.
@@ -26,8 +27,10 @@ Yes, this means that you can test the export code (using this framework) if the
importer is working correctly. (But that's not so bad, users usually expect a
feature to work in both the importer and the exporter.)
-The only difference is that instead of `load()`, you call `roundtrip()` to load
-the test document, then you can assert it as discussed above.
+The only difference is that in these tests the test method is called twice:
+once after the initial import -- so you can see if the export fails due to an
+import problem in fact -- and once after the export and import. The test
+method should still assert the document model only, as discussed above.
== Helper methods