#184 assertText() fails with multiple spaces

closed-invalid
Web tester (52)
5
2009-08-14
2009-08-11
Puckdropper
No

assertText() will not match the string "Warning: No hostname specified. Assuming localhost." with two spaces after the colon and first period. When the string is altered to have only one space after the colon and period, assertText() works correctly.

Version: 1.0.1

Discussion

  • Marcus Baker

    Marcus Baker - 2009-08-14
    • status: open --> closed-invalid
     
  • Marcus Baker

    Marcus Baker - 2009-08-14

    Hi...

    This is actually correct behaviour. assertText() normalises all white space before comparison. Otherwise you'd have to know whether there were newlines or spaces in the HTML for example. SimpeTest is trying to test the back end code, not the precise output.

    If the spacing is important, then try assertPattern().

    yours, Marcus

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks