[LDTP-Dev] [Bug 345858] New: gettextproperty function returns nothing if startpos is > 0

LDTP (bugzilla.gnome.org) bugzilla-daemon at bugzilla.gnome.org
Sun Jun 25 01:52:43 PDT 2006


Do not reply to this via email (we are currently unable to handle email
responses and they get discarded).  You can add comments to this bug at
http://bugzilla.gnome.org/show_bug.cgi?id=345858
 LDTP | ldtp | Ver: 0.4.x

           Summary: gettextproperty function returns nothing if startpos is
                    > 0
           Product: LDTP
           Version: 0.4.x
          Platform: Other
        OS/Version: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: ldtp
        AssignedTo: ldtp-maint at gnome.bugs
        ReportedBy: srinics_202 at yahoo.com
         QAContact: ldtp-dev at lists.freedesktop.org
     GNOME version: Unspecified
   GNOME milestone: Unspecified


Please describe the problem:
The function gettextproperty (Syntax : gettextproperty(windowName,
componentName, startPosition=None, endPosition=None)) does not return anything
when the start position is greater than 0 (i.e text is not at start of the
box), even when text forecolor or backcolor is changed.


Steps to reproduce:
1. Open gedit, type some text
2. Search for some text, such that the text is not at the start of the
document.The text should be highlighted now.
3. in a python shell, type from ldtp import * and
gettextproperty('*gedit','txt0',5,10) (assuming the text searched for in gedit
was from position 5 to position 10)


Actual results:
No output from gettextproperty

Expected results:
output should be bg-color:65535,65535,30840 .. (gedit 2.14 uses yellow color to
highlight a search term).. U can get this output if u search for some text at
the start of the document, and specifying start position as 0

Does this happen every time?
every

Other information:


-- 
Configure bugmail: http://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are watching the assignee for the bug.


More information about the LDTP-dev mailing list