5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. Oracle designates this
8 * particular file as subject to the "Classpath" exception as provided
9 * by Oracle in the LICENSE file that accompanied this code.
10 *
11 * This code is distributed in the hope that it will be useful, but WITHOUT
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 * version 2 for more details (a copy is included in the LICENSE file that
15 * accompanied this code).
16 *
17 * You should have received a copy of the GNU General Public License version
18 * 2 along with this work; if not, write to the Free Software Foundation,
19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
21 * or visit www.oracle.com if you need additional information or have any
22 * questions.
23 */
24
25 package javafx.scene.layout;
26
27 import org.junit.Test;
28
29 /**
30 */
31 public class RegionBorderImageUITest extends RegionUITestBase {
32 @Test public void dummy() {
33
34 }
35 // @Test(timeout=20000)
36 // public void test() {
37 // setStyle(
38 // "-fx-border-image-source: url('javafx/scene/layout/border.png');" +
39 // "-fx-border-image-slice: 10;" +
40 // "-fx-border-image-width: 10;" +
41 // "-fx-border-image-repeat: round;");
42 //
43 // System.out.println("WHAT");
44 // }
45 //
46 // @Test(timeout=20000)
47 // public void test2() {
48 // setStyle(
49 // "-fx-border-image-source: url('javafx/scene/layout/border.png');" +
50 // "-fx-border-image-slice: 10;" +
51 // "-fx-border-image-width: 10;" +
52 // "-fx-border-image-repeat: repeat;");
53 //
54 // System.out.println("WHAT");
55 // }
56 //
57 // @Test(timeout=20000)
58 // public void test3() {
59 // setStyle(
60 // "-fx-border-image-source: url('javafx/scene/layout/border-uneven.png');" +
61 // "-fx-border-image-slice: 11;" +
62 // "-fx-border-image-width: 11;" +
63 // "-fx-border-image-repeat: space;");
64 //
65 // System.out.println("WHAT");
66 // }
67 //
68 @Test(timeout=20000)
69 public void test4() {
70 setStyle(
71 "-fx-border-image-source: url('javafx/scene/layout/border-stretch.png');" +
72 "-fx-border-image-slice: 14;" +
73 "-fx-border-image-width: 14;" +
74 "-fx-border-image-repeat: stretch;");
75
76 System.out.println("WHAT");
77 }
78
79 // @Test(timeout=20000)
80 // public void differentSliceAndWidths() {
81 // setStyle(
82 // "-fx-border-image-source: url('javafx/scene/layout/border.png');" +
83 // "-fx-border-color:green;" +
84 // "-fx-border-image-repeat: repeat;" +
85 // "-fx-border-image-slice: 27;" +
86 // "-fx-border-image-width: 10 15 20 25;");
87 // }
88 //
89 // @Test(timeout=20000)
90 // public void repeatX() {
91 // setStyle("-fx-border-image-source: url('javafx/scene/layout/border.png');" +
92 // "-fx-border-image-repeat: repeat-x;" +
93 // "-fx-border-image-slice: 28;" +
94 // "-fx-border-image-width: 28;");
95 // }
96 //
97 // @Test(timeout=20000)
98 // public void repeatY() {
99 // setStyle("-fx-border-image-source: url('javafx/scene/layout/border.png');" +
100 // "-fx-border-image-repeat: repeat-y;" +
101 // "-fx-border-image-slice: 28;" +
102 // "-fx-border-image-width: 28;");
103 // }
104 //
105 // @Test(timeout=20000)
106 // public void testWider() {
107 // setStyle(
108 // "-fx-border-image-source: url('javafx/scene/layout/border.png');" +
109 // "-fx-border-image-slice: 27;" +
110 // "-fx-border-image-width: 40;" +
111 // "-fx-border-image-repeat: round;");
112 // }
113 //
114 // @Test(timeout=20000)
115 // public void testWider2() {
116 // setStyle(
117 // "-fx-border-image-source: url('javafx/scene/layout/border.png');" +
118 // "-fx-border-image-slice: 27;" +
119 // "-fx-border-image-width: 40;" +
120 // "-fx-border-image-repeat: repeat;");
121 // }
122 //
123 // @Test(timeout=20000)
124 // public void testWider3() {
125 // setStyle(
126 // "-fx-border-image-source: url('javafx/scene/layout/border.png');" +
127 // "-fx-border-image-slice: 27;" +
128 // "-fx-border-image-width: 40;" +
129 // "-fx-border-image-repeat: space;");
130 // }
131 //
132 // @Test(timeout=20000)
133 // public void testWider4() {
134 // setStyle(
135 // "-fx-border-image-source: url('javafx/scene/layout/border.png');" +
136 // "-fx-border-image-slice: 27;" +
137 // "-fx-border-image-width: 40;" +
138 // "-fx-border-image-repeat: stretch;");
139 // }
140 //
141 // @Test(timeout=20000)
142 // public void repeatXWider() {
143 // setStyle("-fx-border-image-source: url('javafx/scene/layout/border.png');" +
144 // "-fx-border-image-repeat: repeat-x;" +
145 // "-fx-border-image-slice: 28;" +
146 // "-fx-border-image-width: 40;");
147 // }
148 //
149 // @Test(timeout=20000)
150 // public void repeatYWider() {
151 // setStyle("-fx-border-image-source: url('javafx/scene/layout/border.png');" +
152 // "-fx-border-image-repeat: repeat-y;" +
153 // "-fx-border-image-slice: 28;" +
154 // "-fx-border-image-width: 40;");
155 // }
156
157 // @Test(timeout=20000)
158 // public void withInsets() {
159 // setStyle(
160 // "-fx-border-image-source: url('javafx/scene/layout/popover-no-arrow-empty.png');" +
161 // "-fx-border-image-slice: 78 50 60 50;" +
162 // "-fx-border-image-width: 78 50 60 50;");
163 // }
164 //
165 // @Test(timeout=20000)
166 // public void withInsets2() {
167 // setStyle(
168 // "-fx-border-image-source: url('javafx/scene/layout/popover-no-arrow-empty.png');" +
169 // "-fx-border-image-slice: 78 50 60 50;" +
170 // "-fx-border-image-width: 78 50 60 50;" +
171 // "-fx-border-image-insets: -27 -37 -47 -37;");
172 // }
173 //
174 // @Test(timeout=20000)
175 // public void button() {
176 // setStyle(
177 // "-fx-border-image-source: url('javafx/scene/layout/BlackButton.png');" +
178 // "-fx-border-image-slice: 25 95 25 95 fill;" +
179 // "-fx-border-image-width: 25 95 25 95;" +
180 // "-fx-border-image-repeat: stretch;");
181 // }
182 }
|
5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. Oracle designates this
8 * particular file as subject to the "Classpath" exception as provided
9 * by Oracle in the LICENSE file that accompanied this code.
10 *
11 * This code is distributed in the hope that it will be useful, but WITHOUT
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 * version 2 for more details (a copy is included in the LICENSE file that
15 * accompanied this code).
16 *
17 * You should have received a copy of the GNU General Public License version
18 * 2 along with this work; if not, write to the Free Software Foundation,
19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
21 * or visit www.oracle.com if you need additional information or have any
22 * questions.
23 */
24
25 package test.robot.javafx.scene.layout;
26
27 import org.junit.Test;
28
29 /**
30 */
31 public class RegionBorderImageUITest extends RegionUITestBase {
32 @Test public void dummy() {
33
34 }
35 // @Test(timeout=20000)
36 // public void test() {
37 // setStyle(
38 // "-fx-border-image-source: url('test/robot/javafx/scene/layout/border.png');" +
39 // "-fx-border-image-slice: 10;" +
40 // "-fx-border-image-width: 10;" +
41 // "-fx-border-image-repeat: round;");
42 //
43 // System.out.println("WHAT");
44 // }
45 //
46 // @Test(timeout=20000)
47 // public void test2() {
48 // setStyle(
49 // "-fx-border-image-source: url('test/robot/javafx/scene/layout/border.png');" +
50 // "-fx-border-image-slice: 10;" +
51 // "-fx-border-image-width: 10;" +
52 // "-fx-border-image-repeat: repeat;");
53 //
54 // System.out.println("WHAT");
55 // }
56 //
57 // @Test(timeout=20000)
58 // public void test3() {
59 // setStyle(
60 // "-fx-border-image-source: url('test/robot/javafx/scene/layout/border-uneven.png');" +
61 // "-fx-border-image-slice: 11;" +
62 // "-fx-border-image-width: 11;" +
63 // "-fx-border-image-repeat: space;");
64 //
65 // System.out.println("WHAT");
66 // }
67 //
68 @Test(timeout=20000)
69 public void test4() {
70 setStyle(
71 "-fx-border-image-source: url('test/robot/javafx/scene/layout/border-stretch.png');" +
72 "-fx-border-image-slice: 14;" +
73 "-fx-border-image-width: 14;" +
74 "-fx-border-image-repeat: stretch;");
75
76 System.out.println("WHAT");
77 }
78
79 // @Test(timeout=20000)
80 // public void differentSliceAndWidths() {
81 // setStyle(
82 // "-fx-border-image-source: url('test/robot/javafx/scene/layout/border.png');" +
83 // "-fx-border-color:green;" +
84 // "-fx-border-image-repeat: repeat;" +
85 // "-fx-border-image-slice: 27;" +
86 // "-fx-border-image-width: 10 15 20 25;");
87 // }
88 //
89 // @Test(timeout=20000)
90 // public void repeatX() {
91 // setStyle("-fx-border-image-source: url('test/robot/javafx/scene/layout/border.png');" +
92 // "-fx-border-image-repeat: repeat-x;" +
93 // "-fx-border-image-slice: 28;" +
94 // "-fx-border-image-width: 28;");
95 // }
96 //
97 // @Test(timeout=20000)
98 // public void repeatY() {
99 // setStyle("-fx-border-image-source: url('test/robot/javafx/scene/layout/border.png');" +
100 // "-fx-border-image-repeat: repeat-y;" +
101 // "-fx-border-image-slice: 28;" +
102 // "-fx-border-image-width: 28;");
103 // }
104 //
105 // @Test(timeout=20000)
106 // public void testWider() {
107 // setStyle(
108 // "-fx-border-image-source: url('test/robot/javafx/scene/layout/border.png');" +
109 // "-fx-border-image-slice: 27;" +
110 // "-fx-border-image-width: 40;" +
111 // "-fx-border-image-repeat: round;");
112 // }
113 //
114 // @Test(timeout=20000)
115 // public void testWider2() {
116 // setStyle(
117 // "-fx-border-image-source: url('test/robot/javafx/scene/layout/border.png');" +
118 // "-fx-border-image-slice: 27;" +
119 // "-fx-border-image-width: 40;" +
120 // "-fx-border-image-repeat: repeat;");
121 // }
122 //
123 // @Test(timeout=20000)
124 // public void testWider3() {
125 // setStyle(
126 // "-fx-border-image-source: url('test/robot/javafx/scene/layout/border.png');" +
127 // "-fx-border-image-slice: 27;" +
128 // "-fx-border-image-width: 40;" +
129 // "-fx-border-image-repeat: space;");
130 // }
131 //
132 // @Test(timeout=20000)
133 // public void testWider4() {
134 // setStyle(
135 // "-fx-border-image-source: url('test/robot/javafx/scene/layout/border.png');" +
136 // "-fx-border-image-slice: 27;" +
137 // "-fx-border-image-width: 40;" +
138 // "-fx-border-image-repeat: stretch;");
139 // }
140 //
141 // @Test(timeout=20000)
142 // public void repeatXWider() {
143 // setStyle("-fx-border-image-source: url('test/robot/javafx/scene/layout/border.png');" +
144 // "-fx-border-image-repeat: repeat-x;" +
145 // "-fx-border-image-slice: 28;" +
146 // "-fx-border-image-width: 40;");
147 // }
148 //
149 // @Test(timeout=20000)
150 // public void repeatYWider() {
151 // setStyle("-fx-border-image-source: url('test/robot/javafx/scene/layout/border.png');" +
152 // "-fx-border-image-repeat: repeat-y;" +
153 // "-fx-border-image-slice: 28;" +
154 // "-fx-border-image-width: 40;");
155 // }
156
157 // @Test(timeout=20000)
158 // public void withInsets() {
159 // setStyle(
160 // "-fx-border-image-source: url('test/robot/javafx/scene/layout/popover-no-arrow-empty.png');" +
161 // "-fx-border-image-slice: 78 50 60 50;" +
162 // "-fx-border-image-width: 78 50 60 50;");
163 // }
164 //
165 // @Test(timeout=20000)
166 // public void withInsets2() {
167 // setStyle(
168 // "-fx-border-image-source: url('test/robot/javafx/scene/layout/popover-no-arrow-empty.png');" +
169 // "-fx-border-image-slice: 78 50 60 50;" +
170 // "-fx-border-image-width: 78 50 60 50;" +
171 // "-fx-border-image-insets: -27 -37 -47 -37;");
172 // }
173 //
174 // @Test(timeout=20000)
175 // public void button() {
176 // setStyle(
177 // "-fx-border-image-source: url('test/robot/javafx/scene/layout/BlackButton.png');" +
178 // "-fx-border-image-slice: 25 95 25 95 fill;" +
179 // "-fx-border-image-width: 25 95 25 95;" +
180 // "-fx-border-image-repeat: stretch;");
181 // }
182 }
|