Skip to content

Commit 551b671

Browse files
committed
Use DemoBrowser host form for animation screenshots
1 parent a3d1257 commit 551b671

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

docs/demos/common/src/test/java/com/codenameone/developerguide/animations/AnimationDemosScreenshotTest.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
import com.codename1.ui.animations.Motion;
1515
import com.codename1.ui.util.ImageIO;
1616
import com.codenameone.developerguide.Demo;
17+
import com.codenameone.developerguide.DemoBrowserForm;
1718
import com.codenameone.developerguide.DemoRegistry;
1819

1920
import java.io.IOException;
@@ -30,7 +31,7 @@
3031
* that external tooling can compare them against the developer guide imagery.
3132
*/
3233
public class AnimationDemosScreenshotTest extends AbstractTest {
33-
private static final String HOST_TITLE = "Demo Test Host";
34+
private static final String HOST_TITLE = "Developer Guide Demos";
3435
private static final long FORM_TIMEOUT_MS = 10000L;
3536
private static final String STORAGE_PREFIX = "developer-guide.animations.";
3637
private static final int FRAMES_PER_ANIMATION = 6;
@@ -51,7 +52,7 @@ public boolean runTest() throws Exception {
5152
boolean previousSlowMotion = Motion.isSlowMotion();
5253
Motion.setSlowMotion(true);
5354
try {
54-
Form host = new Form(HOST_TITLE);
55+
Form host = new DemoBrowserForm();
5556
host.show();
5657
TestUtils.waitForFormTitle(HOST_TITLE, FORM_TIMEOUT_MS);
5758

0 commit comments

Comments
 (0)