[Erp5-report] r33469 nicolas - /erp5/trunk/products/ERP5OOo/tests/testDms.py

nobody at svn.erp5.org nobody at svn.erp5.org
Fri Mar 5 17:36:54 CET 2010


Author: nicolas
Date: Fri Mar  5 17:36:52 2010
New Revision: 33469

URL: http://svn.erp5.org?rev=33469&view=rev
Log:
Test comment stripping.
This test is known to fails because comment nodes inside style element
are escaped (become CDATA).


Modified:
    erp5/trunk/products/ERP5OOo/tests/testDms.py

Modified: erp5/trunk/products/ERP5OOo/tests/testDms.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5OOo/tests/testDms.py?rev=33469&r1=33468&r2=33469&view=diff
==============================================================================
--- erp5/trunk/products/ERP5OOo/tests/testDms.py [utf8] (original)
+++ erp5/trunk/products/ERP5OOo/tests/testDms.py [utf8] Fri Mar  5 17:36:52 2010
@@ -1472,7 +1472,10 @@
 <br />=0A    ERP5</p>=0A</di=
 v>=0A</body>=0A</html>=0A
 <br>=
-
+<!-- This is a comment, This string AZERTYY shouldn't be dislayed-->
+<style>
+<!-- This is a comment, This string AZERTYY shouldn't be dislayed-->
+</style>
 <table class=3DMoNormalTable border=3D0 cellspacing=3D0 cellpadding=3D0 =
 width=3D64
  style=3D'width:48.0pt;margin-left:-.75pt;border-collapse:collapse'>
@@ -1490,6 +1493,7 @@
     web_page.edit(text_content=html_content)
     safe_html = web_page.asSafeHTML()
     self.assertTrue('inside very broken HTML code' in html_content)
+    self.assertTrue('AZERTYY' not in html_content)
 
 class TestDocumentWithSecurity(ERP5TypeTestCase):
 




More information about the Erp5-report mailing list