Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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 breaking behaviour in environments where there is not much space.
  21. </p>
  22. </info>
  23. <fo>
  24. <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
  25. <fo:layout-master-set>
  26. <fo:simple-page-master master-name="simple" page-height="5in" page-width="5in">
  27. <fo:region-body/>
  28. </fo:simple-page-master>
  29. </fo:layout-master-set>
  30. <fo:page-sequence master-reference="simple">
  31. <fo:flow flow-name="xsl-region-body" hyphenate="true">
  32. <fo:block-container width="100pt" background-color="yellow">
  33. <fo:block>This is some test text!</fo:block>
  34. <fo:block>Bla bla 1234567890.</fo:block>
  35. <fo:block>Bla bla 12345678901234567890.</fo:block>
  36. <fo:block>This is Blah-blah-blah-blah!</fo:block>
  37. <fo:block>This is BLah-blah-blah-blah!</fo:block>
  38. </fo:block-container>
  39. </fo:flow>
  40. </fo:page-sequence>
  41. </fo:root>
  42. </fo>
  43. <checks>
  44. <eval expected="This is some test " xpath="//flow/block[1]/block[1]/block[1]/lineArea[1]"/>
  45. <eval expected="text!" xpath="//flow/block[1]/block[1]/block[1]/lineArea[2]"/>
  46. <eval expected="Bla bla " xpath="//flow/block[1]/block[1]/block[2]/lineArea[1]"/>
  47. <eval expected="1234567890." xpath="//flow/block[1]/block[1]/block[2]/lineArea[2]"/>
  48. <!-- The layout engine should warn about the overflow in this case -->
  49. <eval expected="Bla bla " xpath="//flow/block[1]/block[1]/block[3]/lineArea[1]"/>
  50. <eval expected="12345678901234567890." xpath="//flow/block[1]/block[1]/block[3]/lineArea[2]"/>
  51. <eval expected="This is Blah-blah-" xpath="//flow/block[1]/block[1]/block[4]/lineArea[1]"/>
  52. <eval expected="blah-blah!" xpath="//flow/block[1]/block[1]/block[4]/lineArea[2]"/>
  53. <eval expected="This is BLah-blah-" xpath="//flow/block[1]/block[1]/block[5]/lineArea[1]"/>
  54. <eval expected="blah-blah!" xpath="//flow/block[1]/block[1]/block[5]/lineArea[2]"/>
  55. </checks>
  56. </testcase>