summaryrefslogtreecommitdiff
path: root/docs/integration-testing.md
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2021-02-07 22:57:27 +0000
committerVincent Sanders <vince@kyllikki.org>2021-02-07 22:57:27 +0000
commita091dc3603c18ff3633a206b346891b4381cf323 (patch)
tree3476773e0a566f15af180d3f1407bb3e12fb59cb /docs/integration-testing.md
parentff225194f338519a4856f24b1196ded583ff51af (diff)
downloadnetsurf-a091dc3603c18ff3633a206b346891b4381cf323.tar.gz
netsurf-a091dc3603c18ff3633a206b346891b4381cf323.tar.bz2
allow monkey tests to specify a redraw area for plot-check steps
Diffstat (limited to 'docs/integration-testing.md')
-rw-r--r--docs/integration-testing.md9
1 files changed, 8 insertions, 1 deletions
diff --git a/docs/integration-testing.md b/docs/integration-testing.md
index da93343d2..03b41308a 100644
--- a/docs/integration-testing.md
+++ b/docs/integration-testing.md
@@ -400,9 +400,14 @@ The window to be rendered is identified with the `window` key, the
value of this must be a previously created window identifier or an
assert will occur.
+The `area` key allows control of the area to be redraw. The parameters are on two forms:
+
+ * A sequence of four numbers in the form `x0 y0 x1 y1`
+ * The keyword extent which attempt to plot the entire extent of the canvas
+
An optional list of checks may be specified with the `checks` key. If
any check is not satisfied an assert will occur and the test will
-fail.
+fail. Multiple checks can be specified and all most pass successfully.
The checks available are:
@@ -416,8 +421,10 @@ The checks available are:
- action: plot-check
window: win1
+ area: extent
checks:
- text-contains: NetSurf
+ - text-contains: Browser
- text-not-contains: Chrome
- bitmap-count: 1