Loading testing/mochitest/gen_template.pl +3 −1 Original line number Diff line number Diff line Loading @@ -5,7 +5,7 @@ # Takes two arguments: # # -b : a bugnumber # -type : template type. {html|xhtml|xul}. defaults to html. # -type : template type. {html|xhtml|xul|th}. defaults to html. # # perl gen_template.pl -b 345876 -type xul # Loading @@ -21,6 +21,8 @@ if ($template_type eq "xul") { $template_type = "$FindBin::RealBin/static/xhtml.template.txt"; } elsif ($template_type eq "chrome") { $template_type = "$FindBin::RealBin/static/chrome.template.txt"; } elsif ($template_type eq "th") { $template_type = "$FindBin::RealBin/static/th.template.txt"; } else { $template_type = "$FindBin::RealBin/static/test.template.txt"; } Loading testing/mochitest/static/th.template.txt 0 → 100644 +11 −0 Original line number Diff line number Diff line <!DOCTYPE html> <meta charset=utf-8> <title>Test for ...</title> <script src="/resources/testharness.js"></script> <script src="/resources/testharnessreport.js"></script> <div id="log"></div> <script> test(function() { }, "Description"); </script> Loading
testing/mochitest/gen_template.pl +3 −1 Original line number Diff line number Diff line Loading @@ -5,7 +5,7 @@ # Takes two arguments: # # -b : a bugnumber # -type : template type. {html|xhtml|xul}. defaults to html. # -type : template type. {html|xhtml|xul|th}. defaults to html. # # perl gen_template.pl -b 345876 -type xul # Loading @@ -21,6 +21,8 @@ if ($template_type eq "xul") { $template_type = "$FindBin::RealBin/static/xhtml.template.txt"; } elsif ($template_type eq "chrome") { $template_type = "$FindBin::RealBin/static/chrome.template.txt"; } elsif ($template_type eq "th") { $template_type = "$FindBin::RealBin/static/th.template.txt"; } else { $template_type = "$FindBin::RealBin/static/test.template.txt"; } Loading
testing/mochitest/static/th.template.txt 0 → 100644 +11 −0 Original line number Diff line number Diff line <!DOCTYPE html> <meta charset=utf-8> <title>Test for ...</title> <script src="/resources/testharness.js"></script> <script src="/resources/testharnessreport.js"></script> <div id="log"></div> <script> test(function() { }, "Description"); </script>