# HG changeset patch # User Pavel Tisnovsky # Date 1454322119 -3600 # Node ID 0642bcdfa44ad0e1f430b7f6b21281b04b50b1e6 # Parent 501c75daf75ea121c8dd56fd0f9be273d7ce5589 Added eight new tests into BitBltUsingBgColor. diff -r 501c75daf75e -r 0642bcdfa44a ChangeLog --- a/ChangeLog Mon Jan 18 11:24:12 2016 +0100 +++ b/ChangeLog Mon Feb 01 11:21:59 2016 +0100 @@ -1,3 +1,8 @@ +2016-02-01 Pavel Tisnovsky + + * src/org/gfxtest/testsuites/BitBltUsingBgColor.java: + Added eight new tests into BitBltUsingBgColor. + 2016-01-18 Pavel Tisnovsky * src/org/gfxtest/testsuites/BitBltUsingBgColor.java: diff -r 501c75daf75e -r 0642bcdfa44a src/org/gfxtest/testsuites/BitBltUsingBgColor.java --- a/src/org/gfxtest/testsuites/BitBltUsingBgColor.java Mon Jan 18 11:24:12 2016 +0100 +++ b/src/org/gfxtest/testsuites/BitBltUsingBgColor.java Mon Feb 01 11:21:59 2016 +0100 @@ -15616,6 +15616,126 @@ } /** + * Test basic BitBlt operation for diagonal grid buffered image with type {@link BufferedImage#TYPE_BYTE_GRAY}. + * Background color is set to Color.black. + * + * @param image + * image to be used as a destination for BitBlt-type operations + * @param graphics2d + * graphics canvas + * @return test result status - PASSED, FAILED or ERROR + */ + public TestResult testBitBltDiagonalGridBufferedImageTypeByteGrayBackgroundBlack(TestImage image, Graphics2D graphics2d) + { + return doBitBltDiagonalGridBufferedImageTypeByteGray(image, graphics2d, Color.black); + } + + /** + * Test basic BitBlt operation for diagonal grid buffered image with type {@link BufferedImage#TYPE_BYTE_GRAY}. + * Background color is set to Color.blue. + * + * @param image + * image to be used as a destination for BitBlt-type operations + * @param graphics2d + * graphics canvas + * @return test result status - PASSED, FAILED or ERROR + */ + public TestResult testBitBltDiagonalGridBufferedImageTypeByteGrayBackgroundBlue(TestImage image, Graphics2D graphics2d) + { + return doBitBltDiagonalGridBufferedImageTypeByteGray(image, graphics2d, Color.blue); + } + + /** + * Test basic BitBlt operation for diagonal grid buffered image with type {@link BufferedImage#TYPE_BYTE_GRAY}. + * Background color is set to Color.green. + * + * @param image + * image to be used as a destination for BitBlt-type operations + * @param graphics2d + * graphics canvas + * @return test result status - PASSED, FAILED or ERROR + */ + public TestResult testBitBltDiagonalGridBufferedImageTypeByteGrayBackgroundGreen(TestImage image, Graphics2D graphics2d) + { + return doBitBltDiagonalGridBufferedImageTypeByteGray(image, graphics2d, Color.green); + } + + /** + * Test basic BitBlt operation for diagonal grid buffered image with type {@link BufferedImage#TYPE_BYTE_GRAY}. + * Background color is set to Color.cyan. + * + * @param image + * image to be used as a destination for BitBlt-type operations + * @param graphics2d + * graphics canvas + * @return test result status - PASSED, FAILED or ERROR + */ + public TestResult testBitBltDiagonalGridBufferedImageTypeByteGrayBackgroundCyan(TestImage image, Graphics2D graphics2d) + { + return doBitBltDiagonalGridBufferedImageTypeByteGray(image, graphics2d, Color.cyan); + } + + /** + * Test basic BitBlt operation for diagonal grid buffered image with type {@link BufferedImage#TYPE_BYTE_GRAY}. + * Background color is set to Color.red. + * + * @param image + * image to be used as a destination for BitBlt-type operations + * @param graphics2d + * graphics canvas + * @return test result status - PASSED, FAILED or ERROR + */ + public TestResult testBitBltDiagonalGridBufferedImageTypeByteGrayBackgroundRed(TestImage image, Graphics2D graphics2d) + { + return doBitBltDiagonalGridBufferedImageTypeByteGray(image, graphics2d, Color.red); + } + + /** + * Test basic BitBlt operation for diagonal grid buffered image with type {@link BufferedImage#TYPE_BYTE_GRAY}. + * Background color is set to Color.magenta. + * + * @param image + * image to be used as a destination for BitBlt-type operations + * @param graphics2d + * graphics canvas + * @return test result status - PASSED, FAILED or ERROR + */ + public TestResult testBitBltDiagonalGridBufferedImageTypeByteGrayBackgroundMagenta(TestImage image, Graphics2D graphics2d) + { + return doBitBltDiagonalGridBufferedImageTypeByteGray(image, graphics2d, Color.magenta); + } + + /** + * Test basic BitBlt operation for diagonal grid buffered image with type {@link BufferedImage#TYPE_BYTE_GRAY}. + * Background color is set to Color.yellow. + * + * @param image + * image to be used as a destination for BitBlt-type operations + * @param graphics2d + * graphics canvas + * @return test result status - PASSED, FAILED or ERROR + */ + public TestResult testBitBltDiagonalGridBufferedImageTypeByteGrayBackgroundYellow(TestImage image, Graphics2D graphics2d) + { + return doBitBltDiagonalGridBufferedImageTypeByteGray(image, graphics2d, Color.yellow); + } + + /** + * Test basic BitBlt operation for diagonal grid buffered image with type {@link BufferedImage#TYPE_BYTE_GRAY}. + * Background color is set to Color.white. + * + * @param image + * image to be used as a destination for BitBlt-type operations + * @param graphics2d + * graphics canvas + * @return test result status - PASSED, FAILED or ERROR + */ + public TestResult testBitBltDiagonalGridBufferedImageTypeByteGrayBackgroundWhite(TestImage image, Graphics2D graphics2d) + { + return doBitBltDiagonalGridBufferedImageTypeByteGray(image, graphics2d, Color.white); + } + + /** * Entry point to the test suite. * * @param args not used in this case