Skip to content

Commit f604f6c

Browse files
committed
Updated screenshots and refined browser test
1 parent 596f813 commit f604f6c

File tree

14 files changed

+4
-2
lines changed

14 files changed

+4
-2
lines changed
32.7 KB
Loading
24.6 KB
Loading
12.9 KB
Loading
13.8 KB
Loading
3.82 KB
Loading

scripts/hellocodenameone/common/src/main/java/com/codenameone/examples/hellocodenameone/tests/BrowserComponentScreenshotTest.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import com.codename1.ui.Form;
55
import com.codename1.ui.CN;
66
import com.codename1.ui.layouts.BorderLayout;
7+
import com.codename1.ui.util.UITimer;
78

89
public class BrowserComponentScreenshotTest extends BaseTest {
910
private BrowserComponent browser;
@@ -22,7 +23,8 @@ public boolean runTest() throws Exception {
2223
}
2324

2425
protected void registerReadyCallback(Form parent, final Runnable run) {
25-
browser.addWebEventListener(BrowserComponent.onLoad, evt -> CN.callSerially(run));
26+
browser.addWebEventListener(BrowserComponent.onLoad, evt ->
27+
UITimer.timer(200, false, parent, run));
2628
}
2729

2830
private static String buildHtml() {

scripts/hellocodenameone/common/src/main/java/com/codenameone/examples/hellocodenameone/tests/MediaPlaybackScreenshotTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ private static void updateStatus(Label label, Form form, String message) {
5353
}
5454
});
5555
}
56-
56+
5757
private static byte[] buildToneWav() {
5858
int totalSamples = (int) (SAMPLE_RATE * TONE_DURATION_SECONDS);
5959
int bytesPerSample = 2;
109 Bytes
Loading
394 KB
Loading
300 KB
Loading

0 commit comments

Comments
 (0)