Package: libtap-formatter-html-perl / 0.11+dfsg-1

only_default_js.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
Description: Use only default_report.js as the jquery copies are removed
 in the +dfsg version of the package
Origin: vendor
Forwarded: no
Author: Salvatore Bonaccorso <carnil@debian.org>
Last-Update: 2013-05-17

--- a/lib/TAP/Formatter/HTML.pm
+++ b/lib/TAP/Formatter/HTML.pm
@@ -74,9 +74,7 @@
 
 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'];
 
@@ -732,7 +730,7 @@
 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.
--- a/t/11_force_inline.t
+++ b/t/11_force_inline.t
@@ -21,7 +21,6 @@
 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' );