Feature Requests item #828830, was opened at 2003-10-23 06:10
Message generated for change (Comment added) made by jimweaver
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=497985&aid=828830&group_id=61302
Category: None
Group: None
Status: Open
Priority: 5
Submitted By: Olaf Kock (oko)
Assigned to: Nobody/Anonymous (nobody)
Summary: assertTextInElement ("element", "")
Initial Comment:
currently it's not possible (or I've missed it) to
check for empty elements, e.g.
<span id="element"></span>
as assertTextInElement( "element", "" ); doesn't find
the empty string.
It's a one-line patch in
net.sourceforge.jwebunit.HttpUnitDialog.isTextInElement:
Add a new second line, so that the method begin reads:
public boolean isTextInElement(Element element, String
text) {
NodeList children = element.getChildNodes();
if(children.getLength()==0 && text.length()==0)
return true;
....
----------------------------------------------------------------------
>Comment By: Jim Weaver (jimweaver)
Date: 2004-09-21 14:53
Message:
Logged In: YES
user_id=619947
Hmmm, would suggest a separate signature for this -
assertElementEmpty much like assertFormElementEmpty
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=497985&aid=828830&group_id=61302
-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
_______________________________________________
Jwebunit-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jwebunit-development