Commit 9b1d3b13 authored by Ms2ger's avatar Ms2ger
Browse files

Bug 809097 - Add a testharness.js case to gen_template.pl; r=jhammel

parent 6ab7b131
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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
#
@@ -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";
}
+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>