]> wagnertech.de Git - mfinanz.git/blob - templates/design40_webpages/js_tests/run.html
date error in mapping
[mfinanz.git] / templates / design40_webpages / js_tests / run.html
1 [% USE LxERP %]
2 [% USE L %]
3
4 <h1>JS-Tests</h1>
5
6 <div class="wrapper">
7
8 <div>
9  <p>
10   [% LxERP.t8("Only run tests from this file:") %]
11   [% opts = [ [ '', LxERP.t8("– all available test files –") ] ];
12      opts = opts.import(SELF.all_scripts);
13      L.select_tag('file_filter', opts, default=FORM.file_filter) %]
14   [% L.button_tag('run_tests_from();', LxERP.t8('Run tests'), id='run_js_tests_button') %]
15  </p>
16 </div>
17
18 </div><!-- /.wrapper -->
19
20 <script type="text/javascript">
21   function run_tests_from() {
22     window.location.href = "controller.pl?action=JSTests/run&file_filter=" + encodeURIComponent($('#file_filter').val());
23     return false;
24   };
25
26   $('#file_filter').change(run_tests_from);
27 </script>
28
29 <div id="qunit"></div>
30 <div id="qunit-fixture"></div>
31 <script src="js/qunit.js"></script>
32 [% FOREACH script = SELF.scripts_to_run %]
33   <script src="[% script %]"></script>
34 [% END %]