Permalink
Browse files

some JavaScript and Perl tweaks

  • Loading branch information...
liyanage committed Aug 14, 2009
1 parent 69c09c9 commit 49fa40398e05c19189b2044291701abf1e677b2e
@@ -0,0 +1,8 @@
+#indent#<#class name#> = Class.create(<#superclass#>, {
+
+ initialize: function(<#constructor args#>) {
+ <#code#>
+ },
+
+ <#methods#>
+};
@@ -0,0 +1,3 @@
+#indent#each(function (i) {
+ <#code#>
+})
@@ -0,0 +1,3 @@
+#indent#<#method name#>: function (<#args#>) {
+ <#code#>
+},
@@ -0,0 +1,16 @@
+#indent#new Test.Unit.Runner({
+ setup: function() {
+
+ },
+
+ teardown: function() {
+
+ },
+
+ test<#test function#>: function() { with(this) {
+ assertNothingRaised(function() {
+ <#code#>
+ });
+ }}
+});
+
@@ -0,0 +1 @@
+#indent#assertEqual(<#value#>, <#actual#>, <#message#>);
@@ -0,0 +1,6 @@
+#indent#test<#test name#>: function() { with(this) {
+ assertNothingRaised(function() {
+ <#code#>
+ });
+}},
+
Binary file not shown.
Binary file not shown.
@@ -1 +1 @@
-=head2 <#method#><#method description#>=head3 ParametersThis method expects <#key/value|positional#> parameters.=over=item <#parameter key#><#parameter value description, use the "item" clipping to add more items...#>=back=head3 Result<#return value description#>=cut
+=head2 <#method#><#method description#>=head3 ParametersThis method expects <#key/value|positional#> parameters.=over=item <#parameter key#><#parameter value description, use the "item" clipping to add more items...#>=back=head3 Result<#return value description#>=head3 Exceptions<#description of possible exceptions#>=cut
@@ -0,0 +1,9 @@
+#INDENT#sub <#method name#> : Test(setup) {
+ my $self = shift;
+ <#method body#>
+}
+
+#INDENT#sub <#method name#> : Test(teardown) {
+ my $self = shift;
+ <#method body#>
+}
@@ -0,0 +1,9 @@
+#INDENT#sub <#method name#> : Test(startup) {
+ my $self = shift;
+ <#method body#>
+}
+
+#INDENT#sub <#method name#> : Test(shutdown) {
+ my $self = shift;
+ <#method body#>
+}

0 comments on commit 49fa403

Please sign in to comment.