]> source.dussan.org Git - vaadin-framework.git/commitdiff
Make checkboxes immediate in tests.
authorHenri Sara <hesara@vaadin.com>
Wed, 1 Jul 2015 11:04:54 +0000 (14:04 +0300)
committerHenri Sara <hesara@vaadin.com>
Sat, 4 Jul 2015 19:24:50 +0000 (22:24 +0300)
AudioTest was broken by the fix for #18102 as CheckBox
is no longer immediate by default.

Change-Id: I2022bae6445320d205fd8b419a28bffb64e70bd5

uitest/src/com/vaadin/tests/components/media/AudioTest.java
uitest/src/com/vaadin/tests/tickets/Ticket1710.java

index c77583096dd3f79327fe55ed4142ef1b51c0f0f2..1e1e26346c9980ee04b6411fd72ecec23cf3582d 100644 (file)
@@ -50,15 +50,19 @@ public class AudioTest extends TestBase {
 
         CheckBox checkBox = new CheckBox("Show controls",
                 new MethodProperty<Boolean>(audio, "showControls"));
+        checkBox.setImmediate(true);
         addComponent(checkBox);
         checkBox = new CheckBox("HtmlContentAllowed",
                 new MethodProperty<Boolean>(audio, "htmlContentAllowed"));
+        checkBox.setImmediate(true);
         addComponent(checkBox);
         checkBox = new CheckBox("muted", new MethodProperty<Boolean>(audio,
                 "muted"));
+        checkBox.setImmediate(true);
         addComponent(checkBox);
         checkBox = new CheckBox("autoplay", new MethodProperty<Boolean>(audio,
                 "autoplay"));
+        checkBox.setImmediate(true);
         addComponent(checkBox);
 
         Button b = new Button("Change", new Button.ClickListener() {
index e4687b6e3794cd322fbb7e58bbe00181e29ba002..3dda83060799b8efa61da9935ee246f3c114a0dd 100644 (file)
@@ -270,13 +270,17 @@ public class Ticket1710 extends com.vaadin.server.LegacyApplication {
             controls.addComponent(new Label("width"));
             controls.addComponent(new TextField(new MethodProperty<Float>(
                     testedLayout, "width")));
-            controls.addComponent(new CheckBox("%",
-                    new MethodProperty<Boolean>(this, "widthPercents")));
+            CheckBox widthPercentsCheckBox = new CheckBox("%",
+                    new MethodProperty<Boolean>(this, "widthPercents"));
+            widthPercentsCheckBox.setImmediate(true);
+            controls.addComponent(widthPercentsCheckBox);
             controls.addComponent(new Label("height"));
             controls.addComponent(new TextField(new MethodProperty<Float>(
                     testedLayout, "height")));
-            controls.addComponent(new CheckBox("%",
-                    new MethodProperty<Boolean>(this, "heightPercents")));
+            CheckBox heightPercentsCheckBox = new CheckBox("%",
+                    new MethodProperty<Boolean>(this, "heightPercents"));
+            heightPercentsCheckBox.setImmediate(true);
+            controls.addComponent(heightPercentsCheckBox);
             controls.addComponent(marginLeft);
             controls.addComponent(marginRight);
             controls.addComponent(marginTop);