forked from vaadin/framework
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixes issue vaadin#4035: allows Flash embed to expand if percentage d…
…imensions given
- Loading branch information
1 parent
8dc5d8d
commit 3e4ea29
Showing
3 changed files
with
139 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 43 additions & 0 deletions
43
uitest/src/main/java/com/vaadin/tests/components/flash/FlashExpansion.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
package com.vaadin.tests.components.flash; | ||
|
||
import com.vaadin.server.ClassResource; | ||
import com.vaadin.tests.components.TestBase; | ||
import com.vaadin.ui.Button; | ||
import com.vaadin.ui.Button.ClickEvent; | ||
import com.vaadin.ui.Flash; | ||
|
||
public class FlashExpansion extends TestBase { | ||
|
||
Flash player = new Flash(); | ||
|
||
@Override | ||
protected void setup() { | ||
|
||
player.setWidth("400px"); | ||
player.setHeight("300px"); | ||
player.setSource(new ClassResource("simple.swf")); | ||
addComponent(player); | ||
Button button = new Button("click"); | ||
button.addClickListener(new Button.ClickListener() { | ||
|
||
@Override | ||
public void buttonClick(ClickEvent event) { | ||
player.setSizeFull(); | ||
|
||
} | ||
}); | ||
addComponent(button); | ||
} | ||
|
||
@Override | ||
protected String getDescription() { | ||
return "Flash object should expand according to percentile sizes"; | ||
} | ||
|
||
@Override | ||
protected Integer getTicketNumber() { | ||
// TODO Auto-generated method stub | ||
return null; | ||
} | ||
|
||
} |