Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

marker_white-space_npe.xml 3.6KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. Licensed to the Apache Software Foundation (ASF) under one or more
  4. contributor license agreements. See the NOTICE file distributed with
  5. this work for additional information regarding copyright ownership.
  6. The ASF licenses this file to You under the Apache License, Version 2.0
  7. (the "License"); you may not use this file except in compliance with
  8. the License. You may obtain a copy of the License at
  9. http://www.apache.org/licenses/LICENSE-2.0
  10. Unless required by applicable law or agreed to in writing, software
  11. distributed under the License is distributed on an "AS IS" BASIS,
  12. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. See the License for the specific language governing permissions and
  14. limitations under the License.
  15. -->
  16. <!-- $Id$ -->
  17. <testcase>
  18. <info>
  19. <p>
  20. This test checks for a potential NPE after white-space handling
  21. for retrieved markers with only inline content.
  22. </p>
  23. </info>
  24. <fo>
  25. <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
  26. <fo:layout-master-set>
  27. <fo:simple-page-master margin-right="6mm" margin-left="7mm" margin-bottom="4mm" margin-top="5mm" page-width="210mm" page-height="297mm" master-name="letterPageFront">
  28. <fo:region-body margin-right="59mm" margin-left="8mm" margin-top="53mm" margin-bottom="57mm" region-name="letterPageBody"/>
  29. <fo:region-after precedence="false" extent="52mm" region-name="letterPageFooter"/>
  30. <fo:region-end precedence="true" extent="49mm" region-name="letterPageSidebar"/>
  31. </fo:simple-page-master>
  32. </fo:layout-master-set>
  33. <fo:page-sequence initial-page-number="1" page-break-before="right" master-reference="letterPageFront">
  34. <fo:flow flow-name="letterPageBody">
  35. <fo:block>page 1</fo:block>
  36. </fo:flow>
  37. </fo:page-sequence>
  38. <fo:page-sequence master-reference="letterPageFront">
  39. <fo:static-content flow-name="letterPageFooter">
  40. <fo:block text-align="right" margin-right="1cm" margin-left="8mm">
  41. <fo:retrieve-marker retrieve-position="last-ending-within-page" retrieve-boundary="page-sequence" retrieve-class-name="statementFooterMarker"/>
  42. </fo:block>
  43. </fo:static-content>
  44. <fo:flow flow-name="letterPageBody">
  45. <fo:block>
  46. <fo:block font="bold 16pt Arial">
  47. <fo:block>
  48. <fo:marker marker-class-name="statementFooterMarker">
  49. <fo:inline font-family="HelveticaNeue-LightCond" font-size="11pt" line-height="13pt" text-align="right">Test Marker</fo:inline>
  50. </fo:marker>
  51. </fo:block>
  52. </fo:block>
  53. <fo:block break-before="page">
  54. <fo:block>
  55. <fo:marker marker-class-name="statementFooterMarker"/>
  56. </fo:block>
  57. </fo:block>
  58. </fo:block>
  59. <fo:block id="TH_LastPage"/>
  60. </fo:flow>
  61. </fo:page-sequence>
  62. <fo:page-sequence master-reference="letterPageFront">
  63. <fo:static-content flow-name="letterPageSidebar">
  64. <fo:block-container height="284mm">
  65. <fo:block> </fo:block>
  66. </fo:block-container>
  67. </fo:static-content>
  68. <fo:flow break-before="odd-page" flow-name="letterPageBody">
  69. <fo:block>last page</fo:block>
  70. </fo:flow>
  71. </fo:page-sequence>
  72. </fo:root>
  73. </fo>
  74. <checks /><!-- none except the default; simply check for non-occurrence of NPE -->
  75. </testcase>