"Fossies" - the Fresh Open Source Software Archive

Member "asciidoctor-2.0.10/features/open_block.feature" (1 Jun 2019, 1921 Bytes) of package /linux/www/asciidoctor-2.0.10.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 # language: en
    2 Feature: Open Blocks
    3   In order to group content in a generic container
    4   As a writer
    5   I want to be able to wrap content in an open block
    6 
    7 
    8   Scenario: Render an open block that contains a paragraph to HTML
    9   Given the AsciiDoc source
   10     """
   11     --
   12     A paragraph in an open block.
   13     --
   14     """
   15   When it is converted to html
   16   Then the result should match the HTML source
   17     """
   18     <div class="openblock">
   19     <div class="content">
   20     <div class="paragraph">
   21     <p>A paragraph in an open block.</p>
   22     </div>
   23     </div>
   24     </div>
   25     """
   26 
   27 
   28   Scenario: Render an open block that contains a paragraph to DocBook
   29   Given the AsciiDoc source
   30     """
   31     --
   32     A paragraph in an open block.
   33     --
   34     """
   35   When it is converted to docbook
   36   Then the result should match the XML source
   37     """
   38     <simpara>A paragraph in an open block.</simpara>
   39     """
   40 
   41 
   42   Scenario: Render an open block that contains a paragraph to HTML (alt)
   43   Given the AsciiDoc source
   44     """
   45     --
   46     A paragraph in an open block.
   47     --
   48     """
   49   When it is converted to html
   50   Then the result should match the HTML structure
   51     """
   52     .openblock
   53       .content
   54         .paragraph
   55           p A paragraph in an open block.
   56     """
   57 
   58 
   59   Scenario: Render an open block that contains a paragraph to DocBook (alt)
   60   Given the AsciiDoc source
   61     """
   62     --
   63     A paragraph in an open block.
   64     --
   65     """
   66   When it is converted to docbook
   67   Then the result should match the XML structure
   68     """
   69     simpara A paragraph in an open block.
   70     """
   71 
   72 
   73   Scenario: Render an open block that contains a list to HTML
   74   Given the AsciiDoc source
   75     """
   76     --
   77     * one
   78     * two
   79     * three
   80     --
   81     """
   82   When it is converted to html
   83   Then the result should match the HTML structure
   84     """
   85     .openblock
   86       .content
   87         .ulist
   88           ul
   89             li: p one
   90             li: p two
   91             li: p three
   92     """