aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Steiner <ssteiner@apache.org>2016-07-19 14:42:06 +0000
committerSimon Steiner <ssteiner@apache.org>2016-07-19 14:42:06 +0000
commitbceb346d85ab15866ef899688e8087c1d8ecf136 (patch)
treef24d2f58b30adc37b5770486b345b4fc7ffe85e2
parentc245cc77cfa63389e419387b98de44a90ee4156e (diff)
downloadxmlgraphics-fop-bceb346d85ab15866ef899688e8087c1d8ecf136.tar.gz
xmlgraphics-fop-bceb346d85ab15866ef899688e8087c1d8ecf136.zip
FOP-2625: Test Allow Attachments for PDF/A-3
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1753397 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--fop-core/src/test/java/org/apache/fop/pdf/PDFAttachmentTestCase.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/fop-core/src/test/java/org/apache/fop/pdf/PDFAttachmentTestCase.java b/fop-core/src/test/java/org/apache/fop/pdf/PDFAttachmentTestCase.java
index 8915ba934..db7048670 100644
--- a/fop-core/src/test/java/org/apache/fop/pdf/PDFAttachmentTestCase.java
+++ b/fop-core/src/test/java/org/apache/fop/pdf/PDFAttachmentTestCase.java
@@ -54,7 +54,8 @@ public class PDFAttachmentTestCase {
docHandler.getDocumentNavigationHandler().renderLink(new Link(
new URIAction("embedded-file:filename", false), new Rectangle()));
docHandler.endDocument();
- Assert.assertTrue(out.toString().contains("<<\n /Type /Filespec\n /F (filename)"));
+ Assert.assertTrue(out.toString().contains(
+ "<<\n /Type /Filespec\n /F (filename)\n /UF (filename)\n /AFRelationship /Data"));
Assert.assertTrue(out.toString().contains("<<\n/S /JavaScript\n"
+ "/JS (this.exportDataObject({cName:\"filename\", nLaunch:2});)\n>>"));
}