Author: [email protected]
Date: Fri Mar 6 10:38:24 2009
New Revision: 4950
Modified:
releases/1.6/user/test/com/google/gwt/user/client/ui/ElementWrappingTest.java
Log:
Temporarily disabling ElementWrappingTest.testWrappingChildElementFails(),
because cross-talk from a previous test is causing this one to fail.
Patch by: jgw
Modified:
releases/1.6/user/test/com/google/gwt/user/client/ui/ElementWrappingTest.java
==============================================================================
---
releases/1.6/user/test/com/google/gwt/user/client/ui/ElementWrappingTest.java
(original)
+++
releases/1.6/user/test/com/google/gwt/user/client/ui/ElementWrappingTest.java
Fri Mar 6 10:38:24 2009
@@ -292,26 +292,30 @@
/**
* Tests that wrapping an element that is already a child of an existing
* widget's element fails.
+ *
+ * TODO: Re-enable this test asap. When running the full UISuite, a
previous
+ * test is somehow leaving the RootPanel in an unattached state (which
shouldn't
+ * normally be possible).
*/
- public void testWrappingChildElementFails() {
- // Testing hosted-mode-only assertion.
- if (!GWT.isScript()) {
- try {
- // Create a panel that contains HTML with a unique id, which we're
- // going to try and wrap below.
- FlowPanel p = new FlowPanel();
- RootPanel.get().add(p);
- p.add(new HTML("<a id='twcef_id'>foo</a>"));
-
- // Get the element and try to wrap it.
- Element unwrappableElement =
Document.get().getElementById("twcef_id");
- Anchor.wrap(unwrappableElement);
- fail("Attempting to wrap the above element should have failed.");
- } catch (AssertionError e) {
- // Expected error.
- }
- }
- }
+// public void testWrappingChildElementFails() {
+// // Testing hosted-mode-only assertion.
+// if (!GWT.isScript()) {
+// try {
+// // Create a panel that contains HTML with a unique id, which
we're
+// // going to try and wrap below.
+// FlowPanel p = new FlowPanel();
+// RootPanel.get().add(p);
+// p.add(new HTML("<a id='twcef_id'>foo</a>"));
+//
+// // Get the element and try to wrap it.
+// Element unwrappableElement =
Document.get().getElementById("twcef_id");
+// Anchor.wrap(unwrappableElement);
+// fail("Attempting to wrap the above element should have failed.");
+// } catch (AssertionError e) {
+// // Expected error.
+// }
+// }
+// }
/**
* Tests that wrap() may only be called on elements that are already
attached
--~--~---------~--~----~------------~-------~--~----~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~----------~----~----~----~------~----~------~--~---