Revision: 6267 Author: [email protected] Date: Wed Sep 30 13:25:00 2009 Log: testDebugId was calling delayTestFinish too late, leading to flakiness
Review by amitmanjhi http://code.google.com/p/google-web-toolkit/source/detail?r=6267 Modified: /trunk/user/test/com/google/gwt/user/client/ui/StackPanelTest.java ======================================= --- /trunk/user/test/com/google/gwt/user/client/ui/StackPanelTest.java Wed Sep 23 10:15:52 2009 +++ /trunk/user/test/com/google/gwt/user/client/ui/StackPanelTest.java Wed Sep 30 13:25:00 2009 @@ -1,12 +1,12 @@ /* * Copyright 2008 Google Inc. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the @@ -75,6 +75,8 @@ UIObjectTest.assertDebugId("myStack-content2", DOM.getParent(c.getElement())); + delayTestFinish(5000); + // Check the header IDs DeferredCommand.addCommand(new Command() { public void execute() { @@ -97,7 +99,6 @@ finishTest(); } }); - delayTestFinish(5000); } /** --~--~---------~--~----~------------~-------~--~----~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~----------~----~----~----~------~----~------~--~---
