Mercurial > js4py
comparison core-javascript/core-javascript-work/testtools.js @ 156:b774913eb242 core-javascript.closure-exercises
Remove trailing whitespace from js files (js2mode does not repsect delete-trailing-whitespace).
| author | jf3243 |
|---|---|
| date | Wed, 09 Nov 2011 15:37:03 +0000 |
| parents | 82f672a37506 |
| children |
comparison
equal
deleted
inserted
replaced
| 155:c14a95ed1f58 | 156:b774913eb242 |
|---|---|
| 2 var _assertion_count = 0; | 2 var _assertion_count = 0; |
| 3 | 3 |
| 4 // Define a global function 'log'. | 4 // Define a global function 'log'. |
| 5 var log; | 5 var log; |
| 6 if (this.hasOwnProperty('jsArguments')){ | 6 if (this.hasOwnProperty('jsArguments')){ |
| 7 | 7 |
| 8 log = function(s){ | 8 log = function(s){ |
| 9 print(s + '\n'); | 9 print(s + '\n'); |
| 10 }; | 10 }; |
| 11 } else { | 11 } else { |
| 12 log = print; | 12 log = print; |
| 13 } | 13 } |
| 14 | 14 |
| 15 // | 15 // |
| 16 var TEST = function(title, code){ | 16 var TEST = function(title, code){ |
| 17 | 17 |
| 18 var x; | 18 var x; |
| 19 | 19 |
| 20 log( 'Testing: ' + title ); | 20 log( 'Testing: ' + title ); |
