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 402371 - The verifyselect function for combox works invalid.
The verifyselect function for combox works invalid.
Status: VERIFIED FIXED
Product: LDTP
Classification: Other
Component: ldtp
unspecified
Other Linux
: Normal normal
: ---
Assigned To: LDTP maintainers
LDTP Development Mailing List
Depends on:
Blocks:
 
 
Reported: 2007-01-30 07:28 UTC by lavi
Modified: 2007-01-31 03:22 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch to fix verifyselect function to work properly (2.48 KB, patch)
2007-01-30 12:19 UTC, Nagappan Alagappan
accepted-commit_now Details | Review

Description lavi 2007-01-30 07:28:19 UTC
Steps to Reproduce:
1. Open Tasks PIM, invokes a 'Details' dialogbox.
2. ldtp.verifyselect('dlgDetails', 'cboUnfiled', 'Unfiled')
3. ldtp.verifyselect('dlgDetails', 'cboUnfiled', 'Business')

Actual Results:
Both step 2 and step 3 return 1.

Expected Results:
2 will returns 1 but 3 will returns 0
Comment 1 lavi 2007-01-30 07:56:06 UTC
Steps to Reproduce:
1. Open gedit, invokes a 'Open Files...' dialogbox.
2. ldtp.verifyselect('dlgOpenFiles*', 'cboAllFiles', 'AllFiles')
3. ldtp.verifyselect('dlgOpenFiles*', 'cboAllFiles', 'AllTextFiles')

Actual Results:
Both step 2 and step 3 return 1.

Expected Results:
2 will returns 1 but 3 will returns 0
Comment 2 Nagappan Alagappan 2007-01-30 12:16:18 UTC
Lavi: Its a bug in gedit (specific to combo box All Files / All Text Files). Its not enabling SPI_STATE_SELECTED. Also bug in LDTP ;) Now fixed it.

With the fix in LDTP, it works only for Character Coding combo box, but not for All Files combo box.
Comment 3 Nagappan Alagappan 2007-01-30 12:19:17 UTC
Created attachment 81509 [details] [review]
Patch to fix verifyselect function to work properly

3rd argument should be 'All Files' or 'All Text Files'. It will not support 'AllTextFiles' or 'AllText*'
Comment 4 lavi 2007-01-31 01:28:27 UTC
Verified in newly CVS.

Both of returned value are 0 whatever selected item.
 ldtp.verifyselect('dlgOpenFiles*', 'cboAllFiles', 'All Text Files')
 ldtp.verifyselect('dlgOpenFiles*', 'cboAllFiles', 'All Files')
Comment 5 lavi 2007-01-31 03:21:46 UTC
Sorry, Fixed in newly CVS.