sw/qa/extras/README | 11 +++++++++++ 1 file changed, 11 insertions(+) New commits: commit 442192db68cb43e9854e459d5444889825a9f31c Author: Miklos Vajna <vmik...@collabora.co.uk> Date: Wed Mar 12 13:21:53 2014 +0100
sw: document that parseDump() uses the F12-generated layout dump Change-Id: I9613cda8f08ce6a92235b00a053aca4541bba81d diff --git a/sw/qa/extras/README b/sw/qa/extras/README index 8759dab..aab53b1 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 _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits