]> source.dussan.org Git - vaadin-framework.git/commitdiff
#5100 Updated test to use log instead of Label for logging
authorArtur Signell <artur.signell@itmill.com>
Mon, 26 Mar 2012 12:01:31 +0000 (12:01 +0000)
committerArtur Signell <artur.signell@itmill.com>
Mon, 26 Mar 2012 12:01:31 +0000 (12:01 +0000)
svn changeset:23315/svn branch:6.8

tests/testbench/com/vaadin/tests/components/tabsheet/TabKeyboardNavigation.java

index 5aab30c8e88f25a68aed8bb515e8356ef3a77ac8..cc82704d163fcdff51a1def6985b2223e6d0e6de 100644 (file)
@@ -7,6 +7,7 @@ import com.vaadin.event.FieldEvents.BlurListener;
 import com.vaadin.event.FieldEvents.FocusEvent;
 import com.vaadin.event.FieldEvents.FocusListener;
 import com.vaadin.tests.components.TestBase;
+import com.vaadin.tests.util.Log;
 import com.vaadin.ui.Button;
 import com.vaadin.ui.Button.ClickEvent;
 import com.vaadin.ui.Button.ClickListener;
@@ -25,7 +26,7 @@ public class TabKeyboardNavigation extends TestBase {
     int index = 1;
     ArrayList<Component> tabs = new ArrayList<Component>();
     TabSheet ts = new TabSheet();
-    Label focusblur = new Label("No focus");
+    Log focusblur = new Log(10);
 
     @Override
     protected void setup() {
@@ -35,13 +36,13 @@ public class TabKeyboardNavigation extends TestBase {
 
         ts.addListener(new FocusListener() {
             public void focus(FocusEvent event) {
-                focusblur.setValue("Tabsheet focused!");
+                focusblur.log("Tabsheet focused!");
             }
         });
 
         ts.addListener(new BlurListener() {
             public void blur(BlurEvent event) {
-                focusblur.setValue("Tabsheet blurred!");
+                focusblur.log("Tabsheet blurred!");
             }
         });