From fd850e00db835d2b84c59014c3b1021fea2294fc Mon Sep 17 00:00:00 2001 From: Israel Madueme Date: Fri, 10 Aug 2018 08:57:01 -0400 Subject: Bug 1456878 - Support markdown comments --- t/004template.t | 2 +- t/008filter.t | 2 +- t/bmo/comments.t | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 't') diff --git a/t/004template.t b/t/004template.t index 909f1a231..8b063a366 100644 --- a/t/004template.t +++ b/t/004template.t @@ -76,7 +76,7 @@ foreach my $include_path (@include_paths) { url_quote => sub { return $_ } , css_class_quote => sub { return $_ } , xml => sub { return $_ } , - quoteUrls => sub { return $_ } , + renderComment => sub { return $_ } , bug_link => [ sub { return sub { return $_; } }, 1] , csv => sub { return $_ } , unitconvert => sub { return $_ }, diff --git a/t/008filter.t b/t/008filter.t index 443fb2b4f..050cf1ef3 100644 --- a/t/008filter.t +++ b/t/008filter.t @@ -214,7 +214,7 @@ sub directive_ok { # Note: If a single directive prints two things, and only one is # filtered, we may not catch that case. return 1 if $directive =~ /FILTER\ (html|csv|js|base64|css_class_quote|ics| - quoteUrls|time|uri|xml|lower|html_light| + renderComment|time|uri|xml|lower|html_light| obsolete|inactive|closed|unitconvert| txt|html_linebreak|none|json|null|id| markdown)\b/x; diff --git a/t/bmo/comments.t b/t/bmo/comments.t index 4b0bb8177..f4064a7fc 100644 --- a/t/bmo/comments.t +++ b/t/bmo/comments.t @@ -61,7 +61,7 @@ my $bug_2 = Bugzilla::Bug->create( my $bug_2_id = $bug_2->id; -Bugzilla::Template::quoteUrls( +Bugzilla::Template::renderComment( $bug_2->comments->[0]->body, undef, undef, undef, sub { my $bug_id = $_[0]; -- cgit v1.2.3-24-g4f1b