/hg/gfx-test: 2 new changesets
ptisnovs at icedtea.classpath.org
ptisnovs at icedtea.classpath.org
Fri May 15 11:11:39 UTC 2015
changeset 3e7bdaa38cc5 in /hg/gfx-test
details: http://icedtea.classpath.org/hg/gfx-test?cmd=changeset;node=3e7bdaa38cc5
author: Pavel Tisnovsky <ptisnovs at redhat.com>
date: Fri May 15 13:12:41 2015 +0200
Added javadoc.
changeset 1a38c30f5d4f in /hg/gfx-test
details: http://icedtea.classpath.org/hg/gfx-test?cmd=changeset;node=1a38c30f5d4f
author: Pavel Tisnovsky <ptisnovs at redhat.com>
date: Fri May 15 13:14:02 2015 +0200
Added new tests into BitBltUsingBgColor.
diffstat:
ChangeLog | 10 +
src/org/gfxtest/reporter/Reporter.java | 8 +-
src/org/gfxtest/testsuites/BitBltUsingBgColor.java | 165 +++++++++++++++++++++
3 files changed, 182 insertions(+), 1 deletions(-)
diffs (249 lines):
diff -r 23c6953f59ed -r 1a38c30f5d4f ChangeLog
--- a/ChangeLog Thu May 14 11:12:50 2015 +0200
+++ b/ChangeLog Fri May 15 13:14:02 2015 +0200
@@ -1,3 +1,13 @@
+2015-05-15 Pavel Tisnovsky <ptisnovs at redhat.com>
+
+ * src/org/gfxtest/testsuites/BitBltUsingBgColor.java:
+ Added new tests into BitBltUsingBgColor.
+
+2015-05-15 Pavel Tisnovsky <ptisnovs at redhat.com>
+
+ * src/org/gfxtest/reporter/Reporter.java:
+ Added javadoc.
+
2015-05-14 Pavel Tisnovsky <ptisnovs at redhat.com>
* src/org/gfxtest/testsuites/BitBltUsingBgColor.java:
diff -r 23c6953f59ed -r 1a38c30f5d4f src/org/gfxtest/reporter/Reporter.java
--- a/src/org/gfxtest/reporter/Reporter.java Thu May 14 11:12:50 2015 +0200
+++ b/src/org/gfxtest/reporter/Reporter.java Fri May 15 13:14:02 2015 +0200
@@ -1,7 +1,7 @@
/*
Java gfx-test framework
- Copyright (C) 2010, 2011, 2012 Red Hat
+ Copyright (C) 2010, 2011, 2012, 2013, 2014, 2015 Red Hat
This file is part of IcedTea.
@@ -261,10 +261,12 @@
*/
private void writeTestResult(BufferedWriter output, TestResult testResult, String testSuiteName) throws IOException
{
+ // if test result is missing, the corresponding field should be properly highlighted
if (testResult == null)
{
output.write("<td style='color:red'>×</td>");
}
+ // if test result is present, create link to it
else
{
output.write(String.format("<td><a href='%s/results.html'>%s</a></td>", testSuiteName, testResult.toString()));
@@ -281,6 +283,7 @@
private void writeHtmlHeader(BufferedReader input, BufferedWriter output) throws IOException
{
String line;
+ // write HTML header up to the specified placeholder
while( (line = input.readLine())!=null && !"${RESULT}".equals(line.trim()))
{
output.write(line);
@@ -298,6 +301,7 @@
private void writeHtmlFooter(BufferedReader input, BufferedWriter output) throws IOException
{
String line;
+ // write HTML footer that does not contain any placeholders
while( (line = input.readLine())!=null)
{
output.write(line);
@@ -319,6 +323,7 @@
{
return results;
}
+ // read all previous results and put them into the map
for (String resultDir : inputDir.list())
{
File dir = new File(inputDir, resultDir);
@@ -361,6 +366,7 @@
this.log.logSet(testNode.getNodeName(), ""+i);
Element patternNode = (Element) testNode.getElementsByTagName("pattern").item(0);
+ // check if images are the same or not
String result = patternNode.getAttribute("result");
this.log.logSet("result", result);
totalTests ++;
diff -r 23c6953f59ed -r 1a38c30f5d4f src/org/gfxtest/testsuites/BitBltUsingBgColor.java
--- a/src/org/gfxtest/testsuites/BitBltUsingBgColor.java Thu May 14 11:12:50 2015 +0200
+++ b/src/org/gfxtest/testsuites/BitBltUsingBgColor.java Fri May 15 13:14:02 2015 +0200
@@ -8536,6 +8536,171 @@
}
/**
+ * Test basic BitBlt operation for empty buffered image with type {@link BufferedImage#TYPE_INT_ARGB}.
+ * 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 testBitBltEmptyBufferedImageTypeIntARGBbackgroundBlack(TestImage image, Graphics2D graphics2d)
+ {
+ return doBitBltEmptyBufferedImageTypeIntARGB(image, graphics2d, Color.black);
+ }
+
+ /**
+ * Test basic BitBlt operation for empty buffered image with type {@link BufferedImage#TYPE_INT_ARGB}.
+ * 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 testBitBltEmptyBufferedImageTypeIntARGBbackgroundBlue(TestImage image, Graphics2D graphics2d)
+ {
+ return doBitBltEmptyBufferedImageTypeIntARGB(image, graphics2d, Color.blue);
+ }
+
+ /**
+ * Test basic BitBlt operation for empty buffered image with type {@link BufferedImage#TYPE_INT_ARGB}.
+ * 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 testBitBltEmptyBufferedImageTypeIntARGBbackgroundGreen(TestImage image, Graphics2D graphics2d)
+ {
+ return doBitBltEmptyBufferedImageTypeIntARGB(image, graphics2d, Color.green);
+ }
+
+ /**
+ * Test basic BitBlt operation for empty buffered image with type {@link BufferedImage#TYPE_INT_ARGB}.
+ * 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 testBitBltEmptyBufferedImageTypeIntARGBbackgroundCyan(TestImage image, Graphics2D graphics2d)
+ {
+ return doBitBltEmptyBufferedImageTypeIntARGB(image, graphics2d, Color.cyan);
+ }
+
+ /**
+ * Test basic BitBlt operation for empty buffered image with type {@link BufferedImage#TYPE_INT_ARGB}.
+ * 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 testBitBltEmptyBufferedImageTypeIntARGBbackgroundRed(TestImage image, Graphics2D graphics2d)
+ {
+ return doBitBltEmptyBufferedImageTypeIntARGB(image, graphics2d, Color.red);
+ }
+
+ /**
+ * Test basic BitBlt operation for empty buffered image with type {@link BufferedImage#TYPE_INT_ARGB}.
+ * 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 testBitBltEmptyBufferedImageTypeIntARGBbackgroundMagenta(TestImage image, Graphics2D graphics2d)
+ {
+ return doBitBltEmptyBufferedImageTypeIntARGB(image, graphics2d, Color.magenta);
+ }
+
+ /**
+ * Test basic BitBlt operation for empty buffered image with type {@link BufferedImage#TYPE_INT_ARGB}.
+ * 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 testBitBltEmptyBufferedImageTypeIntARGBbackgroundYellow(TestImage image, Graphics2D graphics2d)
+ {
+ return doBitBltEmptyBufferedImageTypeIntARGB(image, graphics2d, Color.yellow);
+ }
+
+ /**
+ * Test basic BitBlt operation for empty buffered image with type {@link BufferedImage#TYPE_INT_ARGB}.
+ * 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 testBitBltEmptyBufferedImageTypeIntARGBbackgroundWhite(TestImage image, Graphics2D graphics2d)
+ {
+ return doBitBltEmptyBufferedImageTypeIntARGB(image, graphics2d, Color.white);
+ }
+
+ /**
+ * Test basic BitBlt operation for empty buffered image with type {@link BufferedImage#TYPE_INT_ARGB_PRE}.
+ * 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 testBitBltEmptyBufferedImageTypeIntARGB_Pre_backgroundBlack(TestImage image, Graphics2D graphics2d)
+ {
+ return doBitBltEmptyBufferedImageTypeIntARGB_Pre(image, graphics2d, Color.black);
+ }
+
+ /**
+ * Test basic BitBlt operation for empty buffered image with type {@link BufferedImage#TYPE_INT_ARGB_PRE}.
+ * 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 testBitBltEmptyBufferedImageTypeIntARGB_Pre_backgroundBlue(TestImage image, Graphics2D graphics2d)
+ {
+ return doBitBltEmptyBufferedImageTypeIntARGB_Pre(image, graphics2d, Color.blue);
+ }
+
+ /**
+ * Test basic BitBlt operation for empty buffered image with type {@link BufferedImage#TYPE_INT_ARGB_PRE}.
+ * 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 testBitBltEmptyBufferedImageTypeIntARGB_Pre_backgroundGreen(TestImage image, Graphics2D graphics2d)
+ {
+ return doBitBltEmptyBufferedImageTypeIntARGB_Pre(image, graphics2d, Color.green);
+ }
+
+ /**
* Test basic BitBlt operation for empty buffered image with type TYPE_4BYTE_ABGR_Pre.
* Background color is set to Color.black.
*
More information about the distro-pkg-dev
mailing list