spec/isodoc/table_spec.rb in isodoc-1.0.2 vs spec/isodoc/table_spec.rb in isodoc-1.0.3

- old
+ new

@@ -4,11 +4,11 @@ it "processes IsoXML tables" do expect(IsoDoc::HtmlConvert.new({}).convert("test", <<~"INPUT", true)).to be_equivalent_to <<~"OUTPUT" <iso-standard xmlns="http://riboseinc.com/isoxml"> <preface> <foreword> - <table id="tableD-1" alt="tool tip"> + <table id="tableD-1" alt="tool tip" summary="long desc"> <name>Repeatability and reproducibility of <em>husked</em> rice yield</name> <thead> <tr> <td rowspan="2" align="left">Description</td> <td colspan="4" align="center">Rice sample</td> @@ -67,10 +67,13 @@ <br/> <div> <h1 class="ForewordTitle">Foreword</h1> <p class="TableTitle" style="text-align:center;">Table 1&#160;&#8212; Repeatability and reproducibility of <i>husked</i> rice yield</p> <table id="tableD-1" class="MsoISOTable" style="border-width:1px;border-spacing:0;" title="tool tip"> + <caption> + <span style="display:none">long desc</span> + </caption> <thead> <tr> <td rowspan="2" style="text-align:left;border-top:solid windowtext 1.5pt;border-bottom:solid windowtext 1.5pt;padding:0;" scope="col">Description</td> <td colspan="4" style="text-align:center;border-top:solid windowtext 1.5pt;border-bottom:solid windowtext 1.0pt;padding:0;" scope="colgroup">Rice sample</td> </tr> @@ -137,11 +140,11 @@ it "processes IsoXML tables (Word)" do expect(IsoDoc::WordConvert.new({}).convert("test", <<~"INPUT", true)).to be_equivalent_to <<~"OUTPUT" <iso-standard xmlns="http://riboseinc.com/isoxml"> <preface> <foreword> - <table id="tableD-1" alt="tool tip"> + <table id="tableD-1" alt="tool tip" summary="long desc"> <name>Repeatability and reproducibility of husked rice yield</name> <thead> <tr> <td rowspan="2" align="left">Description</td> <td colspan="4" align="center">Rice sample</td> @@ -203,10 +206,10 @@ <p><br clear="all" style="mso-special-character:line-break;page-break-before:always"/></p> <div> <h1 class="ForewordTitle">Foreword</h1> <p class="TableTitle" style="text-align:center;">Table 1&#160;&#8212; Repeatability and reproducibility of husked rice yield</p> <div align="center"> - <table id="tableD-1" class="MsoISOTable" style="mso-table-lspace:15.0cm;margin-left:423.0pt;mso-table-rspace:15.0cm;margin-right:423.0pt;mso-table-bspace:14.2pt;mso-table-anchor-vertical:paragraph;mso-table-anchor-horizontal:column;mso-table-overlap:never;border-spacing:0;border-width:1px;" title="tool tip"> + <table id="tableD-1" class="MsoISOTable" style="mso-table-lspace:15.0cm;margin-left:423.0pt;mso-table-rspace:15.0cm;margin-right:423.0pt;mso-table-bspace:14.2pt;mso-table-anchor-vertical:paragraph;mso-table-anchor-horizontal:column;mso-table-overlap:never;border-spacing:0;border-width:1px;" title="tool tip" summary="long desc"> <thead> <tr> <td rowspan="2" align="left" style="border-top:solid windowtext 1.5pt;mso-border-top-alt:solid windowtext 1.5pt;border-bottom:solid windowtext 1.5pt;mso-border-bottom-alt:solid windowtext 1.5pt;">Description</td> <td colspan="4" align="center" style="border-top:solid windowtext 1.5pt;mso-border-top-alt:solid windowtext 1.5pt;border-bottom:solid windowtext 1.0pt;mso-border-bottom-alt:solid windowtext 1.0pt;">Rice sample</td> </tr>