# HG changeset patch # User Pavel Tisnovsky # Date 1459762693 -7200 # Node ID e299d6ba28dc5867e818d56b6194fd4d99bfea78 # Parent c6f1824b44a5c760f657f03c3cda7ebf8115ed0f New tests added into BitBltConvolveOp. diff -r c6f1824b44a5 -r e299d6ba28dc ChangeLog --- a/ChangeLog Thu Mar 24 15:35:16 2016 +0100 +++ b/ChangeLog Mon Apr 04 11:38:13 2016 +0200 @@ -1,3 +1,8 @@ +2016-04-04 Pavel Tisnovsky + + * src/org/gfxtest/testsuites/BitBltConvolveOp.java: + New tests added into BitBltConvolveOp. + 2016-03-24 Pavel Tisnovsky * src/org/gfxtest/testsuites/BitBltConvolveOp.java: diff -r c6f1824b44a5 -r e299d6ba28dc src/org/gfxtest/testsuites/BitBltConvolveOp.java --- a/src/org/gfxtest/testsuites/BitBltConvolveOp.java Thu Mar 24 15:35:16 2016 +0100 +++ b/src/org/gfxtest/testsuites/BitBltConvolveOp.java Mon Apr 04 11:38:13 2016 +0200 @@ -1,7 +1,7 @@ /* Java gfx-test framework - Copyright (C) 2012, 2013 Red Hat + Copyright (C) 2012, 2013, 2014, 2015, 2016 Red Hat This file is part of IcedTea. @@ -284,6 +284,146 @@ } /** + * Test basic BitBlt operation for empty buffered image with type {@link BufferedImage#TYPE_3BYTE_BGR}. + * + * @param image + * image used as a destination for BitBlt-type operations + * @param graphics2d + * graphics canvas + * @return test result status - PASSED, FAILED or ERROR + */ + public TestResult testBitBltEmptyBufferedImageTypeByteBinarybackgroundNoOpKernel1x1ROP(TestImage image, Graphics2D graphics2d) + { + return doBitBltEmptyBufferedImageTypeByteBinary(image, graphics2d, noopKernel1x1ROP); + } + + /** + * Test basic BitBlt operation for empty buffered image with type {@link BufferedImage#TYPE_3BYTE_BGR}. + * + * @param image + * image used as a destination for BitBlt-type operations + * @param graphics2d + * graphics canvas + * @return test result status - PASSED, FAILED or ERROR + */ + public TestResult testBitBltEmptyBufferedImageTypeByteBinarybackgroundNoOpKernel3x3ROP(TestImage image, Graphics2D graphics2d) + { + return doBitBltEmptyBufferedImageTypeByteBinary(image, graphics2d, noopKernel3x3ROP); + } + + /** + * Test basic BitBlt operation for empty buffered image with type {@link BufferedImage#TYPE_3BYTE_BGR}. + * + * @param image + * image used as a destination for BitBlt-type operations + * @param graphics2d + * graphics canvas + * @return test result status - PASSED, FAILED or ERROR + */ + public TestResult testBitBltEmptyBufferedImageTypeByteBinarybackgroundNoOpKernel5x5ROP(TestImage image, Graphics2D graphics2d) + { + return doBitBltEmptyBufferedImageTypeByteBinary(image, graphics2d, noopKernel5x5ROP); + } + + /** + * Test basic BitBlt operation for empty buffered image with type {@link BufferedImage#TYPE_3BYTE_BGR}. + * + * @param image + * image used as a destination for BitBlt-type operations + * @param graphics2d + * graphics canvas + * @return test result status - PASSED, FAILED or ERROR + */ + public TestResult testBitBltEmptyBufferedImageTypeByteBinarybackgroundSmoothingKernel2x2ROP(TestImage image, Graphics2D graphics2d) + { + return doBitBltEmptyBufferedImageTypeByteBinary(image, graphics2d, smoothingKernel2x2ROP); + } + + /** + * Test basic BitBlt operation for empty buffered image with type {@link BufferedImage#TYPE_3BYTE_BGR}. + * + * @param image + * image used as a destination for BitBlt-type operations + * @param graphics2d + * graphics canvas + * @return test result status - PASSED, FAILED or ERROR + */ + public TestResult testBitBltEmptyBufferedImageTypeByteBinarybackgroundSmoothingKernel2x23x3ROP(TestImage image, Graphics2D graphics2d) + { + return doBitBltEmptyBufferedImageTypeByteBinary(image, graphics2d, smoothingKernel3x3ROP); + } + + /** + * Test basic BitBlt operation for empty buffered image with type {@link BufferedImage#TYPE_3BYTE_BGR}. + * + * @param image + * image used as a destination for BitBlt-type operations + * @param graphics2d + * graphics canvas + * @return test result status - PASSED, FAILED or ERROR + */ + public TestResult testBitBltEmptyBufferedImageTypeByteBinarybackgroundSmoothingKernel2x25x5ROP(TestImage image, Graphics2D graphics2d) + { + return doBitBltEmptyBufferedImageTypeByteBinary(image, graphics2d, smoothingKernel5x5ROP); + } + + /** + * Test basic BitBlt operation for empty buffered image with type {@link BufferedImage#TYPE_3BYTE_BGR}. + * + * @param image + * image used as a destination for BitBlt-type operations + * @param graphics2d + * graphics canvas + * @return test result status - PASSED, FAILED or ERROR + */ + public TestResult testBitBltEmptyBufferedImageTypeByteBinarybackgroundSobelOperatorGxROP(TestImage image, Graphics2D graphics2d) + { + return doBitBltEmptyBufferedImageTypeByteBinary(image, graphics2d, sobelOperatorGxROP); + } + + /** + * Test basic BitBlt operation for empty buffered image with type {@link BufferedImage#TYPE_3BYTE_BGR}. + * + * @param image + * image used as a destination for BitBlt-type operations + * @param graphics2d + * graphics canvas + * @return test result status - PASSED, FAILED or ERROR + */ + public TestResult testBitBltEmptyBufferedImageTypeByteBinarybackgroundSobelOperatorGyROP(TestImage image, Graphics2D graphics2d) + { + return doBitBltEmptyBufferedImageTypeByteBinary(image, graphics2d, sobelOperatorGyROP); + } + + /** + * Test basic BitBlt operation for empty buffered image with type {@link BufferedImage#TYPE_3BYTE_BGR}. + * + * @param image + * image used as a destination for BitBlt-type operations + * @param graphics2d + * graphics canvas + * @return test result status - PASSED, FAILED or ERROR + */ + public TestResult testBitBltEmptyBufferedImageTypeByteBinarybackgroundLaplaceOperatorROP(TestImage image, Graphics2D graphics2d) + { + return doBitBltEmptyBufferedImageTypeByteBinary(image, graphics2d, laplaceOperatorROP); + } + + /** + * Test basic BitBlt operation for empty buffered image with type {@link BufferedImage#TYPE_3BYTE_BGR}. + * + * @param image + * image used as a destination for BitBlt-type operations + * @param graphics2d + * graphics canvas + * @return test result status - PASSED, FAILED or ERROR + */ + public TestResult testBitBltEmptyBufferedImageTypeByteBinarybackgroundLaplaceOperatorDiagROP(TestImage image, Graphics2D graphics2d) + { + return doBitBltEmptyBufferedImageTypeByteBinary(image, graphics2d, laplaceOperatorDiagROP); + } + + /** * Test basic BitBlt operation for empty buffered image with type {@link BufferedImage#TYPE_4BYTE_ABGR}. * * @param image