After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 586655 - typo hasstate example with more one state separator '+' instead of ','
typo hasstate example with more one state separator '+' instead of ','
Status: RESOLVED FIXED
Product: LDTP
Classification: Other
Component: pyldtp
1.6.0
Other All
: Normal minor
: ---
Assigned To: LDTP maintainers
LDTP Development Mailing List
Depends on:
Blocks:
 
 
Reported: 2009-06-22 16:06 UTC by nouar garcia-mardmabek
Modified: 2009-07-13 00:28 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description nouar garcia-mardmabek 2009-06-22 16:06:03 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.
Comment 1 Nagappan Alagappan 2009-06-23 08:06:45 UTC
Thanks for the bug report. This is fixed now.
Comment 2 nouar garcia-mardmabek 2009-06-30 07:00:16 UTC
Checked in LDTP user manual 1.6.0 general/hasstate
Example had now , instead of +
changing the status to Verified.
Comment 3 nouar garcia-mardmabek 2009-07-01 13:11:54 UTC
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.
Comment 4 Nagappan Alagappan 2009-07-13 00:28:13 UTC
Thanks for the bug report. Fixed in git.