diff options
author | Henri Sara <hesara@vaadin.com> | 2015-07-01 14:04:54 +0300 |
---|---|---|
committer | Henri Sara <hesara@vaadin.com> | 2015-07-01 14:04:54 +0300 |
commit | 386593f390fbb6f7db0fee6e2c26057a16b7ff95 (patch) | |
tree | d488c4ed24144dae2cbbd24650d4e8903715eed3 /uitest | |
parent | c95698a5950c0cb7260d55661bf1d038c71b1a8d (diff) | |
download | vaadin-framework-386593f390fbb6f7db0fee6e2c26057a16b7ff95.tar.gz vaadin-framework-386593f390fbb6f7db0fee6e2c26057a16b7ff95.zip |
Make checkboxes immediate in tests.
AudioTest was broken by the fix for #18102 as CheckBox
is no longer immediate by default.
Change-Id: Ic545359b6638814a2c7cf53abdb5ffc72cb5251e
Diffstat (limited to 'uitest')
-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); |