+2007-03-15 Marek Habersack <mhabersack@novell.com>
+
+ * ImageButtonTest.cs, LinkButtonTest.cs: the validation tests in
+ the two cases were incorrect in my opinion. MS.NET renders the
+ same HTML (effectively) for no-validation case we do - there are
+ no onclick handlers or MyValidationGroup rendered for the
+ imagebutton/linkbutton controls.
+
2007-03-09 Marek Habersack <mhabersack@novell.com>
* LoginTest.cs: Added a test for case-insensitive command name in
WebTest t = new WebTest ("NoEventValidation.aspx");
t.Invoker = PageInvoker.CreateOnLoad (ValidationGroup_Load);
string html = HtmlDiff.GetControlFromPageHtml (t.Run ());
- if (html.IndexOf ("onclick") == -1)
- Assert.Fail ("Validation script not created");
- if (html.IndexOf ("MyValidationGroup") == -1)
- Assert.Fail ("Validation group not set fail");
+ if (html.IndexOf ("onclick") != -1)
+ Assert.Fail ("Validation script created");
+ if (html.IndexOf ("MyValidationGroup") != -1)
+ Assert.Fail ("Validation group set");
}
public static void ValidationGroup_Load(Page p)
string html = HtmlDiff.GetControlFromPageHtml (t.Run ());
if (html.IndexOf ("href") == -1)
Assert.Fail ("Link button not created");
- if (html.IndexOf ("MyValidationGroup") == -1)
- Assert.Fail ("Validation group not set: " + html);
+ if (html.IndexOf ("MyValidationGroup") != -1)
+ Assert.Fail ("Validation group set: " + html);
}
public static void ValidationGroup_Load (Page p)