Index: openacs-4/packages/acs-tcl/tcl/test/html-conversion-procs.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/acs-tcl/tcl/test/html-conversion-procs.tcl,v
diff -u -r1.8 -r1.9
--- openacs-4/packages/acs-tcl/tcl/test/html-conversion-procs.tcl 4 Aug 2006 18:09:01 -0000 1.8
+++ openacs-4/packages/acs-tcl/tcl/test/html-conversion-procs.tcl 29 Aug 2008 17:42:39 -0000 1.9
@@ -251,3 +251,49 @@
set result [ad_parse_html_attributes $html $pos]
aa_equals "Attributes - $result" $result {{foo bar} {greeting {welcome home}} {ja blah}}
}
+
+aa_register_case -cats {api smoke} -procs {ad_html_text_convert} ad_text_html_convert_outlook_word_comments {
+ Test is MS Word HTML Comments are stripped or not
+} {
+
+ set html {}
+ set result [ad_html_text_convert -from text/html -to text/plain $html]
+
+ aa_equals "Standard HTML Comments cleaned $result" $result ""
+ set html { }
+
+ set result [ad_html_text_convert -from text/html -to text/plain $html]
+
+ aa_equals "MS Word Comments cleaned $result" $result ""
+
+ set html {Regular Text}
+ set result [ad_html_text_convert -from text/html -to text/plain $html]
+ aa_equals "Some HTML with Comment ok" $result "*Bold* _Italic_"
+
+
+}
\ No newline at end of file