Bug 496294 - "get-property text" trims strings
Summary: "get-property text" trims strings
Status: UNCONFIRMED
Alias: None
Product: RCPTT
Classification: Technology
Component: ECL (show other bugs)
Version: 2.1.0   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: 2.0.2   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-06-17 07:23 EDT by Daniel Herding CLA
Modified: 2016-06-17 07:23 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Herding CLA 2016-06-17 07:23:02 EDT
I'm writing a test in which I want to verify that whitespace is preserved in our application.

I have a text field which contains text with leading and trailing whitespace, e.g.:
"  foobar  "

I want to test whether whitespace is properly preserved using this ECL code:
get-editbox | get-property text | equals "  foobar  " | verify-true

I noticed two things:
* "get-property text" returns the trimmed string. This is undesired.
* "foobar" | equals "  foobar  " returns true. I expect it to work similar to
  java.lang.String.equals().

The RCPTT engine shouldn't do any trimming at all.