diff options
author | Henri Sara <hesara@vaadin.com> | 2015-07-01 14:04:54 +0300 |
---|---|---|
committer | Henri Sara <hesara@vaadin.com> | 2015-07-04 22:24:50 +0300 |
commit | 02524b63ff9169cbe36509909630c971a9efeb1f (patch) | |
tree | c0252ab8b79417d7d39d01d86411011fb3112524 | |
parent | 102e85b0f54aa37c787a40fb3a30b3c45c7514a0 (diff) | |
download | vaadin-framework-02524b63ff9169cbe36509909630c971a9efeb1f.tar.gz vaadin-framework-02524b63ff9169cbe36509909630c971a9efeb1f.zip |
Make checkboxes immediate in tests.
AudioTest was broken by the fix for #18102 as CheckBox
is no longer immediate by default.
Change-Id: I2022bae6445320d205fd8b419a28bffb64e70bd5
-rw-r--r-- | uitest/src/com/vaadin/tests/components/media/AudioTest.java | 4 | ||||
-rw-r--r-- | uitest/src/com/vaadin/tests/tickets/Ticket1710.java | 12 |
2 files changed, 12 insertions, 4 deletions
diff --git a/uitest/src/com/vaadin/tests/components/media/AudioTest.java b/uitest/src/com/vaadin/tests/components/media/AudioTest.java index c77583096d..1e1e26346c 100644 --- a/uitest/src/com/vaadin/tests/components/media/AudioTest.java +++ b/uitest/src/com/vaadin/tests/components/media/AudioTest.java @@ -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() { diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket1710.java b/uitest/src/com/vaadin/tests/tickets/Ticket1710.java index e4687b6e37..3dda830607 100644 --- a/uitest/src/com/vaadin/tests/tickets/Ticket1710.java +++ b/uitest/src/com/vaadin/tests/tickets/Ticket1710.java @@ -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); |