svn commit: r1843507 - /xmlgraphics/fop/trunk/fop-core/src/test/java/org/apache/fop/pdf/PDFResourcesTestCase.java
[email protected] Wed, 10 Oct 2018 20:29:11 -0000
| Newsgroups | gmane.text.xml.fop.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: matthias
Date: Wed Oct 10 20:29:11 2018
New Revision: 1843507
URL: http://svn.apache.org/viewvc?rev=1843507&view=rev
Log:
FOP-2818: fix failing test
Modified:
xmlgraphics/fop/trunk/fop-core/src/test/java/org/apache/fop/pdf/PDFResourcesTestCase.java
Modified: xmlgraphics/fop/trunk/fop-core/src/test/java/org/apache/fop/pdf/PDFResourcesTestCase.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/fop-core/src/test/java/org/apache/fop/pdf/PDFResourcesTestCase.java?rev=1843507&r1=1843506&r2=1843507&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/fop-core/src/test/java/org/apache/fop/pdf/PDFResourcesTestCase.java (original)
+++ xmlgraphics/fop/trunk/fop-core/src/test/java/org/apache/fop/pdf/PDFResourcesTestCase.java Wed Oct 10 20:29:11 2018
@@ -108,13 +108,13 @@ public class PDFResourcesTestCase {
PDFDocument pdfDoc = new PDFDocument(null);
PDFResources res = new PDFResources(pdfDoc);
PDFDictionary shadingDict = new PDFDictionary();
- shadingDict.put("Sh1-1718006973", new PDFReference("9 0"));
+ shadingDict.put("Sh1-1718006973", new PDFReference("9 0 R"));
res.put("Shading", shadingDict);
PDFDictionary patternDict = new PDFDictionary();
- patternDict.put("Pa1-1718006973", new PDFReference("10 0"));
+ patternDict.put("Pa1-1718006973", new PDFReference("10 0 R"));
res.put("Pattern", patternDict);
PDFDictionary colorSpaceDict = new PDFDictionary();
- colorSpaceDict.put("DefaultRGB", new PDFReference("11 0"));
+ colorSpaceDict.put("DefaultRGB", new PDFReference("11 0 R"));
res.put("ColorSpace", colorSpaceDict);
PDFResources resParent = new PDFResources(pdfDoc);
res.setParentResources(resParent);