Hello,

I started using the 2.2 JWebUnit release recently and found that many of my 
assertTextPresent calls have started failing. After some digging, I think I see 
why: it appears that assertTextPresent eventually calls HTMLUnit's 
DomNode.asText() method. The old asText() method ignored various HTML 
formatting (such as line separators) and also removed nbsp (non-breaking space) 
characters. In the newer code, this has changed. The asText() is now more aware 
of HTML formatting (includes line separators) and no longer strips nbsp.

Is anyone else struggling with this change? Do I need to update all my test 
code or should whoever changed asText() have been more considerate backward 
compatibility?

Here is the relevant diff in HTMLUnit's DomNode code (see line 596 down):
http://htmlunit.svn.sourceforge.net/viewvc/htmlunit/trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/html/DomNode.java?r1=3506&r2=3569

Thank you!


________________________________
The contents contained herein may contain confidential information. If you are 
not the intended recipient, you are hereby notified that any disclosure, 
copying, distribution, printing or action taken on the contents is strictly 
prohibited. If you have received this email in error, please notify the sender 
immediately and delete this message.
------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, & 
iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian
Group, R/GA, & Big Spaceship. http://www.creativitycat.com 
_______________________________________________
JWebUnit-users mailing list
JWebUnit-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jwebunit-users

Reply via email to