diff options
author | Artur Signell <artur@vaadin.com> | 2013-04-25 14:44:36 +0300 |
---|---|---|
committer | Vaadin Code Review <review@vaadin.com> | 2013-04-26 05:52:06 +0000 |
commit | b4218b866880b4071e56ed76ff061010787fadd6 (patch) | |
tree | df38bd989c45ac8697f47358be337e6c0bb78c45 /uitest/src/com/vaadin/tests/applicationcontext/RpcForClosedUI.html | |
parent | ecc91e1b7bfe23f2d3576d446176999715c2731c (diff) | |
download | vaadin-framework-b4218b866880b4071e56ed76ff061010787fadd6.tar.gz vaadin-framework-b4218b866880b4071e56ed76ff061010787fadd6.zip |
Ensure RPC are not delivered to closed UIs (#11714)
Change-Id: I7fadaa5d5190c36cd83a06249d7ae1d4475724e0
Diffstat (limited to 'uitest/src/com/vaadin/tests/applicationcontext/RpcForClosedUI.html')
-rw-r--r-- | uitest/src/com/vaadin/tests/applicationcontext/RpcForClosedUI.html | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/uitest/src/com/vaadin/tests/applicationcontext/RpcForClosedUI.html b/uitest/src/com/vaadin/tests/applicationcontext/RpcForClosedUI.html new file mode 100644 index 0000000000..3f48435526 --- /dev/null +++ b/uitest/src/com/vaadin/tests/applicationcontext/RpcForClosedUI.html @@ -0,0 +1,45 @@ +<?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="http://192.168.2.75:8888/" /> +<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/CloseUI?restartApplication</td> + <td></td> +</tr> +<!--Close the UI in a background thread--> +<tr> + <td>click</td> + <td>vaadin=runCloseUI::/VVerticalLayout[0]/Slot[1]/VVerticalLayout[0]/Slot[3]/VButton[0]/domChild[0]/domChild[0]</td> + <td></td> +</tr> +<!--Try to log 'hello'--> +<tr> + <td>click</td> + <td>vaadin=runCloseUI::/VVerticalLayout[0]/Slot[1]/VVerticalLayout[0]/Slot[1]/VButton[0]/domChild[0]/domChild[0]</td> + <td></td> +</tr> +<!--Ensure 'hello' was not logged--> +<tr> + <td>assertText</td> + <td>vaadin=runCloseUI::PID_SLog_row_0</td> + <td>2. Current WrappedSession id: qshk44c2q6bagnnl1k4mdqsh</td> +</tr> +<tr> + <td>assertTextNotPresent</td> + <td>Hello</td> + <td></td> +</tr> + +</tbody></table> +</body> +</html> |