diff options
author | Teemu Suo-Anttila <tsuoanttila@users.noreply.github.com> | 2017-11-15 15:54:40 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-15 15:54:40 +0200 |
commit | 7a8ff50e0300d81b76ea8c74fa48f777218f2324 (patch) | |
tree | 7d3033b3541cae21418873c36e0b5f4ee97d2842 /test | |
parent | 6e01211931df3c294f8e3c077849c5d433c1d35f (diff) | |
download | vaadin-framework-7a8ff50e0300d81b76ea8c74fa48f777218f2324.tar.gz vaadin-framework-7a8ff50e0300d81b76ea8c74fa48f777218f2324.zip |
Fix click listener in WidgetSet test (#10324)
Diffstat (limited to 'test')
-rw-r--r-- | test/widget-set-testutil/src/main/java/com/vaadin/test/widgetset/AbstractTestWidgetSetUI.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/widget-set-testutil/src/main/java/com/vaadin/test/widgetset/AbstractTestWidgetSetUI.java b/test/widget-set-testutil/src/main/java/com/vaadin/test/widgetset/AbstractTestWidgetSetUI.java index b11125cfcc..32379a4c80 100644 --- a/test/widget-set-testutil/src/main/java/com/vaadin/test/widgetset/AbstractTestWidgetSetUI.java +++ b/test/widget-set-testutil/src/main/java/com/vaadin/test/widgetset/AbstractTestWidgetSetUI.java @@ -19,8 +19,8 @@ public abstract class AbstractTestWidgetSetUI extends UI { Button button = new Button("Click Me"); button.addClickListener( - event -> new Label( - "Thanks " + name.getValue() + ", it works!")); + event -> layout.addComponent(new Label( + "Thanks " + name.getValue() + ", it works!"))); getPage().getJavaScript().execute( "widgetsetinfo.innerText=document.querySelector('iframe').id;"); |