- From: Curt Arnold <carnold@houston.rr.com>
- Date: Mon, 03 Feb 2003 23:54:41 -0600
- To: jeroen@x-hive.com, www-dom-ts@w3.org
Jeroen van Rotterdam wrote: > It would be helpfull if we would have an assertContains for a domstring. > > something like: > > <assertContains value="avalue" obj="astring" id="check_substring"/> > > > jeroen > Instead of adding an explicit assertContains and assertContainsNot, I added contains to the list of conditions which allows it to be used with <assertTrue>, <assertFalse>, <if>, <or>, <and>, etc. <assertTrue id="containsFoo"> <contains obj="stringDoc" substring='"foo"'/> </assertTrue> <assertFalse id="doesntContainFoo"> <contains obj="stringDoc" substring='"foo"'/> </assertTrue>
Received on Tuesday, 4 February 2003 00:54:46 UTC