Q7

Get style info based on a cursor position

Details

  • Type: Improvement Improvement
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.2.19
  • Fix Version/s: 1.2.20, 1.3.3
  • Component/s: ECL, Runtime, UI
  • Labels:
  • Test Mode:
    Manual

Description

Currently to assert a style of some element it is required to find a correct element in 'styles' list in textviewer properties. This is not really readable and quite fragile, as indices might easily shifted if some new styled ranges were added/removed.
Instead, we could add a property like 'style at cursor', so test case might look like this:

// Put cursor to function name
set-caret-pos 10 20
// Assert its style
get-property "style-at-cursor" ...

// Put cursor to parameter
set-caret-pos 14 22
// Assert its style
get-property "style-at-cursor" ...

// etc...

Activity

Hide
komaz added a comment - 17/May/13 1:28 PM

Added new property styleAtCaret

Show
komaz added a comment - 17/May/13 1:28 PM Added new property styleAtCaret
Hide
sergey added a comment - 17/May/13 3:32 PM

Gives NPE on plain text editor – reopened.

Show
sergey added a comment - 17/May/13 3:32 PM Gives NPE on plain text editor – reopened.

People

  • Assignee:
    komaz
    Reporter:
    komaz
Vote (0)
Watch (0)

Dates

  • Created:
    08/May/13 10:26 PM
    Updated:
    24/May/13 11:43 AM
    Resolved:
    24/May/13 11:43 AM