diff options
author | Christophe Cornu <ccornu> | 2004-07-28 15:38:09 +0000 |
---|---|---|
committer | Christophe Cornu <ccornu> | 2004-07-28 15:38:09 +0000 |
commit | c8bcfab56ea0dc4cdd1bfe69aac5b374a70748a9 (patch) | |
tree | df997706c7f72007f5c425ef37177ddb247ff0ba /tests/org.eclipse.swt.tests/data | |
parent | 258f430720b4e1a40b3e644a965688d55a2acc2d (diff) | |
download | eclipse.platform.swt-c8bcfab56ea0dc4cdd1bfe69aac5b374a70748a9.tar.gz eclipse.platform.swt-c8bcfab56ea0dc4cdd1bfe69aac5b374a70748a9.tar.xz eclipse.platform.swt-c8bcfab56ea0dc4cdd1bfe69aac5b374a70748a9.zip |
*** empty log message ***
Diffstat (limited to 'tests/org.eclipse.swt.tests/data')
-rw-r--r-- | tests/org.eclipse.swt.tests/data/browser7.html | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/org.eclipse.swt.tests/data/browser7.html b/tests/org.eclipse.swt.tests/data/browser7.html new file mode 100644 index 0000000000..c357d5363e --- /dev/null +++ b/tests/org.eclipse.swt.tests/data/browser7.html @@ -0,0 +1,18 @@ +<html> +<script type="text/javascript"> +win1 = window.open('javascript:"<h1>TEST window.open</h2><p>left=0,top=0,height=100,width=200</p>"', "", "left=0,top=0,height=200,width=300"); +win2 = window.open('javascript:"<h1>TEST window.open</h2><p>menubar=no,status=no,location=no,toolbar=no,resizable=no,left=301,top=0,height=600,width=200</p>"', "", "menubar=no,status=no,location=no,toolbar=no,resizable=no,left=301,top=0,height=600,width=200"); +win3 = window.open('javascript:"<h1>TEST window.open</h2><p>status=no,location=no,toolbar=yes,resizable=yes,left=0,top=201,height=400,width=300</p>"', "", "status=no,location=no,toolbar=yes,resizable=yes,left=0,top=201,height=400,width=300"); +win4 = window.open('javascript:"<h1>TEST window.open</h2><p>menubar=yes,status=yes,location=no,toolbar=no,resizable=no,left=0,top=601,height=200,width=500</p>"', "", "menubar=yes,status=yes,location=no,toolbar=no,resizable=no,left=0,top=601,height=200,width=500"); +</script> +<body> +<p>This test uses javascript. +<p>It opens a series of windows with different attributes. +<p>The buttons below can be used for manually testing various types of javascript windows. +<form> +<input type="button" value="bring alert(message)" onClick="alert('message')"> +<input type="button" value="window.print" onClick="window.print()"> +<input type="button" value="confirm" onClick="if (confirm('Press Ok or Cancel to confirm')) {alert('You pressed OK');} else {alert('You pressed Cancel');}"> +</form> +</body> +</html>
\ No newline at end of file |