detect-numbered-lists.xspec 795 Bytes
Newer Older
Alex Theg's avatar
Alex Theg committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
<?xml version="1.0" encoding="UTF-8"?>
<x:description xmlns:x="http://www.jenitennison.com/xslt/xspec" stylesheet="../detect-numbered-lists.xsl"
  xmlns="http://www.w3.org/1999/xhtml"
  xmlns:xsw="http://coko.foundation/xsweet">

  <x:scenario>
  <x:label>Basic</x:label>
  <x:context>
    <div class="docx-body">
      <p>Not inside a list</p>
      <p>1. Here's a list.</p>
      <p>2. With a second item.</p>
      <p>3. And a third like like this.</p>
    </div>
  </x:context>
  <x:expect label="as list items">
    <div class="docx-body">
      <p>Not inside a list</p>
      <xsw:list level="0" >
        <p>1. Here's a list.</p>
        <p>2. With a second item.</p>
        <p>3. And a third like like this.</p>
      </xsw:list>
    </div>
  </x:expect>
</x:scenario>
</x:description>