]> source.dussan.org Git - vaadin-framework.git/commitdiff
[merge from 6.7] Test case updated for #7855
authorAutomerge <automerge@vaadin.com>
Mon, 19 Mar 2012 15:28:46 +0000 (15:28 +0000)
committerAutomerge <automerge@vaadin.com>
Mon, 19 Mar 2012 15:28:46 +0000 (15:28 +0000)
svn changeset:23265/svn branch:6.8

tests/testbench/com/vaadin/tests/components/embedded/EmbeddedPdf.java

index 0fb8b27b75bb4897bfa4bfb84bb6ea10c2f0c7cc..320df648b19df8a5ca586c0b46816a1f0d81aa7a 100644 (file)
@@ -2,6 +2,8 @@ package com.vaadin.tests.components.embedded;
 
 import com.vaadin.terminal.ClassResource;
 import com.vaadin.tests.components.TestBase;
+import com.vaadin.ui.Button;
+import com.vaadin.ui.Button.ClickEvent;
 import com.vaadin.ui.Embedded;
 import com.vaadin.ui.Window;
 
@@ -19,13 +21,19 @@ public class EmbeddedPdf extends TestBase {
 
     @Override
     public void setup() {
-        Embedded player = new Embedded();
+        final Embedded player = new Embedded();
         player.setType(Embedded.TYPE_BROWSER);
         player.setWidth("400px");
         player.setHeight("300px");
         player.setSource(new ClassResource(getClass(), "test.pdf", this));
         addComponent(player);
 
+        addComponent(new Button("Remove pdf", new Button.ClickListener() {
+            public void buttonClick(ClickEvent event) {
+                removeComponent(player);
+            }
+        }));
+
         player.getWindow().addWindow(new Window("Testwindow"));
     }