Adding DoNotRunWith(HtmlUnit) to ListBoxTest/StackPanelTest#testDebugId because they fail fairly often in HtmlUnit.
Patch by: jlabanca
Review by: rjrjr
git-svn-id: https://google-web-toolkit.googlecode.com/svn/trunk@6457 8db76d5a-ed1c-0410-87a9-c151d255dfc7
diff --git a/user/test/com/google/gwt/user/client/ui/ListBoxTest.java b/user/test/com/google/gwt/user/client/ui/ListBoxTest.java
index 97e9501..691d068 100644
--- a/user/test/com/google/gwt/user/client/ui/ListBoxTest.java
+++ b/user/test/com/google/gwt/user/client/ui/ListBoxTest.java
@@ -15,6 +15,8 @@
*/
package com.google.gwt.user.client.ui;
+import com.google.gwt.junit.DoNotRunWith;
+import com.google.gwt.junit.Platform;
import com.google.gwt.junit.client.GWTTestCase;
import com.google.gwt.user.client.Command;
import com.google.gwt.user.client.DeferredCommand;
@@ -38,6 +40,7 @@
assertEquals(0, lb.getItemCount());
}
+ @DoNotRunWith(Platform.Htmlunit)
public void testDebugId() {
ListBox list = new ListBox();
list.addItem("option0", "value0");
@@ -49,7 +52,7 @@
list.ensureDebugId("myList");
UIObjectTest.assertDebugId("myList", list.getElement());
- delayTestFinish(250);
+ delayTestFinish(5000);
DeferredCommand.addCommand(new Command() {
public void execute() {
UIObjectTest.assertDebugIdContents("myList-item0", "option0");
diff --git a/user/test/com/google/gwt/user/client/ui/StackPanelTest.java b/user/test/com/google/gwt/user/client/ui/StackPanelTest.java
index 4bf82e6..387ef82 100644
--- a/user/test/com/google/gwt/user/client/ui/StackPanelTest.java
+++ b/user/test/com/google/gwt/user/client/ui/StackPanelTest.java
@@ -15,6 +15,8 @@
*/
package com.google.gwt.user.client.ui;
+import com.google.gwt.junit.DoNotRunWith;
+import com.google.gwt.junit.Platform;
import com.google.gwt.user.client.Command;
import com.google.gwt.user.client.DOM;
import com.google.gwt.user.client.DeferredCommand;
@@ -54,6 +56,7 @@
HasWidgetsTester.testAll(createStackPanel(), new Adder(), true);
}
+ @DoNotRunWith(Platform.Htmlunit)
public void testDebugId() {
final StackPanel p = createStackPanel();
Label a = new Label("a");