GNOME Bugzilla – Bug 586655
typo hasstate example with more one state separator '+' instead of ','
Last modified: 2009-07-13 00:28:13 UTC
Documentation Section: http://ldtp.freedesktop.org/user-doc/index.html general/hasstate Example: hasstate ('*-gedit', 'txt0', state.FOCUSABLE) hasstate ('*-gedit', 'txt0', state.FOCUSABLE + state.VISIBLE) Correct version: Example: hasstate ('*-gedit', 'txt0', state.FOCUSABLE) hasstate ('*-gedit', 'txt0', state.FOCUSABLE , state.VISIBLE) Other information: Syntax: hasstate ('<window name>', '<object name>', <object SPI state-1>[, ..., <object SPI state-n>]) The bad example (2) leads to INVALID state.
Thanks for the bug report. This is fixed now.
Checked in LDTP user manual 1.6.0 general/hasstate Example had now , instead of + changing the status to Verified.
sorry made a mistake in the correct syntax of the example. if more than one state then we have to give the states within a list. hasstate in 1.6.0 accepts 3 arguments only.
Thanks for the bug report. Fixed in git.