diff options
author | Matti Tahvonen <matti.tahvonen@itmill.com> | 2008-09-22 09:40:47 +0000 |
---|---|---|
committer | Matti Tahvonen <matti.tahvonen@itmill.com> | 2008-09-22 09:40:47 +0000 |
commit | 79a7c5989b3b8380609e533d1ec0479336066ebc (patch) | |
tree | 14e2a80b16dab75a56559fe8bffee9f5c2860f5d /WebContent/statictestfiles | |
parent | 83d6a2c216e021def3e7d331374bf7cca83d8ae2 (diff) | |
download | vaadin-framework-79a7c5989b3b8380609e533d1ec0479336066ebc.tar.gz vaadin-framework-79a7c5989b3b8380609e533d1ec0479336066ebc.zip |
added test case
svn changeset:5474/svn branch:trunk
Diffstat (limited to 'WebContent/statictestfiles')
-rw-r--r-- | WebContent/statictestfiles/ticket2095.html | 25 | ||||
-rw-r--r-- | WebContent/statictestfiles/ticket2095_popup.html | 24 |
2 files changed, 49 insertions, 0 deletions
diff --git a/WebContent/statictestfiles/ticket2095.html b/WebContent/statictestfiles/ticket2095.html new file mode 100644 index 0000000000..228c9e0dab --- /dev/null +++ b/WebContent/statictestfiles/ticket2095.html @@ -0,0 +1,25 @@ +<html> +<head> +<script type="text/javascript"> + +function openPopup() { + // possible workaround if IEmbedded was not modified to add name + // window.name = "foo"; + var popup = window.open('ticket2095_popup.html','mypopup'); + popup._parentName = this.name; +} +</script> +</head> +<body> +<p> +This is file is part of test case for #2095. Embedded.TYPE_BROWSER like iframes +wants to have name, so popups opened by them may submit forms into them. + +</p> + + +<a href="#" onclick="openPopup();">Open popup, will hit debuggger;</a> + +</body> + +</html>
\ No newline at end of file diff --git a/WebContent/statictestfiles/ticket2095_popup.html b/WebContent/statictestfiles/ticket2095_popup.html new file mode 100644 index 0000000000..863b35ad4f --- /dev/null +++ b/WebContent/statictestfiles/ticket2095_popup.html @@ -0,0 +1,24 @@ +<html> + +<head> +<script type="text/javascript"> + +function setTarget() { + document.forms[0].target = _parentName; +} +</script> +</head> + +<body onload="setTarget();"> + +<p>Popup +</p> + +<form action="http://www.google.fi/search"> +<input type="text" name="q" value="it mill toolkit" /> +<input type="submit" value="Google!"/> +</form> + +</body> + +</html>
\ No newline at end of file |