--- old/modules/javafx.graphics/src/test/java/test/javafx/scene/canvas/CanvasTest.java 2018-11-15 20:03:47.381068312 +0530 +++ new/modules/javafx.graphics/src/test/java/test/javafx/scene/canvas/CanvasTest.java 2018-11-15 20:03:47.245000312 +0530 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2010, 2015, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2010, 2018, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -49,6 +49,8 @@ import static org.junit.Assert.assertArrayEquals; import static org.junit.Assert.assertNull; import static org.junit.Assert.assertNotNull; +import static org.junit.Assert.assertTrue; +import static org.junit.Assert.assertFalse; public class CanvasTest { @@ -463,6 +465,16 @@ assertEquals(BlendMode.ADD, gc.getGlobalBlendMode()); } + @Test public void testGCState_ImageSmoothing() { + assertTrue("Image smoothing should be enabled by default.", gc.isImageSmoothing()); + // Disable image smoothing. + gc.setImageSmoothing(false); + assertFalse("Image smoothing should be disabled.", gc.isImageSmoothing()); + // Reset image smoothing to true. + gc.setImageSmoothing(true); + assertTrue("Image smoothing should be enabled.", gc.isImageSmoothing()); + } + @Test public void testGCappendSVGPath_Null() { gc.appendSVGPath("m 0 0"); gc.appendSVGPath("Q 150 -300 300 0");