Browse Source

Test for ensuring that overlays can be transparent (not in IE < 9)

svn changeset:24124/svn branch:6.8
tags/7.0.0.beta1
Artur Signell 11 years ago
parent
commit
42c26abe83

+ 34
- 0
tests/testbench/com/vaadin/tests/components/notification/SemiTransparentNotification.java View File

@@ -0,0 +1,34 @@
package com.vaadin.tests.components.notification;

import com.vaadin.tests.components.TestBase;
import com.vaadin.tests.util.LoremIpsum;
import com.vaadin.ui.Label;
import com.vaadin.ui.Window.Notification;

public class SemiTransparentNotification extends TestBase {

@Override
protected void setup() {
Label l = new Label(LoremIpsum.get(10000));
getLayout().setSizeFull();
addComponent(l);
getMainWindow()
.showNotification(
new Notification(
"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This should be a <br/><b>SEMI-TRANSPARENT</b><br/> notification",
Notification.TYPE_WARNING_MESSAGE));
}

@Override
protected String getDescription() {
// TODO Auto-generated method stub
return null;
}

@Override
protected Integer getTicketNumber() {
// TODO Auto-generated method stub
return null;
}

}

+ 27
- 0
tests/testbench/com/vaadin/tests/components/notification/SemitransparentNotification.html View File

@@ -0,0 +1,27 @@
<?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.notification.SemiTransparentNotification</td>
<td></td>
</tr>
<tr>
<td>screenCapture</td>
<td></td>
<td>semitransparent-warning</td>
</tr>

</tbody></table>
</body>
</html>

Loading…
Cancel
Save