Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

add 146 cases

  • Loading branch information...
commit dfdeb7f0ee27c62023a0f6f2a4a69a3dca5a0917 1 parent ab78a19
@huangnoah authored
Showing with 8,690 additions and 0 deletions.
  1. +26 −0 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_001Test.scala
  2. +42 −0 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_002Test.scala
  3. +42 −0 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_003Test.scala
  4. +48 −0 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_004Test.scala
  5. +48 −0 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_005Test.scala
  6. +28 −0 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_006Test.scala
  7. +58 −0 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_007Test.scala
  8. +58 −0 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_008Test.scala
  9. +72 −0 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_009Test.scala
  10. +72 −0 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_010Test.scala
  11. +26 −0 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_011Test.scala
  12. +50 −0 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_012Test.scala
  13. +50 −0 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_013Test.scala
  14. +60 −0 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_014Test.scala
  15. +60 −0 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_015Test.scala
  16. +26 −0 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_016Test.scala
  17. +50 −0 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_017Test.scala
  18. +50 −0 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_018Test.scala
  19. +60 −0 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_019Test.scala
  20. +60 −0 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_020Test.scala
  21. +33 −0 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_021Test.scala
  22. +78 −0 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_022Test.scala
  23. +78 −0 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_023Test.scala
  24. +102 −0 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_024Test.scala
  25. +102 −0 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_025Test.scala
  26. +29 −0 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_026Test.scala
  27. +62 −0 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_027Test.scala
  28. +62 −0 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_028Test.scala
  29. +78 −0 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_029Test.scala
  30. +78 −0 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_030Test.scala
  31. +29 −0 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_031Test.scala
  32. +62 −0 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_032Test.scala
  33. +62 −0 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_033Test.scala
  34. +78 −0 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_034Test.scala
  35. +78 −0 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_035Test.scala
  36. +29 −0 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_036Test.scala
  37. +62 −0 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_037Test.scala
  38. +62 −0 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_038Test.scala
  39. +78 −0 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_039Test.scala
  40. +78 −0 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_040Test.scala
  41. +29 −0 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_041Test.scala
  42. +62 −0 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_042Test.scala
  43. +62 −0 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_043Test.scala
  44. +78 −0 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_044Test.scala
  45. +78 −0 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_045Test.scala
  46. +54 −0 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_046Test.scala
  47. +154 −0 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_047Test.scala
  48. +154 −0 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_048Test.scala
  49. +210 −0 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_049Test.scala
  50. +210 −0 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_050Test.scala
  51. +54 −0 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_051Test.scala
  52. +28 −0 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_052Test.scala
  53. +50 −0 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_053Test.scala
  54. +50 −0 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_054Test.scala
  55. +54 −0 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_055Test.scala
  56. +54 −0 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_056Test.scala
  57. +28 −0 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_057Test.scala
  58. +28 −0 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_058Test.scala
  59. +50 −0 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_059Test.scala
  60. +50 −0 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_060Test.scala
  61. +54 −0 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_061Test.scala
  62. +54 −0 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_062Test.scala
  63. +28 −0 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_063Test.scala
  64. +28 −0 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_064Test.scala
  65. +50 −0 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_065Test.scala
  66. +50 −0 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_066Test.scala
  67. +54 −0 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_067Test.scala
  68. +54 −0 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_068Test.scala
  69. +28 −0 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_069Test.scala
  70. +34 −0 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_070Test.scala
  71. +74 −0 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_071Test.scala
  72. +74 −0 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_072Test.scala
  73. +90 −0 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_073Test.scala
  74. +90 −0 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_074Test.scala
  75. +34 −0 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_075Test.scala
  76. +28 −0 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_076Test.scala
  77. +50 −0 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_077Test.scala
  78. +50 −0 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_078Test.scala
  79. +54 −0 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_079Test.scala
  80. +54 −0 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_080Test.scala
  81. +28 −0 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_081Test.scala
  82. +28 −0 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_082Test.scala
  83. +50 −0 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_083Test.scala
  84. +50 −0 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_084Test.scala
  85. +54 −0 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_085Test.scala
  86. +54 −0 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_086Test.scala
  87. +28 −0 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_087Test.scala
  88. +28 −0 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_088Test.scala
  89. +50 −0 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_089Test.scala
  90. +50 −0 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_090Test.scala
  91. +54 −0 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_091Test.scala
  92. +54 −0 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_092Test.scala
  93. +28 −0 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_093Test.scala
  94. +28 −0 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_094Test.scala
  95. +50 −0 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_095Test.scala
  96. +50 −0 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_096Test.scala
  97. +54 −0 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_097Test.scala
  98. +54 −0 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_098Test.scala
  99. +28 −0 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_099Test.scala
  100. +28 −0 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_100Test.scala
  101. +50 −0 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_101Test.scala
  102. +50 −0 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_102Test.scala
  103. +54 −0 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_103Test.scala
  104. +54 −0 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_104Test.scala
  105. +28 −0 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_105Test.scala
  106. +28 −0 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_106Test.scala
  107. +50 −0 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_107Test.scala
  108. +50 −0 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_108Test.scala
  109. +54 −0 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_109Test.scala
  110. +54 −0 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_110Test.scala
  111. +28 −0 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_111Test.scala
  112. +28 −0 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_112Test.scala
  113. +50 −0 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_113Test.scala
  114. +50 −0 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_114Test.scala
  115. +54 −0 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_115Test.scala
  116. +54 −0 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_116Test.scala
  117. +28 −0 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_117Test.scala
  118. +28 −0 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_118Test.scala
  119. +50 −0 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_119Test.scala
  120. +50 −0 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_120Test.scala
  121. +54 −0 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_121Test.scala
  122. +54 −0 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_122Test.scala
  123. +28 −0 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_123Test.scala
  124. +28 −0 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_124Test.scala
  125. +50 −0 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_125Test.scala
  126. +50 −0 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_126Test.scala
  127. +54 −0 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_127Test.scala
  128. +54 −0 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_128Test.scala
  129. +28 −0 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_129Test.scala
  130. +28 −0 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_130Test.scala
  131. +50 −0 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_131Test.scala
  132. +50 −0 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_132Test.scala
  133. +54 −0 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_133Test.scala
  134. +54 −0 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_134Test.scala
  135. +28 −0 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_135Test.scala
  136. +25 −0 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_136Test.scala
  137. +22 −0 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_137Test.scala
  138. +134 −0 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_138Test.scala
  139. +134 −0 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_139Test.scala
  140. +134 −0 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_140Test.scala
  141. +118 −0 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_141Test.scala
  142. +118 −0 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_142Test.scala
  143. +118 −0 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_143Test.scala
  144. +204 −0 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_144Test.scala
  145. +202 −0 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_145Test.scala
  146. +202 −0 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_146Test.scala
