Kaydet (Commit) 442192db authored tarafından Miklos Vajna's avatar Miklos Vajna

sw: document that parseDump() uses the F12-generated layout dump

Change-Id: I9613cda8f08ce6a92235b00a053aca4541bba81d
üst 2f295ad6
...@@ -15,6 +15,17 @@ document model: use the UNO API to retrieve properties, then use ...@@ -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. 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
Export tests are similar. Given that test documents are easier to provide in Export tests are similar. Given that test documents are easier to provide in
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment