summaryrefslogtreecommitdiffstats
path: root/WebContent/statictestfiles
diff options
context:
space:
mode:
authorJohn Ahlroos <john@vaadin.com>2012-09-10 13:15:12 +0300
committerJohn Ahlroos <john@vaadin.com>2012-09-10 13:15:12 +0300
commit6ef39c27fa6edd9454752bff18ea21ced19c91c0 (patch)
treeafd6f18def7ce2827f9a71035ea863800a2ac23c /WebContent/statictestfiles
parent12513bd7bbe19f5574e64a7a6e0de0113c860dbc (diff)
downloadvaadin-framework-6ef39c27fa6edd9454752bff18ea21ced19c91c0.tar.gz
vaadin-framework-6ef39c27fa6edd9454752bff18ea21ced19c91c0.zip
Moved layout-resize-text.html to statictestfiles
Diffstat (limited to 'WebContent/statictestfiles')
-rw-r--r--WebContent/statictestfiles/layout-resize-test.html41
1 files changed, 41 insertions, 0 deletions
diff --git a/WebContent/statictestfiles/layout-resize-test.html b/WebContent/statictestfiles/layout-resize-test.html
new file mode 100644
index 0000000000..b798402bb7
--- /dev/null
+++ b/WebContent/statictestfiles/layout-resize-test.html
@@ -0,0 +1,41 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+<title>LayoutResizeTest opener</title>
+</head>
+<body>
+
+<button onclick="testV7()">Open LayoutResizeTest (Vaadin 7)</button><br>
+<button onclick="testV6()">Open LayoutResizeTest (Vaadin 6)</button><br>
+<button onclick="resize1()">Resize to 650x450</button><br>
+<button onclick="resize2()">Resize to 950x750</button>
+
+
+<script>
+var win1, win2;
+
+function testV7() {
+ win1 = window.open('/vaadin/run/com.vaadin.tests.components.orderedlayout.LayoutResizeTest?restartApplication&debug','layoutResizeTestV7','width=800,height=600');
+}
+
+function testV6() {
+ win2 = window.open('/LayoutBenchmark/?restartApplication&debug','layoutResizeTestV6','width=800,height=600');
+}
+
+function resize1() {
+ if(win1)
+ win1.resizeTo(650,450);
+ if(win2)
+ win2.resizeTo(650,450);
+}
+
+function resize2() {
+ if(win1)
+ win1.resizeTo(950,750);
+ if(win2)
+ win2.resizeTo(950,750);
+}
+</script>
+</body>
+</html> \ No newline at end of file