View
26 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_001Test.scala
@@ -0,0 +1,26 @@
+
+package org.zkoss.zktest.test2.Z65
+
+import org.zkoss.ztl.Tags
+import org.zkoss.zstl.ZTL4ScalaTestCase
+
+@Tags(tags = "Z65-Flex-001.zul,Flex")
+class Z65_Flex_001Test extends ZTL4ScalaTestCase {
+
+def testClick() = {
+ val zscript = """<zk><window border="normal" height="360px"
+ title="Fit-the-Rest Flexibility: [Div]" width="480px">
+ <div style="background:yellow" vflex="1">
+ <div height="100%" style="background:yellow" width="100%">
+ <label value="1"/>
+ </div>
+ </div>
+</window>
+</zk>"""
+ runZTL(zscript,
+ () => {
+ verifyImage()
+ })
+
+ }
+}
View
42 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_002Test.scala
@@ -0,0 +1,42 @@
+
+package org.zkoss.zktest.test2.Z65
+
+import org.zkoss.ztl.Tags
+import org.zkoss.zstl.ZTL4ScalaTestCase
+
+@Tags(tags = "Z65-Flex-002.zul,Flex")
+class Z65_Flex_002Test extends ZTL4ScalaTestCase {
+
+def testClick() = {
+ val zscript = """<zk><hbox>
+ <window border="normal" height="360px"
+ title="Proportional Flexibility: [Div, Hlayout]" width="480px">
+ <hlayout height="200px" width="200px">
+ <div hflex="1" style="background:cyan" vflex="1">
+ <label value="1"/>
+ </div>
+ <div hflex="2" style="background:yellow" vflex="1">
+ <label value="1"/>
+ </div>
+ </hlayout>
+ </window>
+ <window border="normal" height="360px"
+ title="Proportional Flexibility: [Div, Hbox]" width="480px">
+ <hbox height="200px" width="200px">
+ <div hflex="1" style="background:cyan" vflex="1">
+ <label value="1"/>
+ </div>
+ <div hflex="2" style="background:yellow" vflex="1">
+ <label value="1"/>
+ </div>
+ </hbox>
+ </window>
+</hbox>
+</zk>"""
+ runZTL(zscript,
+ () => {
+ verifyImage()
+ })
+
+ }
+}
View
42 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_003Test.scala
@@ -0,0 +1,42 @@
+
+package org.zkoss.zktest.test2.Z65
+
+import org.zkoss.ztl.Tags
+import org.zkoss.zstl.ZTL4ScalaTestCase
+
+@Tags(tags = "Z65-Flex-003.zul,Flex")
+class Z65_Flex_003Test extends ZTL4ScalaTestCase {
+
+def testClick() = {
+ val zscript = """<zk><hbox>
+ <window border="normal" height="360px"
+ title="Proportional Flexibility: [Div, Vlayout]" width="480px">
+ <vlayout height="200px" width="200px">
+ <div hflex="1" style="background:cyan" vflex="1">
+ <label value="1"/>
+ </div>
+ <div hflex="1" style="background:yellow" vflex="2">
+ <label value="1"/>
+ </div>
+ </vlayout>
+ </window>
+ <window border="normal" height="360px"
+ title="Proportional Flexibility: [Div, Vbox]" width="480px">
+ <vbox height="200px" width="200px">
+ <div hflex="1" style="background:cyan" vflex="1">
+ <label value="1"/>
+ </div>
+ <div hflex="1" style="background:yellow" vflex="2">
+ <label value="1"/>
+ </div>
+ </vbox>
+ </window>
+</hbox>
+</zk>"""
+ runZTL(zscript,
+ () => {
+ verifyImage()
+ })
+
+ }
+}
View
48 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_004Test.scala
@@ -0,0 +1,48 @@
+
+package org.zkoss.zktest.test2.Z65
+
+import org.zkoss.ztl.Tags
+import org.zkoss.zstl.ZTL4ScalaTestCase
+
+@Tags(tags = "Z65-Flex-004.zul,Flex")
+class Z65_Flex_004Test extends ZTL4ScalaTestCase {
+
+def testClick() = {
+ val zscript = """<zk><hbox>
+ <window border="normal" height="360px"
+ title="minimum Flex: [Div, Hlayout]" width="480px">
+ <hlayout vflex="min" width="200px">
+ <div hflex="1" style="background:yellow" vflex="1">
+ <label value="1"/>
+ </div>
+ <div height="60px" hflex="1" style="background:cyan">
+ <label value="1"/>
+ </div>
+ <div height="100px" hflex="1" style="background:red">
+ <label value="1"/>
+ </div>
+ </hlayout>
+ </window>
+ <window border="normal" height="360px"
+ title="minimum Flex: [Div, Hbox]" width="480px">
+ <hbox vflex="min" width="200px">
+ <div hflex="1" style="background:yellow" vflex="1">
+ <label value="1"/>
+ </div>
+ <div height="60px" hflex="1" style="background:cyan">
+ <label value="1"/>
+ </div>
+ <div height="100px" hflex="1" style="background:red">
+ <label value="1"/>
+ </div>
+ </hbox>
+ </window>
+</hbox>
+</zk>"""
+ runZTL(zscript,
+ () => {
+ verifyImage()
+ })
+
+ }
+}
View
48 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_005Test.scala
@@ -0,0 +1,48 @@
+
+package org.zkoss.zktest.test2.Z65
+
+import org.zkoss.ztl.Tags
+import org.zkoss.zstl.ZTL4ScalaTestCase
+
+@Tags(tags = "Z65-Flex-005.zul,Flex")
+class Z65_Flex_005Test extends ZTL4ScalaTestCase {
+
+def testClick() = {
+ val zscript = """<zk><hbox>
+ <window border="normal" height="360px"
+ title="minimum Flex: [Div, Vlayout]" width="480px">
+ <vlayout height="200px" hflex="min">
+ <div hflex="1" style="background:yellow" vflex="1">
+ <label value="1"/>
+ </div>
+ <div style="background:cyan" vflex="1" width="75px">
+ <label value="1"/>
+ </div>
+ <div style="background:red" vflex="1" width="120px">
+ <label value="1"/>
+ </div>
+ </vlayout>
+ </window>
+ <window border="normal" height="360px"
+ title="minimum Flex: [Div, Vbox]" width="480px">
+ <vbox height="200px" hflex="min">
+ <div hflex="1" style="background:yellow" vflex="1">
+ <label value="1"/>
+ </div>
+ <div style="background:cyan" vflex="1" width="75px">
+ <label value="1"/>
+ </div>
+ <div style="background:red" vflex="1" width="120px">
+ <label value="1"/>
+ </div>
+ </vbox>
+ </window>
+</hbox>
+</zk>"""
+ runZTL(zscript,
+ () => {
+ verifyImage()
+ })
+
+ }
+}
View
28 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_006Test.scala
@@ -0,0 +1,28 @@
+
+package org.zkoss.zktest.test2.Z65
+
+import org.zkoss.ztl.Tags
+import org.zkoss.zstl.ZTL4ScalaTestCase
+
+@Tags(tags = "Z65-Flex-006.zul,Flex")
+class Z65_Flex_006Test extends ZTL4ScalaTestCase {
+
+def testClick() = {
+ val zscript = """<zk><window border="normal" height="360px"
+ title="Fit-the-Rest Flexibility: [Panel]" width="480px">
+ <panel vflex="1">
+ <panelchildren>
+ <div height="100%" style="background:yellow" width="100%">
+ <label value="1"/>
+ </div>
+ </panelchildren>
+ </panel>
+</window>
+</zk>"""
+ runZTL(zscript,
+ () => {
+ verifyImage()
+ })
+
+ }
+}
View
58 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_007Test.scala
@@ -0,0 +1,58 @@
+
+package org.zkoss.zktest.test2.Z65
+
+import org.zkoss.ztl.Tags
+import org.zkoss.zstl.ZTL4ScalaTestCase
+
+@Tags(tags = "Z65-Flex-007.zul,Flex")
+class Z65_Flex_007Test extends ZTL4ScalaTestCase {
+
+def testClick() = {
+ val zscript = """<zk><hbox>
+ <window border="normal" height="360px"
+ title="Proportional Flexibility: [Panel, Hlayout]" width="480px">
+ <hlayout height="200px" width="200px">
+ <panel hflex="1" vflex="1">
+ <panelchildren>
+ <div height="100%" style="background:cyan" width="100%">
+ <label value="1"/>
+ </div>
+ </panelchildren>
+ </panel>
+ <panel hflex="2" vflex="1">
+ <panelchildren>
+ <div height="100%" style="background:yellow" width="100%">
+ <label value="1"/>
+ </div>
+ </panelchildren>
+ </panel>
+ </hlayout>
+ </window>
+ <window border="normal" height="360px"
+ title="Proportional Flexibility: [Panel, Hbox]" width="480px">
+ <hbox height="200px" width="200px">
+ <panel hflex="1" vflex="1">
+ <panelchildren>
+ <div height="100%" style="background:cyan" width="100%">
+ <label value="1"/>
+ </div>
+ </panelchildren>
+ </panel>
+ <panel hflex="2" vflex="1">
+ <panelchildren>
+ <div height="100%" style="background:yellow" width="100%">
+ <label value="1"/>
+ </div>
+ </panelchildren>
+ </panel>
+ </hbox>
+ </window>
+</hbox>
+</zk>"""
+ runZTL(zscript,
+ () => {
+ verifyImage()
+ })
+
+ }
+}
View
58 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_008Test.scala
@@ -0,0 +1,58 @@
+
+package org.zkoss.zktest.test2.Z65
+
+import org.zkoss.ztl.Tags
+import org.zkoss.zstl.ZTL4ScalaTestCase
+
+@Tags(tags = "Z65-Flex-008.zul,Flex")
+class Z65_Flex_008Test extends ZTL4ScalaTestCase {
+
+def testClick() = {
+ val zscript = """<zk><hbox>
+ <window border="normal" height="360px"
+ title="Proportional Flexibility: [Panel, Vlayout]" width="480px">
+ <vlayout height="200px" width="200px">
+ <panel hflex="1" vflex="1">
+ <panelchildren>
+ <div height="100%" style="background:cyan" width="100%">
+ <label value="1"/>
+ </div>
+ </panelchildren>
+ </panel>
+ <panel hflex="1" vflex="2">
+ <panelchildren>
+ <div height="100%" style="background:yellow" width="100%">
+ <label value="1"/>
+ </div>
+ </panelchildren>
+ </panel>
+ </vlayout>
+ </window>
+ <window border="normal" height="360px"
+ title="Proportional Flexibility: [Panel, Vbox]" width="480px">
+ <vbox height="200px" width="200px">
+ <panel hflex="1" vflex="1">
+ <panelchildren>
+ <div height="100%" style="background:cyan" width="100%">
+ <label value="1"/>
+ </div>
+ </panelchildren>
+ </panel>
+ <panel hflex="1" vflex="2">
+ <panelchildren>
+ <div height="100%" style="background:yellow" width="100%">
+ <label value="1"/>
+ </div>
+ </panelchildren>
+ </panel>
+ </vbox>
+ </window>
+</hbox>
+</zk>"""
+ runZTL(zscript,
+ () => {
+ verifyImage()
+ })
+
+ }
+}
View
72 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_009Test.scala
@@ -0,0 +1,72 @@
+
+package org.zkoss.zktest.test2.Z65
+
+import org.zkoss.ztl.Tags
+import org.zkoss.zstl.ZTL4ScalaTestCase
+
+@Tags(tags = "Z65-Flex-009.zul,Flex")
+class Z65_Flex_009Test extends ZTL4ScalaTestCase {
+
+def testClick() = {
+ val zscript = """<zk><hbox>
+ <window border="normal" height="360px"
+ title="minimum Flex: [Panel, Hlayout]" width="480px">
+ <hlayout vflex="min" width="200px">
+ <panel hflex="1" vflex="1">
+ <panelchildren>
+ <div height="100%" style="background:yellow" width="100%">
+ <label value="1"/>
+ </div>
+ </panelchildren>
+ </panel>
+ <panel height="60px" hflex="1">
+ <panelchildren>
+ <div height="100%" style="background:cyan" width="100%">
+ <label value="1"/>
+ </div>
+ </panelchildren>
+ </panel>
+ <panel height="100px" hflex="1">
+ <panelchildren>
+ <div height="100%" style="background:red" width="100%">
+ <label value="1"/>
+ </div>
+ </panelchildren>
+ </panel>
+ </hlayout>
+ </window>
+ <window border="normal" height="360px"
+ title="minimum Flex: [Panel, Hbox]" width="480px">
+ <hbox vflex="min" width="200px">
+ <panel hflex="1" vflex="1">
+ <panelchildren>
+ <div height="100%" style="background:yellow" width="100%">
+ <label value="1"/>
+ </div>
+ </panelchildren>
+ </panel>
+ <panel height="60px" hflex="1">
+ <panelchildren>
+ <div height="100%" style="background:cyan" width="100%">
+ <label value="1"/>
+ </div>
+ </panelchildren>
+ </panel>
+ <panel height="100px" hflex="1">
+ <panelchildren>
+ <div height="100%" style="background:red" width="100%">
+ <label value="1"/>
+ </div>
+ </panelchildren>
+ </panel>
+ </hbox>
+ </window>
+</hbox>
+</zk>"""
+ runZTL(zscript,
+ () => {
+ verifyImage()
+ })
+
+ }
+}
View
72 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_010Test.scala
@@ -0,0 +1,72 @@
+
+package org.zkoss.zktest.test2.Z65
+
+import org.zkoss.ztl.Tags
+import org.zkoss.zstl.ZTL4ScalaTestCase
+
+@Tags(tags = "Z65-Flex-010.zul,Flex")
+class Z65_Flex_010Test extends ZTL4ScalaTestCase {
+
+def testClick() = {
+ val zscript = """<zk><hbox>
+ <window border="normal" height="360px"
+ title="minimum Flex: [Panel, Vlayout]" width="480px">
+ <vlayout height="200px" hflex="min">
+ <panel hflex="1" vflex="1">
+ <panelchildren>
+ <div height="100%" style="background:yellow" width="100%">
+ <label value="1"/>
+ </div>
+ </panelchildren>
+ </panel>
+ <panel vflex="1" width="75px">
+ <panelchildren>
+ <div height="100%" style="background:cyan" width="100%">
+ <label value="1"/>
+ </div>
+ </panelchildren>
+ </panel>
+ <panel vflex="1" width="120px">
+ <panelchildren>
+ <div height="100%" style="background:red" width="100%">
+ <label value="1"/>
+ </div>
+ </panelchildren>
+ </panel>
+ </vlayout>
+ </window>
+ <window border="normal" height="360px"
+ title="minimum Flex: [Panel, Vbox]" width="480px">
+ <vbox height="200px" hflex="min">
+ <panel hflex="1" vflex="1">
+ <panelchildren>
+ <div height="100%" style="background:yellow" width="100%">
+ <label value="1"/>
+ </div>
+ </panelchildren>
+ </panel>
+ <panel vflex="1" width="75px">
+ <panelchildren>
+ <div height="100%" style="background:cyan" width="100%">
+ <label value="1"/>
+ </div>
+ </panelchildren>
+ </panel>
+ <panel vflex="1" width="120px">
+ <panelchildren>
+ <div height="100%" style="background:red" width="100%">
+ <label value="1"/>
+ </div>
+ </panelchildren>
+ </panel>
+ </vbox>
+ </window>
+</hbox>
+</zk>"""
+ runZTL(zscript,
+ () => {
+ verifyImage()
+ })
+
+ }
+}
View
26 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_011Test.scala
@@ -0,0 +1,26 @@
+
+package org.zkoss.zktest.test2.Z65
+
+import org.zkoss.ztl.Tags
+import org.zkoss.zstl.ZTL4ScalaTestCase
+
+@Tags(tags = "Z65-Flex-011.zul,Flex")
+class Z65_Flex_011Test extends ZTL4ScalaTestCase {
+
+def testClick() = {
+ val zscript = """<zk><window border="normal" height="360px"
+ title="Fit-the-Rest Flexibility: [Window]" width="480px">
+ <window border="none" vflex="1">
+ <div height="100%" style="background:yellow" width="100%">
+ <label value="1"/>
+ </div>
+ </window>
+</window>
+</zk>"""
+ runZTL(zscript,
+ () => {
+ verifyImage()
+ })
+
+ }
+}
View
50 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_012Test.scala
@@ -0,0 +1,50 @@
+
+package org.zkoss.zktest.test2.Z65
+
+import org.zkoss.ztl.Tags
+import org.zkoss.zstl.ZTL4ScalaTestCase
+
+@Tags(tags = "Z65-Flex-012.zul,Flex")
+class Z65_Flex_012Test extends ZTL4ScalaTestCase {
+
+def testClick() = {
+ val zscript = """<zk><hbox>
+ <window border="normal" height="360px"
+ title="Proportional Flexibility: [Window, Hlayout]" width="480px">
+ <hlayout height="200px" width="200px">
+ <window border="none" hflex="1" vflex="1">
+ <div height="100%" style="background:cyan" width="100%">
+ <label value="1"/>
+ </div>
+ </window>
+ <window border="none" hflex="2" vflex="1">
+ <div height="100%" style="background:yellow" width="100%">
+ <label value="1"/>
+ </div>
+ </window>
+ </hlayout>
+ </window>
+ <window border="normal" height="360px"
+ title="Proportional Flexibility: [Window, Hbox]" width="480px">
+ <hbox height="200px" width="200px">
+ <window border="none" hflex="1" vflex="1">
+ <div height="100%" style="background:cyan" width="100%">
+ <label value="1"/>
+ </div>
+ </window>
+ <window border="none" hflex="2" vflex="1">
+ <div height="100%" style="background:yellow" width="100%">
+ <label value="1"/>
+ </div>
+ </window>
+ </hbox>
+ </window>
+</hbox>
+</zk>"""
+ runZTL(zscript,
+ () => {
+ verifyImage()
+ })
+
+ }
+}
View
50 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_013Test.scala
@@ -0,0 +1,50 @@
+
+package org.zkoss.zktest.test2.Z65
+
+import org.zkoss.ztl.Tags
+import org.zkoss.zstl.ZTL4ScalaTestCase
+
+@Tags(tags = "Z65-Flex-013.zul,Flex")
+class Z65_Flex_013Test extends ZTL4ScalaTestCase {
+
+def testClick() = {
+ val zscript = """<zk><hbox>
+ <window border="normal" height="360px"
+ title="Proportional Flexibility: [Window, Vlayout]" width="480px">
+ <vlayout height="200px" width="200px">
+ <window border="none" hflex="1" vflex="1">
+ <div height="100%" style="background:cyan" width="100%">
+ <label value="1"/>
+ </div>
+ </window>
+ <window border="none" hflex="1" vflex="2">
+ <div height="100%" style="background:yellow" width="100%">
+ <label value="1"/>
+ </div>
+ </window>
+ </vlayout>
+ </window>
+ <window border="normal" height="360px"
+ title="Proportional Flexibility: [Window, Vbox]" width="480px">
+ <vbox height="200px" width="200px">
+ <window border="none" hflex="1" vflex="1">
+ <div height="100%" style="background:cyan" width="100%">
+ <label value="1"/>
+ </div>
+ </window>
+ <window border="none" hflex="1" vflex="2">
+ <div height="100%" style="background:yellow" width="100%">
+ <label value="1"/>
+ </div>
+ </window>
+ </vbox>
+ </window>
+</hbox>
+</zk>"""
+ runZTL(zscript,
+ () => {
+ verifyImage()
+ })
+
+ }
+}
View
60 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_014Test.scala
@@ -0,0 +1,60 @@
+
+package org.zkoss.zktest.test2.Z65
+
+import org.zkoss.ztl.Tags
+import org.zkoss.zstl.ZTL4ScalaTestCase
+
+@Tags(tags = "Z65-Flex-014.zul,Flex")
+class Z65_Flex_014Test extends ZTL4ScalaTestCase {
+
+def testClick() = {
+ val zscript = """<zk><hbox>
+ <window border="normal" height="360px"
+ title="minimum Flex: [Window, Hlayout]" width="480px">
+ <hlayout vflex="min" width="200px">
+ <window border="none" hflex="1" vflex="1">
+ <div height="100%" style="background:yellow" width="100%">
+ <label value="1"/>
+ </div>
+ </window>
+ <window border="none" height="60px" hflex="1">
+ <div height="100%" style="background:cyan" width="100%">
+ <label value="1"/>
+ </div>
+ </window>
+ <window border="none" height="100px" hflex="1">
+ <div height="100%" style="background:red" width="100%">
+ <label value="1"/>
+ </div>
+ </window>
+ </hlayout>
+ </window>
+ <window border="normal" height="360px"
+ title="minimum Flex: [Window, Hbox]" width="480px">
+ <hbox vflex="min" width="200px">
+ <window border="none" hflex="1" vflex="1">
+ <div height="100%" style="background:yellow" width="100%">
+ <label value="1"/>
+ </div>
+ </window>
+ <window border="none" height="60px" hflex="1">
+ <div height="100%" style="background:cyan" width="100%">
+ <label value="1"/>
+ </div>
+ </window>
+ <window border="none" height="100px" hflex="1">
+ <div height="100%" style="background:red" width="100%">
+ <label value="1"/>
+ </div>
+ </window>
+ </hbox>
+ </window>
+</hbox>
+</zk>"""
+ runZTL(zscript,
+ () => {
+ verifyImage()
+ })
+
+ }
+}
View
60 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_015Test.scala
@@ -0,0 +1,60 @@
+
+package org.zkoss.zktest.test2.Z65
+
+import org.zkoss.ztl.Tags
+import org.zkoss.zstl.ZTL4ScalaTestCase
+
+@Tags(tags = "Z65-Flex-015.zul,Flex")
+class Z65_Flex_015Test extends ZTL4ScalaTestCase {
+
+def testClick() = {
+ val zscript = """<zk><hbox>
+ <window border="normal" height="360px"
+ title="minimum Flex: [Window, Vlayout]" width="480px">
+ <vlayout height="200px" hflex="min">
+ <window border="none" hflex="1" vflex="1">
+ <div height="100%" style="background:yellow" width="100%">
+ <label value="1"/>
+ </div>
+ </window>
+ <window border="none" vflex="1" width="75px">
+ <div height="100%" style="background:cyan" width="100%">
+ <label value="1"/>
+ </div>
+ </window>
+ <window border="none" vflex="1" width="120px">
+ <div height="100%" style="background:red" width="100%">
+ <label value="1"/>
+ </div>
+ </window>
+ </vlayout>
+ </window>
+ <window border="normal" height="360px"
+ title="minimum Flex: [Window, Vbox]" width="480px">
+ <vbox height="200px" hflex="min">
+ <window border="none" hflex="1" vflex="1">
+ <div height="100%" style="background:yellow" width="100%">
+ <label value="1"/>
+ </div>
+ </window>
+ <window border="none" vflex="1" width="75px">
+ <div height="100%" style="background:cyan" width="100%">
+ <label value="1"/>
+ </div>
+ </window>
+ <window border="none" vflex="1" width="120px">
+ <div height="100%" style="background:red" width="100%">
+ <label value="1"/>
+ </div>
+ </window>
+ </vbox>
+ </window>
+</hbox>
+</zk>"""
+ runZTL(zscript,
+ () => {
+ verifyImage()
+ })
+
+ }
+}
View
26 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_016Test.scala
@@ -0,0 +1,26 @@
+
+package org.zkoss.zktest.test2.Z65
+
+import org.zkoss.ztl.Tags
+import org.zkoss.zstl.ZTL4ScalaTestCase
+
+@Tags(tags = "Z65-Flex-016.zul,Flex")
+class Z65_Flex_016Test extends ZTL4ScalaTestCase {
+
+def testClick() = {
+ val zscript = """<zk><window border="normal" height="360px"
+ title="Fit-the-Rest Flexibility: [Groupbox]" width="480px">
+ <groupbox vflex="1">
+ <div height="100%" style="background:yellow" width="100%">
+ <label value="1"/>
+ </div>
+ </groupbox>
+</window>
+</zk>"""
+ runZTL(zscript,
+ () => {
+ verifyImage()
+ })
+
+ }
+}
View
50 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_017Test.scala
@@ -0,0 +1,50 @@
+
+package org.zkoss.zktest.test2.Z65
+
+import org.zkoss.ztl.Tags
+import org.zkoss.zstl.ZTL4ScalaTestCase
+
+@Tags(tags = "Z65-Flex-017.zul,Flex")
+class Z65_Flex_017Test extends ZTL4ScalaTestCase {
+
+def testClick() = {
+ val zscript = """<zk><hbox>
+ <window border="normal" height="360px"
+ title="Proportional Flexibility: [Groupbox, Hlayout]" width="480px">
+ <hlayout height="200px" width="200px">
+ <groupbox hflex="1" vflex="1">
+ <div height="100%" style="background:cyan" width="100%">
+ <label value="1"/>
+ </div>
+ </groupbox>
+ <groupbox hflex="2" vflex="1">
+ <div height="100%" style="background:yellow" width="100%">
+ <label value="1"/>
+ </div>
+ </groupbox>
+ </hlayout>
+ </window>
+ <window border="normal" height="360px"
+ title="Proportional Flexibility: [Groupbox, Hbox]" width="480px">
+ <hbox height="200px" width="200px">
+ <groupbox hflex="1" vflex="1">
+ <div height="100%" style="background:cyan" width="100%">
+ <label value="1"/>
+ </div>
+ </groupbox>
+ <groupbox hflex="2" vflex="1">
+ <div height="100%" style="background:yellow" width="100%">
+ <label value="1"/>
+ </div>
+ </groupbox>
+ </hbox>
+ </window>
+</hbox>
+</zk>"""
+ runZTL(zscript,
+ () => {
+ verifyImage()
+ })
+
+ }
+}
View
50 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_018Test.scala
@@ -0,0 +1,50 @@
+
+package org.zkoss.zktest.test2.Z65
+
+import org.zkoss.ztl.Tags
+import org.zkoss.zstl.ZTL4ScalaTestCase
+
+@Tags(tags = "Z65-Flex-018.zul,Flex")
+class Z65_Flex_018Test extends ZTL4ScalaTestCase {
+
+def testClick() = {
+ val zscript = """<zk><hbox>
+ <window border="normal" height="360px"
+ title="Proportional Flexibility: [Groupbox, Vlayout]" width="480px">
+ <vlayout height="200px" width="200px">
+ <groupbox hflex="1" vflex="1">
+ <div height="100%" style="background:cyan" width="100%">
+ <label value="1"/>
+ </div>
+ </groupbox>
+ <groupbox hflex="1" vflex="2">
+ <div height="100%" style="background:yellow" width="100%">
+ <label value="1"/>
+ </div>
+ </groupbox>
+ </vlayout>
+ </window>
+ <window border="normal" height="360px"
+ title="Proportional Flexibility: [Groupbox, Vbox]" width="480px">
+ <vbox height="200px" width="200px">
+ <groupbox hflex="1" vflex="1">
+ <div height="100%" style="background:cyan" width="100%">
+ <label value="1"/>
+ </div>
+ </groupbox>
+ <groupbox hflex="1" vflex="2">
+ <div height="100%" style="background:yellow" width="100%">
+ <label value="1"/>
+ </div>
+ </groupbox>
+ </vbox>
+ </window>
+</hbox>
+</zk>"""
+ runZTL(zscript,
+ () => {
+ verifyImage()
+ })
+
+ }
+}
View
60 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_019Test.scala
@@ -0,0 +1,60 @@
+
+package org.zkoss.zktest.test2.Z65
+
+import org.zkoss.ztl.Tags
+import org.zkoss.zstl.ZTL4ScalaTestCase
+
+@Tags(tags = "Z65-Flex-019.zul,Flex")
+class Z65_Flex_019Test extends ZTL4ScalaTestCase {
+
+def testClick() = {
+ val zscript = """<zk><hbox>
+ <window border="normal" height="360px"
+ title="minimum Flex: [Groupbox, Hlayout]" width="480px">
+ <hlayout vflex="min" width="200px">
+ <groupbox hflex="1" vflex="1">
+ <div height="100%" style="background:yellow" width="100%">
+ <label value="1"/>
+ </div>
+ </groupbox>
+ <groupbox height="60px" hflex="1">
+ <div height="100%" style="background:cyan" width="100%">
+ <label value="1"/>
+ </div>
+ </groupbox>
+ <groupbox height="100px" hflex="1">
+ <div height="100%" style="background:red" width="100%">
+ <label value="1"/>
+ </div>
+ </groupbox>
+ </hlayout>
+ </window>
+ <window border="normal" height="360px"
+ title="minimum Flex: [Groupbox, Hbox]" width="480px">
+ <hbox vflex="min" width="200px">
+ <groupbox hflex="1" vflex="1">
+ <div height="100%" style="background:yellow" width="100%">
+ <label value="1"/>
+ </div>
+ </groupbox>
+ <groupbox height="60px" hflex="1">
+ <div height="100%" style="background:cyan" width="100%">
+ <label value="1"/>
+ </div>
+ </groupbox>
+ <groupbox height="100px" hflex="1">
+ <div height="100%" style="background:red" width="100%">
+ <label value="1"/>
+ </div>
+ </groupbox>
+ </hbox>
+ </window>
+</hbox>
+</zk>"""
+ runZTL(zscript,
+ () => {
+ verifyImage()
+ })
+
+ }
+}
View
60 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_020Test.scala
@@ -0,0 +1,60 @@
+
+package org.zkoss.zktest.test2.Z65
+
+import org.zkoss.ztl.Tags
+import org.zkoss.zstl.ZTL4ScalaTestCase
+
+@Tags(tags = "Z65-Flex-020.zul,Flex")
+class Z65_Flex_020Test extends ZTL4ScalaTestCase {
+
+def testClick() = {
+ val zscript = """<zk><hbox>
+ <window border="normal" height="360px"
+ title="minimum Flex: [Groupbox, Vlayout]" width="480px">
+ <vlayout height="200px" hflex="min">
+ <groupbox hflex="1" vflex="1">
+ <div height="100%" style="background:yellow" width="100%">
+ <label value="1"/>
+ </div>
+ </groupbox>
+ <groupbox vflex="1" width="75px">
+ <div height="100%" style="background:cyan" width="100%">
+ <label value="1"/>
+ </div>
+ </groupbox>
+ <groupbox vflex="1" width="120px">
+ <div height="100%" style="background:red" width="100%">
+ <label value="1"/>
+ </div>
+ </groupbox>
+ </vlayout>
+ </window>
+ <window border="normal" height="360px"
+ title="minimum Flex: [Groupbox, Vbox]" width="480px">
+ <vbox height="200px" hflex="min">
+ <groupbox hflex="1" vflex="1">
+ <div height="100%" style="background:yellow" width="100%">
+ <label value="1"/>
+ </div>
+ </groupbox>
+ <groupbox vflex="1" width="75px">
+ <div height="100%" style="background:cyan" width="100%">
+ <label value="1"/>
+ </div>
+ </groupbox>
+ <groupbox vflex="1" width="120px">
+ <div height="100%" style="background:red" width="100%">
+ <label value="1"/>
+ </div>
+ </groupbox>
+ </vbox>
+ </window>
+</hbox>
+</zk>"""
+ runZTL(zscript,
+ () => {
+ verifyImage()
+ })
+
+ }
+}
View
33 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_021Test.scala
@@ -0,0 +1,33 @@
+
+package org.zkoss.zktest.test2.Z65
+
+import org.zkoss.ztl.Tags
+import org.zkoss.zstl.ZTL4ScalaTestCase
+
+@Tags(tags = "Z65-Flex-021.zul,Flex")
+class Z65_Flex_021Test extends ZTL4ScalaTestCase {
+
+def testClick() = {
+ val zscript = """<zk><window border="normal" height="360px"
+ title="Fit-the-Rest Flexibility: [Tabbox]" width="480px">
+ <tabbox vflex="1">
+ <tabs>
+ <tab label="case"/>
+ </tabs>
+ <tabpanels>
+ <tabpanel>
+ <div height="100%" style="background:yellow" width="100%">
+ <label value="1"/>
+ </div>
+ </tabpanel>
+ </tabpanels>
+ </tabbox>
+</window>
+</zk>"""
+ runZTL(zscript,
+ () => {
+ verifyImage()
+ })
+
+ }
+}
View
78 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_022Test.scala
@@ -0,0 +1,78 @@
+
+package org.zkoss.zktest.test2.Z65
+
+import org.zkoss.ztl.Tags
+import org.zkoss.zstl.ZTL4ScalaTestCase
+
+@Tags(tags = "Z65-Flex-022.zul,Flex")
+class Z65_Flex_022Test extends ZTL4ScalaTestCase {
+
+def testClick() = {
+ val zscript = """<zk><hbox>
+ <window border="normal" height="360px"
+ title="Proportional Flexibility: [Tabbox, Hlayout]" width="480px">
+ <hlayout height="200px" width="200px">
+ <tabbox hflex="1" vflex="1">
+ <tabs>
+ <tab label="case"/>
+ </tabs>
+ <tabpanels>
+ <tabpanel>
+ <div height="100%" style="background:cyan" width="100%">
+ <label value="1"/>
+ </div>
+ </tabpanel>
+ </tabpanels>
+ </tabbox>
+ <tabbox hflex="2" vflex="1">
+ <tabs>
+ <tab label="case"/>
+ </tabs>
+ <tabpanels>
+ <tabpanel>
+ <div height="100%" style="background:yellow" width="100%">
+ <label value="1"/>
+ </div>
+ </tabpanel>
+ </tabpanels>
+ </tabbox>
+ </hlayout>
+ </window>
+ <window border="normal" height="360px"
+ title="Proportional Flexibility: [Tabbox, Hbox]" width="480px">
+ <hbox height="200px" width="200px">
+ <tabbox hflex="1" vflex="1">
+ <tabs>
+ <tab label="case"/>
+ </tabs>
+ <tabpanels>
+ <tabpanel>
+ <div height="100%" style="background:cyan" width="100%">
+ <label value="1"/>
+ </div>
+ </tabpanel>
+ </tabpanels>
+ </tabbox>
+ <tabbox hflex="2" vflex="1">
+ <tabs>
+ <tab label="case"/>
+ </tabs>
+ <tabpanels>
+ <tabpanel>
+ <div height="100%" style="background:yellow" width="100%">
+ <label value="1"/>
+ </div>
+ </tabpanel>
+ </tabpanels>
+ </tabbox>
+ </hbox>
+ </window>
+</hbox>
+</zk>"""
+ runZTL(zscript,
+ () => {
+ verifyImage()
+ })
+
+ }
+}
View
78 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_023Test.scala
@@ -0,0 +1,78 @@
+
+package org.zkoss.zktest.test2.Z65
+
+import org.zkoss.ztl.Tags
+import org.zkoss.zstl.ZTL4ScalaTestCase
+
+@Tags(tags = "Z65-Flex-023.zul,Flex")
+class Z65_Flex_023Test extends ZTL4ScalaTestCase {
+
+def testClick() = {
+ val zscript = """<zk><hbox>
+ <window border="normal" height="360px"
+ title="Proportional Flexibility: [Tabbox, Vlayout]" width="480px">
+ <vlayout height="200px" width="200px">
+ <tabbox hflex="1" vflex="1">
+ <tabs>
+ <tab label="case"/>
+ </tabs>
+ <tabpanels>
+ <tabpanel>
+ <div height="100%" style="background:cyan" width="100%">
+ <label value="1"/>
+ </div>
+ </tabpanel>
+ </tabpanels>
+ </tabbox>
+ <tabbox hflex="1" vflex="2">
+ <tabs>
+ <tab label="case"/>
+ </tabs>
+ <tabpanels>
+ <tabpanel>
+ <div height="100%" style="background:yellow" width="100%">
+ <label value="1"/>
+ </div>
+ </tabpanel>
+ </tabpanels>
+ </tabbox>
+ </vlayout>
+ </window>
+ <window border="normal" height="360px"
+ title="Proportional Flexibility: [Tabbox, Vbox]" width="480px">
+ <vbox height="200px" width="200px">
+ <tabbox hflex="1" vflex="1">
+ <tabs>
+ <tab label="case"/>
+ </tabs>
+ <tabpanels>
+ <tabpanel>
+ <div height="100%" style="background:cyan" width="100%">
+ <label value="1"/>
+ </div>
+ </tabpanel>
+ </tabpanels>
+ </tabbox>
+ <tabbox hflex="1" vflex="2">
+ <tabs>
+ <tab label="case"/>
+ </tabs>
+ <tabpanels>
+ <tabpanel>
+ <div height="100%" style="background:yellow" width="100%">
+ <label value="1"/>
+ </div>
+ </tabpanel>
+ </tabpanels>
+ </tabbox>
+ </vbox>
+ </window>
+</hbox>
+</zk>"""
+ runZTL(zscript,
+ () => {
+ verifyImage()
+ })
+
+ }
+}
View
102 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_024Test.scala
@@ -0,0 +1,102 @@
+
+package org.zkoss.zktest.test2.Z65
+
+import org.zkoss.ztl.Tags
+import org.zkoss.zstl.ZTL4ScalaTestCase
+
+@Tags(tags = "Z65-Flex-024.zul,Flex")
+class Z65_Flex_024Test extends ZTL4ScalaTestCase {
+
+def testClick() = {
+ val zscript = """<zk><hbox>
+ <window border="normal" height="360px"
+ title="minimum Flex: [Tabbox, Hlayout]" width="480px">
+ <hlayout vflex="min" width="200px">
+ <tabbox hflex="1" vflex="1">
+ <tabs>
+ <tab label="case"/>
+ </tabs>
+ <tabpanels>
+ <tabpanel>
+ <div height="100%" style="background:yellow" width="100%">
+ <label value="1"/>
+ </div>
+ </tabpanel>
+ </tabpanels>
+ </tabbox>
+ <tabbox height="60px" hflex="1">
+ <tabs>
+ <tab label="case"/>
+ </tabs>
+ <tabpanels>
+ <tabpanel>
+ <div height="100%" style="background:cyan" width="100%">
+ <label value="1"/>
+ </div>
+ </tabpanel>
+ </tabpanels>
+ </tabbox>
+ <tabbox height="100px" hflex="1">
+ <tabs>
+ <tab label="case"/>
+ </tabs>
+ <tabpanels>
+ <tabpanel>
+ <div height="100%" style="background:red" width="100%">
+ <label value="1"/>
+ </div>
+ </tabpanel>
+ </tabpanels>
+ </tabbox>
+ </hlayout>
+ </window>
+ <window border="normal" height="360px"
+ title="minimum Flex: [Tabbox, Hbox]" width="480px">
+ <hbox vflex="min" width="200px">
+ <tabbox hflex="1" vflex="1">
+ <tabs>
+ <tab label="case"/>
+ </tabs>
+ <tabpanels>
+ <tabpanel>
+ <div height="100%" style="background:yellow" width="100%">
+ <label value="1"/>
+ </div>
+ </tabpanel>
+ </tabpanels>
+ </tabbox>
+ <tabbox height="60px" hflex="1">
+ <tabs>
+ <tab label="case"/>
+ </tabs>
+ <tabpanels>
+ <tabpanel>
+ <div height="100%" style="background:cyan" width="100%">
+ <label value="1"/>
+ </div>
+ </tabpanel>
+ </tabpanels>
+ </tabbox>
+ <tabbox height="100px" hflex="1">
+ <tabs>
+ <tab label="case"/>
+ </tabs>
+ <tabpanels>
+ <tabpanel>
+ <div height="100%" style="background:red" width="100%">
+ <label value="1"/>
+ </div>
+ </tabpanel>
+ </tabpanels>
+ </tabbox>
+ </hbox>
+ </window>
+</hbox>
+</zk>"""
+ runZTL(zscript,
+ () => {
+ verifyImage()
+ })
+
+ }
+}
View
102 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_025Test.scala
@@ -0,0 +1,102 @@
+
+package org.zkoss.zktest.test2.Z65
+
+import org.zkoss.ztl.Tags
+import org.zkoss.zstl.ZTL4ScalaTestCase
+
+@Tags(tags = "Z65-Flex-025.zul,Flex")
+class Z65_Flex_025Test extends ZTL4ScalaTestCase {
+
+def testClick() = {
+ val zscript = """<zk><hbox>
+ <window border="normal" height="360px"
+ title="minimum Flex: [Tabbox, Vlayout]" width="480px">
+ <vlayout height="200px" hflex="min">
+ <tabbox hflex="1" vflex="1">
+ <tabs>
+ <tab label="case"/>
+ </tabs>
+ <tabpanels>
+ <tabpanel>
+ <div height="100%" style="background:yellow" width="100%">
+ <label value="1"/>
+ </div>
+ </tabpanel>
+ </tabpanels>
+ </tabbox>
+ <tabbox vflex="1" width="75px">
+ <tabs>
+ <tab label="case"/>
+ </tabs>
+ <tabpanels>
+ <tabpanel>
+ <div height="100%" style="background:cyan" width="100%">
+ <label value="1"/>
+ </div>
+ </tabpanel>
+ </tabpanels>
+ </tabbox>
+ <tabbox vflex="1" width="120px">
+ <tabs>
+ <tab label="case"/>
+ </tabs>
+ <tabpanels>
+ <tabpanel>
+ <div height="100%" style="background:red" width="100%">
+ <label value="1"/>
+ </div>
+ </tabpanel>
+ </tabpanels>
+ </tabbox>
+ </vlayout>
+ </window>
+ <window border="normal" height="360px"
+ title="minimum Flex: [Tabbox, Vbox]" width="480px">
+ <vbox height="200px" hflex="min">
+ <tabbox hflex="1" vflex="1">
+ <tabs>
+ <tab label="case"/>
+ </tabs>
+ <tabpanels>
+ <tabpanel>
+ <div height="100%" style="background:yellow" width="100%">
+ <label value="1"/>
+ </div>
+ </tabpanel>
+ </tabpanels>
+ </tabbox>
+ <tabbox vflex="1" width="75px">
+ <tabs>
+ <tab label="case"/>
+ </tabs>
+ <tabpanels>
+ <tabpanel>
+ <div height="100%" style="background:cyan" width="100%">
+ <label value="1"/>
+ </div>
+ </tabpanel>
+ </tabpanels>
+ </tabbox>
+ <tabbox vflex="1" width="120px">
+ <tabs>
+ <tab label="case"/>
+ </tabs>
+ <tabpanels>
+ <tabpanel>
+ <div height="100%" style="background:red" width="100%">
+ <label value="1"/>
+ </div>
+ </tabpanel>
+ </tabpanels>
+ </tabbox>
+ </vbox>
+ </window>
+</hbox>
+</zk>"""
+ runZTL(zscript,
+ () => {
+ verifyImage()
+ })
+
+ }
+}
View
29 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_026Test.scala
@@ -0,0 +1,29 @@
+
+package org.zkoss.zktest.test2.Z65
+
+import org.zkoss.ztl.Tags
+import org.zkoss.zstl.ZTL4ScalaTestCase
+
+@Tags(tags = "Z65-Flex-026.zul,Flex")
+class Z65_Flex_026Test extends ZTL4ScalaTestCase {
+
+def testClick() = {
+ val zscript = """<zk><window border="normal" height="360px"
+ title="Fit-the-Rest Flexibility: [Hlayout]" width="480px">
+ <hlayout vflex="1" width="200px">
+ <div hflex="1" style="background:cyan" vflex="1">
+ <label value="1"/>
+ </div>
+ <div hflex="2" style="background:yellow" vflex="1">
+ <label value="1"/>
+ </div>
+ </hlayout>
+</window>
+</zk>"""
+ runZTL(zscript,
+ () => {
+ verifyImage()
+ })
+
+ }
+}
View
62 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_027Test.scala
@@ -0,0 +1,62 @@
+
+package org.zkoss.zktest.test2.Z65
+
+import org.zkoss.ztl.Tags
+import org.zkoss.zstl.ZTL4ScalaTestCase
+
+@Tags(tags = "Z65-Flex-027.zul,Flex")
+class Z65_Flex_027Test extends ZTL4ScalaTestCase {
+
+def testClick() = {
+ val zscript = """<zk><hbox>
+ <window border="normal" height="360px"
+ title="Proportional Flexibility: [Hlayout, Hlayout]" width="480px">
+ <hlayout height="200px" width="200px">
+ <hlayout hflex="1" vflex="1">
+ <div hflex="1" style="background:cyan" vflex="1">
+ <label value="1"/>
+ </div>
+ <div hflex="2" style="background:yellow" vflex="1">
+ <label value="1"/>
+ </div>
+ </hlayout>
+ <hlayout hflex="2" vflex="1">
+ <div hflex="1" style="background:cyan" vflex="1">
+ <label value="1"/>
+ </div>
+ <div hflex="2" style="background:yellow" vflex="1">
+ <label value="1"/>
+ </div>
+ </hlayout>
+ </hlayout>
+ </window>
+ <window border="normal" height="360px"
+ title="Proportional Flexibility: [Hlayout, Hbox]" width="480px">
+ <hbox height="200px" width="200px">
+ <hlayout hflex="1" vflex="1">
+ <div hflex="1" style="background:cyan" vflex="1">
+ <label value="1"/>
+ </div>
+ <div hflex="2" style="background:yellow" vflex="1">
+ <label value="1"/>
+ </div>
+ </hlayout>
+ <hlayout hflex="2" vflex="1">
+ <div hflex="1" style="background:cyan" vflex="1">
+ <label value="1"/>
+ </div>
+ <div hflex="2" style="background:yellow" vflex="1">
+ <label value="1"/>
+ </div>
+ </hlayout>
+ </hbox>
+ </window>
+</hbox>
+</zk>"""
+ runZTL(zscript,
+ () => {
+ verifyImage()
+ })
+
+ }
+}
View
62 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_028Test.scala
@@ -0,0 +1,62 @@
+
+package org.zkoss.zktest.test2.Z65
+
+import org.zkoss.ztl.Tags
+import org.zkoss.zstl.ZTL4ScalaTestCase
+
+@Tags(tags = "Z65-Flex-028.zul,Flex")
+class Z65_Flex_028Test extends ZTL4ScalaTestCase {
+
+def testClick() = {
+ val zscript = """<zk><hbox>
+ <window border="normal" height="360px"
+ title="Proportional Flexibility: [Hlayout, Vlayout]" width="480px">
+ <vlayout height="200px" width="200px">
+ <hlayout hflex="1" vflex="1">
+ <div hflex="1" style="background:cyan" vflex="1">
+ <label value="1"/>
+ </div>
+ <div hflex="2" style="background:yellow" vflex="1">
+ <label value="1"/>
+ </div>
+ </hlayout>
+ <hlayout hflex="1" vflex="2">
+ <div hflex="1" style="background:cyan" vflex="1">
+ <label value="1"/>
+ </div>
+ <div hflex="2" style="background:yellow" vflex="1">
+ <label value="1"/>
+ </div>
+ </hlayout>
+ </vlayout>
+ </window>
+ <window border="normal" height="360px"
+ title="Proportional Flexibility: [Hlayout, Vbox]" width="480px">
+ <vbox height="200px" width="200px">
+ <hlayout hflex="1" vflex="1">
+ <div hflex="1" style="background:cyan" vflex="1">
+ <label value="1"/>
+ </div>
+ <div hflex="2" style="background:yellow" vflex="1">
+ <label value="1"/>
+ </div>
+ </hlayout>
+ <hlayout hflex="1" vflex="2">
+ <div hflex="1" style="background:cyan" vflex="1">
+ <label value="1"/>
+ </div>
+ <div hflex="2" style="background:yellow" vflex="1">
+ <label value="1"/>
+ </div>
+ </hlayout>
+ </vbox>
+ </window>
+</hbox>
+</zk>"""
+ runZTL(zscript,
+ () => {
+ verifyImage()
+ })
+
+ }
+}
View
78 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_029Test.scala
@@ -0,0 +1,78 @@
+
+package org.zkoss.zktest.test2.Z65
+
+import org.zkoss.ztl.Tags
+import org.zkoss.zstl.ZTL4ScalaTestCase
+
+@Tags(tags = "Z65-Flex-029.zul,Flex")
+class Z65_Flex_029Test extends ZTL4ScalaTestCase {
+
+def testClick() = {
+ val zscript = """<zk><hbox>
+ <window border="normal" height="360px"
+ title="minimum Flex: [Hlayout, Hlayout]" width="480px">
+ <hlayout vflex="min" width="200px">
+ <hlayout hflex="1" vflex="1">
+ <div hflex="1" style="background:cyan" vflex="1">
+ <label value="1"/>
+ </div>
+ <div hflex="2" style="background:yellow" vflex="1">
+ <label value="1"/>
+ </div>
+ </hlayout>
+ <hlayout height="60px" hflex="1">
+ <div hflex="1" style="background:cyan" vflex="1">
+ <label value="1"/>
+ </div>
+ <div hflex="2" style="background:yellow" vflex="1">
+ <label value="1"/>
+ </div>
+ </hlayout>
+ <hlayout height="100px" hflex="1">
+ <div hflex="1" style="background:cyan" vflex="1">
+ <label value="1"/>
+ </div>
+ <div hflex="2" style="background:yellow" vflex="1">
+ <label value="1"/>
+ </div>
+ </hlayout>
+ </hlayout>
+ </window>
+ <window border="normal" height="360px"
+ title="minimum Flex: [Hlayout, Hbox]" width="480px">
+ <hbox vflex="min" width="200px">
+ <hlayout hflex="1" vflex="1">
+ <div hflex="1" style="background:cyan" vflex="1">
+ <label value="1"/>
+ </div>
+ <div hflex="2" style="background:yellow" vflex="1">
+ <label value="1"/>
+ </div>
+ </hlayout>
+ <hlayout height="60px" hflex="1">
+ <div hflex="1" style="background:cyan" vflex="1">
+ <label value="1"/>
+ </div>
+ <div hflex="2" style="background:yellow" vflex="1">
+ <label value="1"/>
+ </div>
+ </hlayout>
+ <hlayout height="100px" hflex="1">
+ <div hflex="1" style="background:cyan" vflex="1">
+ <label value="1"/>
+ </div>
+ <div hflex="2" style="background:yellow" vflex="1">
+ <label value="1"/>
+ </div>
+ </hlayout>
+ </hbox>
+ </window>
+</hbox>
+</zk>"""
+ runZTL(zscript,
+ () => {
+ verifyImage()
+ })
+
+ }
+}
View
78 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_030Test.scala
@@ -0,0 +1,78 @@
+
+package org.zkoss.zktest.test2.Z65
+
+import org.zkoss.ztl.Tags
+import org.zkoss.zstl.ZTL4ScalaTestCase
+
+@Tags(tags = "Z65-Flex-030.zul,Flex")
+class Z65_Flex_030Test extends ZTL4ScalaTestCase {
+
+def testClick() = {
+ val zscript = """<zk><hbox>
+ <window border="normal" height="360px"
+ title="minimum Flex: [Hlayout, Vlayout]" width="480px">
+ <vlayout height="200px" hflex="min">
+ <hlayout hflex="1" vflex="1">
+ <div hflex="1" style="background:cyan" vflex="1">
+ <label value="1"/>
+ </div>
+ <div hflex="2" style="background:yellow" vflex="1">
+ <label value="1"/>
+ </div>
+ </hlayout>
+ <hlayout vflex="1" width="75px">
+ <div hflex="1" style="background:cyan" vflex="1">
+ <label value="1"/>
+ </div>
+ <div hflex="2" style="background:yellow" vflex="1">
+ <label value="1"/>
+ </div>
+ </hlayout>
+ <hlayout vflex="1" width="120px">
+ <div hflex="1" style="background:cyan" vflex="1">
+ <label value="1"/>
+ </div>
+ <div hflex="2" style="background:yellow" vflex="1">
+ <label value="1"/>
+ </div>
+ </hlayout>
+ </vlayout>
+ </window>
+ <window border="normal" height="360px"
+ title="minimum Flex: [Hlayout, Vbox]" width="480px">
+ <vbox height="200px" hflex="min">
+ <hlayout hflex="1" vflex="1">
+ <div hflex="1" style="background:cyan" vflex="1">
+ <label value="1"/>
+ </div>
+ <div hflex="2" style="background:yellow" vflex="1">
+ <label value="1"/>
+ </div>
+ </hlayout>
+ <hlayout vflex="1" width="75px">
+ <div hflex="1" style="background:cyan" vflex="1">
+ <label value="1"/>
+ </div>
+ <div hflex="2" style="background:yellow" vflex="1">
+ <label value="1"/>
+ </div>
+ </hlayout>
+ <hlayout vflex="1" width="120px">
+ <div hflex="1" style="background:cyan" vflex="1">
+ <label value="1"/>
+ </div>
+ <div hflex="2" style="background:yellow" vflex="1">
+ <label value="1"/>
+ </div>
+ </hlayout>
+ </vbox>
+ </window>
+</hbox>
+</zk>"""
+ runZTL(zscript,
+ () => {
+ verifyImage()
+ })
+
+ }
+}
View
29 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_031Test.scala
@@ -0,0 +1,29 @@
+
+package org.zkoss.zktest.test2.Z65
+
+import org.zkoss.ztl.Tags
+import org.zkoss.zstl.ZTL4ScalaTestCase
+
+@Tags(tags = "Z65-Flex-031.zul,Flex")
+class Z65_Flex_031Test extends ZTL4ScalaTestCase {
+
+def testClick() = {
+ val zscript = """<zk><window border="normal" height="360px"
+ title="Fit-the-Rest Flexibility: [Hbox]" width="480px">
+ <hbox vflex="1" width="200px">
+ <div hflex="1" style="background:cyan" vflex="1">
+ <label value="1"/>
+ </div>
+ <div hflex="2" style="background:yellow" vflex="1">
+ <label value="1"/>
+ </div>
+ </hbox>
+</window>
+</zk>"""
+ runZTL(zscript,
+ () => {
+ verifyImage()
+ })
+
+ }
+}
View
62 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_032Test.scala
@@ -0,0 +1,62 @@
+
+package org.zkoss.zktest.test2.Z65
+
+import org.zkoss.ztl.Tags
+import org.zkoss.zstl.ZTL4ScalaTestCase
+
+@Tags(tags = "Z65-Flex-032.zul,Flex")
+class Z65_Flex_032Test extends ZTL4ScalaTestCase {
+
+def testClick() = {
+ val zscript = """<zk><hbox>
+ <window border="normal" height="360px"
+ title="Proportional Flexibility: [Hbox, Hlayout]" width="480px">
+ <hlayout height="200px" width="200px">
+ <hbox hflex="1" vflex="1">
+ <div hflex="1" style="background:cyan" vflex="1">
+ <label value="1"/>
+ </div>
+ <div hflex="2" style="background:yellow" vflex="1">
+ <label value="1"/>
+ </div>
+ </hbox>
+ <hbox hflex="2" vflex="1">
+ <div hflex="1" style="background:cyan" vflex="1">
+ <label value="1"/>
+ </div>
+ <div hflex="2" style="background:yellow" vflex="1">
+ <label value="1"/>
+ </div>
+ </hbox>
+ </hlayout>
+ </window>
+ <window border="normal" height="360px"
+ title="Proportional Flexibility: [Hbox, Hbox]" width="480px">
+ <hbox height="200px" width="200px">
+ <hbox hflex="1" vflex="1">
+ <div hflex="1" style="background:cyan" vflex="1">
+ <label value="1"/>
+ </div>
+ <div hflex="2" style="background:yellow" vflex="1">
+ <label value="1"/>
+ </div>
+ </hbox>
+ <hbox hflex="2" vflex="1">
+ <div hflex="1" style="background:cyan" vflex="1">
+ <label value="1"/>
+ </div>
+ <div hflex="2" style="background:yellow" vflex="1">
+ <label value="1"/>
+ </div>
+ </hbox>
+ </hbox>
+ </window>
+</hbox>
+</zk>"""
+ runZTL(zscript,
+ () => {
+ verifyImage()
+ })
+
+ }
+}
View
62 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_033Test.scala
@@ -0,0 +1,62 @@
+
+package org.zkoss.zktest.test2.Z65
+
+import org.zkoss.ztl.Tags
+import org.zkoss.zstl.ZTL4ScalaTestCase
+
+@Tags(tags = "Z65-Flex-033.zul,Flex")
+class Z65_Flex_033Test extends ZTL4ScalaTestCase {
+
+def testClick() = {
+ val zscript = """<zk><hbox>
+ <window border="normal" height="360px"
+ title="Proportional Flexibility: [Hbox, Vlayout]" width="480px">
+ <vlayout height="200px" width="200px">
+ <hbox hflex="1" vflex="1">
+ <div hflex="1" style="background:cyan" vflex="1">
+ <label value="1"/>
+ </div>
+ <div hflex="2" style="background:yellow" vflex="1">
+ <label value="1"/>
+ </div>
+ </hbox>
+ <hbox hflex="1" vflex="2">
+ <div hflex="1" style="background:cyan" vflex="1">
+ <label value="1"/>
+ </div>
+ <div hflex="2" style="background:yellow" vflex="1">
+ <label value="1"/>
+ </div>
+ </hbox>
+ </vlayout>
+ </window>
+ <window border="normal" height="360px"
+ title="Proportional Flexibility: [Hbox, Vbox]" width="480px">
+ <vbox height="200px" width="200px">
+ <hbox hflex="1" vflex="1">
+ <div hflex="1" style="background:cyan" vflex="1">
+ <label value="1"/>
+ </div>
+ <div hflex="2" style="background:yellow" vflex="1">
+ <label value="1"/>
+ </div>
+ </hbox>
+ <hbox hflex="1" vflex="2">
+ <div hflex="1" style="background:cyan" vflex="1">
+ <label value="1"/>
+ </div>
+ <div hflex="2" style="background:yellow" vflex="1">
+ <label value="1"/>
+ </div>
+ </hbox>
+ </vbox>
+ </window>
+</hbox>
+</zk>"""
+ runZTL(zscript,
+ () => {
+ verifyImage()
+ })
+
+ }
+}
View
78 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_034Test.scala
@@ -0,0 +1,78 @@
+
+package org.zkoss.zktest.test2.Z65
+
+import org.zkoss.ztl.Tags
+import org.zkoss.zstl.ZTL4ScalaTestCase
+
+@Tags(tags = "Z65-Flex-034.zul,Flex")
+class Z65_Flex_034Test extends ZTL4ScalaTestCase {
+
+def testClick() = {
+ val zscript = """<zk><hbox>
+ <window border="normal" height="360px"
+ title="minimum Flex: [Hbox, Hlayout]" width="480px">
+ <hlayout vflex="min" width="200px">
+ <hbox hflex="1" vflex="1">
+ <div hflex="1" style="background:cyan" vflex="1">
+ <label value="1"/>
+ </div>
+ <div hflex="2" style="background:yellow" vflex="1">
+ <label value="1"/>
+ </div>
+ </hbox>
+ <hbox height="60px" hflex="1">
+ <div hflex="1" style="background:cyan" vflex="1">
+ <label value="1"/>
+ </div>
+ <div hflex="2" style="background:yellow" vflex="1">
+ <label value="1"/>
+ </div>
+ </hbox>
+ <hbox height="100px" hflex="1">
+ <div hflex="1" style="background:cyan" vflex="1">
+ <label value="1"/>
+ </div>
+ <div hflex="2" style="background:yellow" vflex="1">
+ <label value="1"/>
+ </div>
+ </hbox>
+ </hlayout>
+ </window>
+ <window border="normal" height="360px"
+ title="minimum Flex: [Hbox, Hbox]" width="480px">
+ <hbox vflex="min" width="200px">
+ <hbox hflex="1" vflex="1">
+ <div hflex="1" style="background:cyan" vflex="1">
+ <label value="1"/>
+ </div>
+ <div hflex="2" style="background:yellow" vflex="1">
+ <label value="1"/>
+ </div>
+ </hbox>
+ <hbox height="60px" hflex="1">
+ <div hflex="1" style="background:cyan" vflex="1">
+ <label value="1"/>
+ </div>
+ <div hflex="2" style="background:yellow" vflex="1">
+ <label value="1"/>
+ </div>
+ </hbox>
+ <hbox height="100px" hflex="1">
+ <div hflex="1" style="background:cyan" vflex="1">
+ <label value="1"/>
+ </div>
+ <div hflex="2" style="background:yellow" vflex="1">
+ <label value="1"/>
+ </div>
+ </hbox>
+ </hbox>
+ </window>
+</hbox>
+</zk>"""
+ runZTL(zscript,
+ () => {
+ verifyImage()
+ })
+
+ }
+}
View
78 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_035Test.scala
@@ -0,0 +1,78 @@
+
+package org.zkoss.zktest.test2.Z65
+
+import org.zkoss.ztl.Tags
+import org.zkoss.zstl.ZTL4ScalaTestCase
+
+@Tags(tags = "Z65-Flex-035.zul,Flex")
+class Z65_Flex_035Test extends ZTL4ScalaTestCase {
+
+def testClick() = {
+ val zscript = """<zk><hbox>
+ <window border="normal" height="360px"
+ title="minimum Flex: [Hbox, Vlayout]" width="480px">
+ <vlayout height="200px" hflex="min">
+ <hbox hflex="1" vflex="1">
+ <div hflex="1" style="background:cyan" vflex="1">
+ <label value="1"/>
+ </div>
+ <div hflex="2" style="background:yellow" vflex="1">
+ <label value="1"/>
+ </div>
+ </hbox>
+ <hbox vflex="1" width="75px">
+ <div hflex="1" style="background:cyan" vflex="1">
+ <label value="1"/>
+ </div>
+ <div hflex="2" style="background:yellow" vflex="1">
+ <label value="1"/>
+ </div>
+ </hbox>
+ <hbox vflex="1" width="120px">
+ <div hflex="1" style="background:cyan" vflex="1">
+ <label value="1"/>
+ </div>
+ <div hflex="2" style="background:yellow" vflex="1">
+ <label value="1"/>
+ </div>
+ </hbox>
+ </vlayout>
+ </window>
+ <window border="normal" height="360px"
+ title="minimum Flex: [Hbox, Vbox]" width="480px">
+ <vbox height="200px" hflex="min">
+ <hbox hflex="1" vflex="1">
+ <div hflex="1" style="background:cyan" vflex="1">
+ <label value="1"/>
+ </div>
+ <div hflex="2" style="background:yellow" vflex="1">
+ <label value="1"/>
+ </div>
+ </hbox>
+ <hbox vflex="1" width="75px">
+ <div hflex="1" style="background:cyan" vflex="1">
+ <label value="1"/>
+ </div>
+ <div hflex="2" style="background:yellow" vflex="1">
+ <label value="1"/>
+ </div>
+ </hbox>
+ <hbox vflex="1" width="120px">
+ <div hflex="1" style="background:cyan" vflex="1">
+ <label value="1"/>
+ </div>
+ <div hflex="2" style="background:yellow" vflex="1">
+ <label value="1"/>
+ </div>
+ </hbox>
+ </vbox>
+ </window>
+</hbox>
+</zk>"""
+ runZTL(zscript,
+ () => {
+ verifyImage()
+ })
+
+ }
+}
View
29 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_036Test.scala
@@ -0,0 +1,29 @@
+
+package org.zkoss.zktest.test2.Z65
+
+import org.zkoss.ztl.Tags
+import org.zkoss.zstl.ZTL4ScalaTestCase
+
+@Tags(tags = "Z65-Flex-036.zul,Flex")
+class Z65_Flex_036Test extends ZTL4ScalaTestCase {
+
+def testClick() = {
+ val zscript = """<zk><window border="normal" height="360px"
+ title="Fit-the-Rest Flexibility: [Vlayout]" width="480px">
+ <vlayout vflex="1" width="200px">
+ <div hflex="1" style="background:cyan" vflex="1">
+ <label value="1"/>
+ </div>
+ <div hflex="1" style="background:yellow" vflex="2">
+ <label value="1"/>
+ </div>
+ </vlayout>
+</window>
+</zk>"""
+ runZTL(zscript,
+ () => {
+ verifyImage()
+ })
+
+ }
+}
View
62 zstl/vision-test/org/zkoss/zktest/test2/Z65/Z65_Flex_037Test.scala
@@ -0,0 +1,62 @@
+
+package org.zkoss.zktest.test2.Z65
+
+import org.zkoss.ztl.Tags
+import org.zkoss.zstl.ZTL4ScalaTestCase
+
+@Tags(tags = "Z65-Flex-037.zul,Flex")
+class Z65_Flex_037Test extends ZTL4ScalaTestCase {
+
+def testClick() = {
+ val zscript = """<zk><hbox>
+ <window border="normal" height="360px"
+ title="Proportional Flexibility: [Vlayout, Hlayout]" width="480px">
+ <hlayout height="200px" width="200px">
+ <vlayout hflex="1" vflex="1">
+ <div hflex="1" style="background:cyan" vflex="1">
+ <label value="1"/>
+ </div>