[PATCH] testbot/web: Add some </div> comments identifying the corresponding <div>.

Francois Gouget fgouget at codeweavers.com
Wed Aug 22 03:58:50 CDT 2018


This helps debug HTML tag balancing errors.

Signed-off-by: Francois Gouget <fgouget at codeweavers.com>
---

Alternatively these could be perl comments but it's more practical to 
have these in the generated HTML so they can be used when looking at the 
generated HTML code.

 testbot/lib/ObjectModel/CGI/FormPage.pm | 4 ++--
 testbot/lib/WineTestBot/CGI/PageBase.pm | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/testbot/lib/ObjectModel/CGI/FormPage.pm b/testbot/lib/ObjectModel/CGI/FormPage.pm
index b3861dd2a..3a41fe0e6 100644
--- a/testbot/lib/ObjectModel/CGI/FormPage.pm
+++ b/testbot/lib/ObjectModel/CGI/FormPage.pm
@@ -128,8 +128,8 @@ sub GenerateBody($)
   {
     print "<p>$Text</p>\n";
   }
-  print "</div>\n";
-  print "</div>\n";
+  print "</div><!--Content-->\n";
+  print "</div><!--ItemBody-->\n";
 }
 
 sub GenerateFormStart($)
diff --git a/testbot/lib/WineTestBot/CGI/PageBase.pm b/testbot/lib/WineTestBot/CGI/PageBase.pm
index 67e8fc86f..e5b2f2d3b 100644
--- a/testbot/lib/WineTestBot/CGI/PageBase.pm
+++ b/testbot/lib/WineTestBot/CGI/PageBase.pm
@@ -327,10 +327,10 @@ sub GenerateFooter($)
   my ($self) = @_;
 
   print <<EOF;
-    </div>
+    </div><!--ContentContainer-->
     <b class="rbottom"><b class="r4"> </b><b class="r3"> </b><b class="r2"> </b><b class="r1"> </b></b>
   </div>
-</div>
+</div><!--main_content-->
 
 </body>
 </html>
-- 
2.18.0



More information about the wine-devel mailing list