_acs-tcl__ad_enhanced_text_to_html (private)
_acs-tcl__ad_enhanced_text_to_html
Defined in packages/acs-tcl/tcl/test/acs-tcl-test-procs.tcl
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
Source code: set _aa_export {} set body_count 1 foreach testcase_body {{ set string_with_img {<img src="http://test.test/foo.png">} aa_log "Original string is [ns_quotehtml $string_with_img]" set html_version [ad_enhanced_text_to_html $string_with_img] aa_true "new: [ns_quotehtml $html_version] should be the same" {$html_version eq $string_with_img} set text {http://www.mail-archive.com/aolserver-talk@lists.sourceforge.net/msg00277.html} aa_log "Original string is with @-sign: [ns_quotehtml $text]" set html {<a href="http://www.mail-archive.com/aolserver-talk@lists.sourceforge.net/msg00277.html">http://www.mail-archive.com/aolserver-talk@lists.sourceforge.net/msg00277.html</a>} aa_true "link with @-sign should not contain mailto:link" {[ad_enhanced_text_to_html $text] eq $html} }} { aa_log "Running testcase body $body_count" set ::__aa_test_indent [info level] set catch_val [catch $testcase_body msg] if {$catch_val != 0 && $catch_val != 2} { aa_log_result "fail" "ad_enhanced_text_to_html (body $body_count): Error during execution: $msg, stack trace: \n$::errorInfo" } incr body_count }XQL Not present: Generic, PostgreSQL, Oracle