summaryrefslogtreecommitdiff
path: root/sw/qa/extras/README
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2014-03-12 13:21:53 +0100
committerMiklos Vajna <vmiklos@collabora.co.uk>2014-03-12 13:22:36 +0100
commit442192db68cb43e9854e459d5444889825a9f31c (patch)
tree77639eb0dbc0486254a27628658999df09ba336e /sw/qa/extras/README
parent2f295ad6857877f44ef568ab9bbd5784a9be19be (diff)
sw: document that parseDump() uses the F12-generated layout dump
Change-Id: I9613cda8f08ce6a92235b00a053aca4541bba81d
Diffstat (limited to 'sw/qa/extras/README')
-rw-r--r--sw/qa/extras/README11
1 files changed, 11 insertions, 0 deletions
diff --git a/sw/qa/extras/README b/sw/qa/extras/README
index 8759dab9542c..aab53b1dc68e 100644
--- a/sw/qa/extras/README
+++ b/sw/qa/extras/README
@@ -15,6 +15,17 @@ document model: use the UNO API to retrieve properties, then use
See below for more details on writing the UNO code see below.
+=== Direct XPath assertions on the layout dump
+
+In most cases you want to assert the document model, but sometimes asserting
+the layout is easier. If you want to do so, the `parseDump()` method can be
+used to.. parse the layout dump of the currently loaded document. If you want
+to have a look at the XML document that can be asserted, start soffice with the
+`SW_DEBUG=1` environment variable, load a document, press F12, and have a look
+at the `layout.xml` file in the current directory. Once you find the needed
+information in that file, you can write your XPath expression to turn that into
+a testcase.
+
== Export tests
Export tests are similar. Given that test documents are easier to provide in