diff options
author | John Alhroos <john.ahlroos@itmill.com> | 2011-03-08 08:12:21 +0000 |
---|---|---|
committer | John Alhroos <john.ahlroos@itmill.com> | 2011-03-08 08:12:21 +0000 |
commit | 18f6b8abec18ba977fb567d5426604ff7e563ea1 (patch) | |
tree | 119ebe14b35e7df02875a6d6ec01afa4e283c0e3 /tests/src | |
parent | ff5f72cba9b3428d310466c5bf23378457a05737 (diff) | |
download | vaadin-framework-18f6b8abec18ba977fb567d5426604ff7e563ea1.tar.gz vaadin-framework-18f6b8abec18ba977fb567d5426604ff7e563ea1.zip |
Added Flash visibility TestBench test.
svn changeset:17652/svn branch:6.5
Diffstat (limited to 'tests/src')
-rw-r--r-- | tests/src/com/vaadin/tests/components/embedded/FlashIsVisible.html | 33 | ||||
-rw-r--r-- | tests/src/com/vaadin/tests/components/embedded/FlashIsVisible.java | 31 |
2 files changed, 64 insertions, 0 deletions
diff --git a/tests/src/com/vaadin/tests/components/embedded/FlashIsVisible.html b/tests/src/com/vaadin/tests/components/embedded/FlashIsVisible.html new file mode 100644 index 0000000000..d3debf3417 --- /dev/null +++ b/tests/src/com/vaadin/tests/components/embedded/FlashIsVisible.html @@ -0,0 +1,33 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head profile="http://selenium-ide.openqa.org/profiles/test-case"> +<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> +<link rel="selenium.base" href="" /> +<title>New Test</title> +</head> +<body> +<table cellpadding="1" cellspacing="1" border="1"> +<thead> +<tr><td rowspan="1" colspan="3">New Test</td></tr> +</thead><tbody> +<tr> + <td>open</td> + <td>/run/com.vaadin.tests.components.embedded.FlashIsVisible</td> + <td></td> +</tr> +<!--Allow the flash plugin to load before taking the screenshot--> +<tr> + <td>pause</td> + <td>5000</td> + <td></td> +</tr> +<tr> + <td>screenCapture</td> + <td></td> + <td></td> +</tr> + +</tbody></table> +</body> +</html> diff --git a/tests/src/com/vaadin/tests/components/embedded/FlashIsVisible.java b/tests/src/com/vaadin/tests/components/embedded/FlashIsVisible.java new file mode 100644 index 0000000000..5d626cfc0b --- /dev/null +++ b/tests/src/com/vaadin/tests/components/embedded/FlashIsVisible.java @@ -0,0 +1,31 @@ +package com.vaadin.tests.components.embedded; + +import com.vaadin.terminal.ExternalResource; +import com.vaadin.tests.components.TestBase; +import com.vaadin.ui.Embedded; + +public class FlashIsVisible extends TestBase { + + @Override + protected void setup() { + Embedded player = new Embedded(); + player.setType(Embedded.TYPE_OBJECT); + player.setMimeType("application/x-shockwave-flash"); + player.setWidth("400px"); + player.setHeight("300px"); + String url = "http://www.youtube.com/v/qQ9N742QB4g&autoplay=0"; + player.setSource(new ExternalResource(url)); + addComponent(player); + } + + @Override + protected String getDescription() { + return "Flash plugin should load and be visible on all browsers"; + } + + @Override + protected Integer getTicketNumber() { + return 6501; + } + +} |