Bug 1089446 - Improve the comments in both gen_template.pl scripts. r=bz.

--HG--
extra : rebase_source : 784e39e75086f602f1b4cae21087fd5efd1a8187
This commit is contained in:
Nicholas Nethercote 2014-10-28 15:04:03 -07:00
parent f5bc18d01c
commit baf7ae28c6
2 changed files with 19 additions and 12 deletions

View File

@ -1,14 +1,16 @@
#!/usr/bin/perl
# This script makes docshell test case templates. It takes one argument:
#
# gen_template.pl
# Makes docshell test case templates.
# Takes one argument:
# -b: a bugnumber
#
# -b : a bugnumber
# For example, this command:
#
# e.g.: perl gen_template.pl -b 303267
# perl gen_template.pl -b 303267
#
# Writes test case template files for bug 303267 to the current directory.
# Writes test case template files test_bug303267.xul and bug303267_window.xul
# to the current directory.
use FindBin;
use Getopt::Long;
GetOptions("b=i"=> \$bug_number);

View File

@ -1,15 +1,20 @@
#!/usr/bin/perl
# This script makes mochitest test case templates. See
# https://developer.mozilla.org/en-US/docs/Mochitest#Test_templates
#
# gen_template.pl
# Makes test case templates.
# Takes two arguments:
# It takes two arguments:
#
# -b : a bugnumber
# -type : template type. {html|xhtml|xul|th|chrome|chromexul}. defaults to html.
# -b: a bugnumber
# -type: template type. One of {html|xhtml|xul|th|chrome|chromexul}.
# Defaults to html.
#
# For example, this command:
#
# perl gen_template.pl -b 345876 -type xul
#
# sends a test case template for bug 345876 to stdout
# writes a XUL test case template for bug 345876 to stdout.
use FindBin;
use Getopt::Long;
GetOptions("b=i"=> \$bug_number,