|
From: Flood, B. <Bre...@se...> - 2007-02-14 00:04:18
|
Hey all, =20 I've been using IEUnit for awhile, and find it to be extremely useful. However, recently I have run across a problem with constructing the correct test assertion. =20 If I want to assert that a particular option (let's say, Bunnies) is present for a dropdown, I can do something like: =20 _.setSelectionOption(0, "Bunnies"); =20 No problems here, although I must admit that this isn't the best way to do this (since I'm basically asserting the value is there because I'm selecting it, not by scanning it to see if the value is there). =20 The trouble begins when I want to assert that a dropdown does not have an option present. Presently, if I do: =20 _.assertNull(_.setSelectOption(0, "Bunnies")); =20 I will get the following result: =20 Failed: 'value' is undefined =20 Is this a bug in IeDHTML.js? Is there a better way to go about writing this assertion? =20 Thanks in advance for the advice! =20 Brenna Flood Software Test Engineer III Serials Solutions =20 |