diff options
author | Salvatore Bonaccorso <carnil@debian.org> | 2023-08-11 16:40:31 +0200 |
---|---|---|
committer | gregor herrmann <gregoa@debian.org> | 2023-08-11 16:40:31 +0200 |
commit | c22328ebb8b9dd9a7898108f54d6c6c779cc6099 (patch) | |
tree | 4bff6872de62c03821472ea4c417d11ef11078d5 | |
parent | b7296663e5fb42bded36fbffb1553c7093d758a4 (diff) |
Use only default_report.js as the jquery copies are removed
Origin: vendor
Forwarded: not-needed
Reviewed-by: gregor herrmann <gregoa@debian.org>
Last-Update: 2023-08-11
in the +dfsg version of the package
Gbp-Pq: Name only_default_js.patch
-rw-r--r-- | lib/TAP/Formatter/HTML.pm | 6 | ||||
-rw-r--r-- | t/11_force_inline.t | 3 |
2 files changed, 3 insertions, 6 deletions
diff --git a/lib/TAP/Formatter/HTML.pm b/lib/TAP/Formatter/HTML.pm index 35a915c..3ff242f 100644 --- a/lib/TAP/Formatter/HTML.pm +++ b/lib/TAP/Formatter/HTML.pm @@ -74,9 +74,7 @@ use accessors qw( verbosity stdout output_fh escape_output tests session_class s use constant default_session_class => 'TAP::Formatter::HTML::Session'; use constant default_template => 'TAP/Formatter/HTML/default_report.tt2'; -use constant default_js_uris => ['file:TAP/Formatter/HTML/jquery-1.4.2.min.js', - 'file:TAP/Formatter/HTML/jquery.tablesorter-2.0.3.min.js', - 'file:TAP/Formatter/HTML/default_report.js']; +use constant default_js_uris => ['file:TAP/Formatter/HTML/default_report.js']; use constant default_css_uris => ['file:TAP/Formatter/HTML/default_page.css', 'file:TAP/Formatter/HTML/default_report.css']; @@ -737,7 +735,7 @@ A list of L<URI>s (or strings) to include as external stylesheets in <script> tags in the head of the document. Defaults to: - ['file:TAP/Formatter/HTML/jquery-1.2.6.pack.js']; + ['file:TAP/Formatter/HTML/default_report.js']; You can set this with the C<TAP_FORMATTER_HTML_JS_URIS=/path/to.js:/another/path.js> environment variable. diff --git a/t/11_force_inline.t b/t/11_force_inline.t index a0ec106..3dc4300 100644 --- a/t/11_force_inline.t +++ b/t/11_force_inline.t @@ -4,7 +4,7 @@ use warnings; use lib 'lib'; use lib 't/lib'; -use Test::More tests => 8; +use Test::More tests => 7; use FileTempTFH; use TAP::Harness; @@ -21,7 +21,6 @@ $h->runtests(@tests); my $html = $tmp->get_all_output; ok( $html =~ qr|01_pass|, 'html contains file 1' ); -ok( $html =~ qr|jQuery JavaScript Library v\d+.\d+.\d+|, 'html contains jQuery src' ); ok( $html =~ qr|default javascript for report|, 'html contains default js' ); ok( $html =~ qr|default stylesheet for report body|, 'html contains default css body' ); ok( $html =~ qr|default stylesheet for report page layout|, 'html contains default css page' ); |