diff --git a/tests/automation.js b/tests/automation.js index 727e7f4c..ed764c1b 100644 --- a/tests/automation.js +++ b/tests/automation.js @@ -19,7 +19,7 @@ casper.options.onWaitTimeout = function() { }; var gfxTests = [ - { name: "gfx/AlertTest", maxDifferent: 3279 }, + { name: "gfx/AlertTest", maxDifferent: 0 }, { name: "gfx/CanvasTest", maxDifferent: 0 }, { name: "gfx/DrawRegionTest", maxDifferent: 0 }, { name: "gfx/ImageRenderingTest", maxDifferent: 266 }, diff --git a/tests/gfx/AlertTest.java b/tests/gfx/AlertTest.java index 1583ace2..eacc8a6b 100644 --- a/tests/gfx/AlertTest.java +++ b/tests/gfx/AlertTest.java @@ -13,6 +13,7 @@ public class AlertTest extends MIDlet { public void startApp() { alert = new Alert("Hello World", "Some text", null, AlertType.INFO); + alert.setTimeout(Alert.FOREVER); display.setCurrent(alert); try { diff --git a/tests/gfx/AlertTest.png b/tests/gfx/AlertTest.png index fef5db17..2f569125 100644 Binary files a/tests/gfx/AlertTest.png and b/tests/gfx/AlertTest.png differ