diff options
author | Israel Madueme <purelogiq@gmail.com> | 2018-08-10 14:57:01 +0200 |
---|---|---|
committer | Dylan William Hardison <dylan@hardison.net> | 2018-08-10 14:57:01 +0200 |
commit | fd850e00db835d2b84c59014c3b1021fea2294fc (patch) | |
tree | b5529f9bf45bb2b8f66b19714d215f1ca6c06c94 /t | |
parent | 5a43b27f7940be9697f312c550fa2de11a9e14d7 (diff) | |
download | bugzilla-fd850e00db835d2b84c59014c3b1021fea2294fc.tar.gz bugzilla-fd850e00db835d2b84c59014c3b1021fea2294fc.tar.xz |
Bug 1456878 - Support markdown comments
Diffstat (limited to 't')
-rw-r--r-- | t/004template.t | 2 | ||||
-rw-r--r-- | t/008filter.t | 2 | ||||
-rw-r--r-- | t/bmo/comments.t | 2 |
3 files changed, 3 insertions, 3 deletions
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]; |