2009-11-16 Marek Habersack <mhabersack@novell.com>
[mono.git] / mcs / class / System.Web / Test / System.Web.UI.WebControls / CreateUserWizardTest.cs
index d26088f74595fcea9c3b61a92751303949370a03..8ae0582acb75d96d63da5a313c61d7f96efecaa9 100644 (file)
@@ -144,6 +144,9 @@ namespace MonoTests.System.Web.UI.WebControls
 
                [Test]
                [Category ("NunitWeb")]
+#if TARGET_JVM
+               [Ignore ("TD #7024")]
+#endif
                public void ActiveStepIndex () {
                        new WebTest (PageInvoker.CreateOnLoad (ActiveStepIndex_Load)).Run ();
                }
@@ -437,7 +440,6 @@ namespace MonoTests.System.Web.UI.WebControls
                }
 
                [Test]
-        [Category ("NotWorking")]
                [Category ("NunitWeb")]
                public void BasicRenderTest ()
                {
@@ -475,7 +477,6 @@ namespace MonoTests.System.Web.UI.WebControls
                }
 
                [Test]
-        [Category ("NotWorking")]
                [Category ("NunitWeb")]
                public void TitlesRenderTest ()
                {
@@ -502,7 +503,6 @@ namespace MonoTests.System.Web.UI.WebControls
                }
 
                [Test]
-        [Category ("NotWorking")]
                [Category ("NunitWeb")]
                public void ExtraTitlesRenderTest ()
                {
@@ -531,7 +531,6 @@ namespace MonoTests.System.Web.UI.WebControls
                }
 
                [Test]
-        [Category ("NotWorking")]
                [Category ("NunitWeb")]
                public void StylesRenderTest ()
                {
@@ -574,7 +573,6 @@ namespace MonoTests.System.Web.UI.WebControls
                }
 
                [Test]
