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 *
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 * or visit www.oracle.com if you need additional information or have any
23 * questions.
24 */
25
26 package javafx.scene.canvas;
27
28 import javafx.scene.NodeTest;
29 import javafx.scene.effect.BlendMode;
30 import javafx.scene.paint.Color;
31 import javafx.scene.shape.ArcType;
32 import javafx.scene.shape.StrokeLineCap;
33 import javafx.scene.shape.StrokeLineJoin;
34 import javafx.scene.transform.Affine;
35 import javafx.scene.transform.Rotate;
36 import javafx.scene.transform.Transform;
37 import org.junit.Test;
38 import static org.junit.Assert.*;
39
40 public class CanvasTest {
41
42 @Test public void testPropertyPropagation_visible() throws Exception {
43 final Canvas node = new Canvas();
44 NodeTest.testBooleanPropertyPropagation(node, "visible", false, true);
45 }
46
47 // @Test public void testPropertyPropagation_x() throws Exception {
48 // final Canvas node = new Canvas();
49 // NodeTest.testDoublePropertyPropagation(node, "x", 100, 200);
50 // }
51 //
52 // @Test public void testPropertyPropagation_y() throws Exception {
53 // final Canvas node = new Canvas();
54 // NodeTest.testDoublePropertyPropagation(node, "y", 100, 200);
55 // }
56
57 @Test public void testInitCanvas() throws Exception {
58 final Canvas node = new Canvas();
59 }
60
61 @Test public void testGetGC() throws Exception {
|
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 *
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 * or visit www.oracle.com if you need additional information or have any
23 * questions.
24 */
25
26 package javafx.scene.canvas;
27
28 import com.sun.javafx.FXUnit;
29 import javafx.scene.NodeTest;
30 import javafx.scene.effect.BlendMode;
31 import javafx.scene.paint.Color;
32 import javafx.scene.shape.ArcType;
33 import javafx.scene.shape.StrokeLineCap;
34 import javafx.scene.shape.StrokeLineJoin;
35 import javafx.scene.transform.Affine;
36 import javafx.scene.transform.Rotate;
37 import javafx.scene.transform.Transform;
38 import org.junit.Rule;
39 import org.junit.Test;
40 import static org.junit.Assert.*;
41
42 public class CanvasTest {
43
44 @Rule
45 public FXUnit fx = new FXUnit();
46
47 @Test public void testPropertyPropagation_visible() throws Exception {
48 final Canvas node = new Canvas();
49 NodeTest.testBooleanPropertyPropagation(node, "visible", false, true);
50 }
51
52 // @Test public void testPropertyPropagation_x() throws Exception {
53 // final Canvas node = new Canvas();
54 // NodeTest.testDoublePropertyPropagation(node, "x", 100, 200);
55 // }
56 //
57 // @Test public void testPropertyPropagation_y() throws Exception {
58 // final Canvas node = new Canvas();
59 // NodeTest.testDoublePropertyPropagation(node, "y", 100, 200);
60 // }
61
62 @Test public void testInitCanvas() throws Exception {
63 final Canvas node = new Canvas();
64 }
65
66 @Test public void testGetGC() throws Exception {
|