summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorTeemu Suo-Anttila <tsuoanttila@users.noreply.github.com>2017-11-15 15:54:40 +0200
committerGitHub <noreply@github.com>2017-11-15 15:54:40 +0200
commit7a8ff50e0300d81b76ea8c74fa48f777218f2324 (patch)
tree7d3033b3541cae21418873c36e0b5f4ee97d2842 /test
parent6e01211931df3c294f8e3c077849c5d433c1d35f (diff)
downloadvaadin-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.java4
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;");