diff options
author | Christophe Cornu <ccornu> | 2003-12-03 20:48:16 +0000 |
---|---|---|
committer | Christophe Cornu <ccornu> | 2003-12-03 20:48:16 +0000 |
commit | b3f5e4efa3c1a3b1f6afb70ecfdaa36cb073815e (patch) | |
tree | f16b10265d20121810fcb5f84300fe419162caba /tests/org.eclipse.swt.tests/data | |
parent | b2bdbf591f41df30ff51eabb0ecc93eede9c4b52 (diff) | |
download | eclipse.platform.swt-b3f5e4efa3c1a3b1f6afb70ecfdaa36cb073815e.tar.gz eclipse.platform.swt-b3f5e4efa3c1a3b1f6afb70ecfdaa36cb073815e.tar.xz eclipse.platform.swt-b3f5e4efa3c1a3b1f6afb70ecfdaa36cb073815e.zip |
*** empty log message ***
Diffstat (limited to 'tests/org.eclipse.swt.tests/data')
-rw-r--r-- | tests/org.eclipse.swt.tests/data/browser5.html | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/tests/org.eclipse.swt.tests/data/browser5.html b/tests/org.eclipse.swt.tests/data/browser5.html new file mode 100644 index 0000000000..ccb793dbd6 --- /dev/null +++ b/tests/org.eclipse.swt.tests/data/browser5.html @@ -0,0 +1,41 @@ +<html> +<script type="text/javascript"> + var win; + function testOpen() { + win = window.open('javascript:"<h1>Simple New Window</h2>"', "", "left=10,top=200,height=100,width=300"); + } + function testResizeTo() { + win.resizeTo(600,800); + } + function testMoveTo() { + win.moveTo(200,100); + } + function testMoveBy() { + win.moveBy(2,2); + } + function testScrollBy() { + win.scrollBy(1,20); + } + function testResizeBy() { + win.resizeBy(2,3); + } + function testClose() { + win.close(); + } + +</script> + +<form> + <input type="button" VALUE="window.open" onClick="testOpen()"> + <input type="button" VALUE="resizeTo" onClick="testResizeTo()"> + <input type="button" VALUE="moveTo" onClick="testMoveTo()"> + <input type="button" VALUE="moveBy" onClick="testMoveBy()"> + <input type="button" VALUE="scrollBy" onClick="testScrollBy()"> + <input type="button" VALUE="resizeBy" onClick="testResizeBy()"> + <input type="button" VALUE="close" onClick="testClose()"> +</FORM> +<body> +<p>This test uses javascript. +<p>It opens a new window. Sets a timer. Then close the new window when the timer expires. +</body> +</html> |