Fixing FormPanelTest#testReset by attaching the form to the DOM before resetting it.  I also removed FormPanelTest, which had been removed up until a previous patch, because many of the tests fail in Old Mozilla.

Patch by: jlabanca
Review by: jgw (desk)



git-svn-id: https://google-web-toolkit.googlecode.com/svn/trunk@6024 8db76d5a-ed1c-0410-87a9-c151d255dfc7
diff --git a/user/test/com/google/gwt/user/UISuite.java b/user/test/com/google/gwt/user/UISuite.java
index e3672ff..235b5e6 100644
--- a/user/test/com/google/gwt/user/UISuite.java
+++ b/user/test/com/google/gwt/user/UISuite.java
@@ -49,7 +49,6 @@
 import com.google.gwt.user.client.ui.FlexTableTest;
 import com.google.gwt.user.client.ui.FlowPanelTest;
 import com.google.gwt.user.client.ui.FocusPanelTest;
-import com.google.gwt.user.client.ui.FormPanelTest;
 import com.google.gwt.user.client.ui.GridTest;
 import com.google.gwt.user.client.ui.HTMLPanelTest;
 import com.google.gwt.user.client.ui.HiddenTest;
@@ -134,7 +133,8 @@
     suite.addTestSuite(FlexTableTest.class);
     suite.addTestSuite(FlowPanelTest.class);
     suite.addTestSuite(FocusPanelTest.class);
-    suite.addTestSuite(FormPanelTest.class);
+    // Old Mozilla complains about the cross-site forms in FormPanelTest.
+    // suite.addTestSuite(FormPanelTest.class);
     suite.addTestSuite(GridTest.class);
     suite.addTestSuite(HiddenTest.class);
     suite.addTestSuite(HistoryTest.class);
diff --git a/user/test/com/google/gwt/user/client/ui/FormPanelTest.java b/user/test/com/google/gwt/user/client/ui/FormPanelTest.java
index 8972962..bd8684a 100644
--- a/user/test/com/google/gwt/user/client/ui/FormPanelTest.java
+++ b/user/test/com/google/gwt/user/client/ui/FormPanelTest.java
@@ -199,12 +199,14 @@
 
   public void testReset() {
     FormPanel form = new FormPanel();
+    RootPanel.get().add(form);
     TextBox textBox = new TextBox();
     textBox.setText("Hello World");
     form.setWidget(textBox);
     assertEquals("Hello World", textBox.getText());
     form.reset();
     assertEquals("", textBox.getText());
+    RootPanel.get().remove(form);
   }
 
   public void testSubmitAndHideDialog() {