]> source.dussan.org Git - vaadin-framework.git/commitdiff
Added 'test' -button to make it easier to see if the test app is still working.
authorMarc Englund <marc.englund@itmill.com>
Mon, 7 Sep 2009 13:17:07 +0000 (13:17 +0000)
committerMarc Englund <marc.englund@itmill.com>
Mon, 7 Sep 2009 13:17:07 +0000 (13:17 +0000)
svn changeset:8687/svn branch:6.1

src/com/vaadin/tests/resources/ResourceDownload.java

index 44faa80330f638e9c52b5af1fa4b67944b0db7b4..d7da9c2d6345c5805cfc60b1d39f172418ecab48 100644 (file)
@@ -44,6 +44,15 @@ public class ResourceDownload extends TestBase {
         });\r
         addComponent(b);\r
 \r
+        b = new Button("Test", new Button.ClickListener() {\r
+            public void buttonClick(ClickEvent event) {\r
+                ResourceDownload.this.getMainWindow().showNotification(\r
+                        "Still working");\r
+            }\r
+\r
+        });\r
+        addComponent(b);\r
+\r
     }\r
 \r
     protected void download(String target) {\r
@@ -64,7 +73,7 @@ public class ResourceDownload extends TestBase {
         // IE8\r
         streamResource.setMIMEType("application/x-msexcel");\r
 \r
-        this.getMainWindow().open(streamResource, target);\r
+        getMainWindow().open(streamResource, target);\r
 \r
     }\r
 \r