-        [Category ("NotWorking")]
                [Category ("NunitWeb")]
                public void BasicPostbackTest ()
                {
@@ -667,7 +665,6 @@ namespace MonoTests.System.Web.UI.WebControls
                // ValidatorTextStyle
                // ErrorMessageStyle
                [Test]
-        [Category ("NotWorking")]
                [Category ("NunitWeb")]
                public void CreateUserTest ()
                {
@@ -689,7 +686,8 @@ namespace MonoTests.System.Web.UI.WebControls
                        if (button.Length > 0)
                                fr.Controls.Add (new BaseControl (GetDecoratedId (html, "StepNextButtonButton"), "Create User"));
                        else
-                               fr.Controls.Add (new BaseControl ("__EVENTTARGET", GetEventTarget (html, "StartNextButton")));
+                               fr.Controls.Add (new BaseControl (GetDecoratedId (html, "StartNextButton"), "Create User"));
+                               //fr.Controls.Add (new BaseControl ("__EVENTTARGET", GetEventTarget (html, "StartNextButton")));
 
                        test.Request = fr;
                        html = test.Run ();
@@ -704,7 +702,6 @@ namespace MonoTests.System.Web.UI.WebControls
 
 
                [Test]
-        [Category ("NotWorking")]
                [Category ("NunitWeb")]
                public void ButtonsRenderTest ()
                {
@@ -726,7 +723,6 @@ namespace MonoTests.System.Web.UI.WebControls
                }
 
                [Test]
-        [Category ("NotWorking")]
                [Category ("NunitWeb")]
                public void ErrorMsgTest ()
                {
@@ -745,9 +741,9 @@ namespace MonoTests.System.Web.UI.WebControls
                        fr.Controls.Add (new BaseControl (GetDecoratedId (html, "Answer"), "123"));
                        string button = GetDecoratedId (html, "StepNextButtonButton");
                        if (button.Length > 0)
-                               fr.Controls.Add (new BaseControl (button, "Create User"));
+                               fr.Controls.Add (new BaseControl (GetDecoratedId (html, "StepNextButtonButton"), "Create User"));
                        else
-                               fr.Controls.Add (new BaseControl ("__EVENTTARGET", GetEventTarget (html, "StartNextButton")));
+                               fr.Controls.Add (new BaseControl (GetDecoratedId (html, "StartNextButton"), "Create User"));
 
                        test.Request = fr;
                        html = test.Run ();
@@ -764,9 +760,9 @@ namespace MonoTests.System.Web.UI.WebControls
                        fr.Controls.Add (new BaseControl (GetDecoratedId (html, "Answer"), "123"));
                        button = GetDecoratedId (html, "StepNextButtonButton");
                        if (button.Length > 0)
-                               fr.Controls.Add (new BaseControl (button, "Create User"));
+                               fr.Controls.Add (new BaseControl (GetDecoratedId (html, "StepNextButtonButton"), "Create User"));
                        else
-                               fr.Controls.Add (new BaseControl ("__EVENTTARGET", GetEventTarget (html, "StartNextButton")));
+                               fr.Controls.Add (new BaseControl (GetDecoratedId (html, "StartNextButton"), "Create User"));
 
                        test.Request = fr;
                        html = test.Run ();
@@ -783,9 +779,9 @@ namespace MonoTests.System.Web.UI.WebControls
                        fr.Controls.Add (new BaseControl (GetDecoratedId (html, "Answer"), "123"));
                        button = GetDecoratedId (html, "StepNextButtonButton");
                        if (button.Length > 0)
-                               fr.Controls.Add (new BaseControl (button, "Create User"));
+                               fr.Controls.Add (new BaseControl (GetDecoratedId (html, "StepNextButtonButton"), "Create User"));
                        else
-                               fr.Controls.Add (new BaseControl ("__EVENTTARGET", GetEventTarget (html, "StartNextButton")));
+                               fr.Controls.Add (new BaseControl (GetDecoratedId (html, "StartNextButton"), "Create User"));
 
                        test.Request = fr;
                        html = test.Run ();
@@ -802,9 +798,9 @@ namespace MonoTests.System.Web.UI.WebControls
                        fr.Controls.Add (new BaseControl (GetDecoratedId (html, "Answer"), "123"));
                        button = GetDecoratedId (html, "StepNextButtonButton");
                        if (button.Length > 0)
-                               fr.Controls.Add (new BaseControl (button, "Create User"));
+                               fr.Controls.Add (new BaseControl (GetDecoratedId (html, "StepNextButtonButton"), "Create User"));
                        else
-                               fr.Controls.Add (new BaseControl ("__EVENTTARGET", GetEventTarget (html, "StartNextButton")));
+                               fr.Controls.Add (new BaseControl (GetDecoratedId (html, "StartNextButton"), "Create User"));
 
                        test.Request = fr;
                        html = test.Run ();
@@ -821,9 +817,9 @@ namespace MonoTests.System.Web.UI.WebControls
                        fr.Controls.Add (new BaseControl (GetDecoratedId (html, "Answer"), "123"));
                        button = GetDecoratedId (html, "StepNextButtonButton");
                        if (button.Length > 0)
-                               fr.Controls.Add (new BaseControl (button, "Create User"));
+                               fr.Controls.Add (new BaseControl (GetDecoratedId (html, "StepNextButtonButton"), "Create User"));
                        else
-                               fr.Controls.Add (new BaseControl ("__EVENTTARGET", GetEventTarget (html, "StartNextButton")));
+                               fr.Controls.Add (new BaseControl (GetDecoratedId (html, "StartNextButton"), "Create User"));
 
                        test.Request = fr;
                        html = test.Run ();
@@ -840,9 +836,9 @@ namespace MonoTests.System.Web.UI.WebControls
                        fr.Controls.Add (new BaseControl (GetDecoratedId (html, "Answer"), "123"));
                        button = GetDecoratedId (html, "StepNextButtonButton");
                        if (button.Length > 0)
-                               fr.Controls.Add (new BaseControl (button, "Create User"));
+                               fr.Controls.Add (new BaseControl (GetDecoratedId (html, "StepNextButtonButton"), "Create User"));
                        else
-                               fr.Controls.Add (new BaseControl ("__EVENTTARGET", GetEventTarget (html, "StartNextButton")));
+                               fr.Controls.Add (new BaseControl (GetDecoratedId (html, "StartNextButton"), "Create User"));
 
                        test.Request = fr;
                        html = test.Run ();
@@ -859,9 +855,9 @@ namespace MonoTests.System.Web.UI.WebControls
                        fr.Controls.Add (new BaseControl (GetDecoratedId (html, "Answer"), "incorrect"));
                        button = GetDecoratedId (html, "StepNextButtonButton");
                        if (button.Length > 0)
-                               fr.Controls.Add (new BaseControl (button, "Create User"));
+                               fr.Controls.Add (new BaseControl (GetDecoratedId (html, "StepNextButtonButton"), "Create User"));
                        else
-                               fr.Controls.Add (new BaseControl ("__EVENTTARGET", GetEventTarget (html, "StartNextButton")));
+                               fr.Controls.Add (new BaseControl (GetDecoratedId (html, "StartNextButton"), "Create User"));
 
                        test.Request = fr;
                        html = test.Run ();