Revision: 6457 Author: [email protected] Date: Fri Oct 23 14:47:52 2009 Log: Adding DoNotRunWith(HtmlUnit) to ListBoxTest/StackPanelTest#testDebugId because they fail fairly often in HtmlUnit.
Patch by: jlabanca Review by: rjrjr http://code.google.com/p/google-web-toolkit/source/detail?r=6457 Modified: /trunk/user/test/com/google/gwt/user/client/ui/ListBoxTest.java /trunk/user/test/com/google/gwt/user/client/ui/StackPanelTest.java ======================================= --- /trunk/user/test/com/google/gwt/user/client/ui/ListBoxTest.java Wed Sep 30 16:46:38 2009 +++ /trunk/user/test/com/google/gwt/user/client/ui/ListBoxTest.java Fri Oct 23 14:47:52 2009 @@ -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"); ======================================= --- /trunk/user/test/com/google/gwt/user/client/ui/StackPanelTest.java Wed Sep 30 13:25:00 2009 +++ /trunk/user/test/com/google/gwt/user/client/ui/StackPanelTest.java Fri Oct 23 14:47:52 2009 @@ -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"); --~--~---------~--~----~------------~-------~--~----~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~----------~----~----~----~------~----~------~--~---
