mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 15:52:07 +00:00
Bug 1089446 - Improve the comments in both gen_template.pl scripts. r=bz.
--HG-- extra : rebase_source : 784e39e75086f602f1b4cae21087fd5efd1a8187
This commit is contained in:
parent
f5bc18d01c
commit
baf7ae28c6
@ -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);
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user