Browse Source

Fix test case: fox:alt was renamed to fox:alt-text.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_Accessibility@764798 13f79535-47bb-0310-9956-ffa450edef68
tags/fop-1_0
Jeremias Maerki 15 years ago
parent
commit
df97c24632

+ 1
- 1
src/java/org/apache/fop/fo/FOPropertyMapping.java View File

@@ -2521,7 +2521,7 @@ public final class FOPropertyMapping implements Constants {
m.setDefault("");
addPropertyMaker("foi:ptr", m);

// fox:alt, used for accessibility
// fox:alt-text, used for accessibility
m = new StringProperty.Maker(PR_X_ALT_TEXT);
m.setInherited(false);
m.setDefault("");

+ 2
- 2
test/layoutengine/standard-testcases/foreign-attributes.xml View File

@@ -32,7 +32,7 @@
<fo:page-sequence master-reference="normal">
<fo:flow flow-name="xsl-region-body">
<fo:block id="eg">
<fo:external-graphic src="../../resources/images/bgimg300dpi.jpg" fox:alt="description"/>
<fo:external-graphic src="../../resources/images/bgimg300dpi.jpg" fox:alt-text="description"/>
</fo:block>
<fo:block id="bl">
<fo:basic-link external-destination="url(http://xmlgraphics.apache.org/fop/)" fox:blah="fop">FOP</fo:basic-link>
@@ -43,7 +43,7 @@
</fo>
<checks xmlns:fox="http://xmlgraphics.apache.org/fop/extensions">
<eval expected="bar" xpath="//pageViewport[1]/@fox:foo"/>
<eval expected="description" xpath="//block[@prod-id='eg']//image/@fox:alt"/>
<eval expected="description" xpath="//block[@prod-id='eg']//image/@fox:alt-text"/>
<!--eval expected="fop" xpath="//block[@prod-id='bl']/inlineparent/@fox:blah"/> NYI -->
</checks>
</testcase>

Loading…
Cancel
Save