diff options
| author | Misko Hevery | 2011-10-07 11:27:49 -0700 |
|---|---|---|
| committer | Igor Minar | 2011-10-11 11:01:46 -0700 |
| commit | fd822bdaf9d04e522aaa5400b673f333190abe98 (patch) | |
| tree | 451cd26d3f7da862692d6c56e6e8f235824c180a /test/testabilityPatch.js | |
| parent | 4f78fd692c0ec51241476e6be9a4df06cd62fdd6 (diff) | |
| download | angular.js-fd822bdaf9d04e522aaa5400b673f333190abe98.tar.bz2 | |
chore(formating): clean code to be function() {
Diffstat (limited to 'test/testabilityPatch.js')
| -rw-r--r-- | test/testabilityPatch.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/testabilityPatch.js b/test/testabilityPatch.js index 41a6455c..b3316c0c 100644 --- a/test/testabilityPatch.js +++ b/test/testabilityPatch.js @@ -11,7 +11,7 @@ _jQuery.event.special.change = undefined; if (window.jstestdriver) { window.jstd = jstestdriver; - window.dump = function dump(){ + window.dump = function dump() { var args = []; forEach(arguments, function(arg){ if (isElement(arg)) { @@ -46,7 +46,7 @@ function dumpScope(scope, offset) { return log.join('\n' + offset); } -beforeEach(function(){ +beforeEach(function() { // This is to reset parsers global cache of expressions. compileCache = {}; @@ -65,7 +65,7 @@ beforeEach(function(){ jqLite(document.body).html(''); function cssMatcher(presentClasses, absentClasses) { - return function(){ + return function() { var element = jqLite(this.actual); var present = true; var absent = false; @@ -78,7 +78,7 @@ beforeEach(function(){ absent = absent || element.hasClass(className); }); - this.message = function(){ + this.message = function() { return "Expected to have " + presentClasses + (absentClasses ? (" and not have " + absentClasses + "" ) : "") + " but had " + element[0].className + "."; @@ -98,7 +98,7 @@ beforeEach(function(){ }, toHaveClass: function(clazz) { - this.message = function(){ + this.message = function() { return "Expected '" + sortedHtml(this.actual) + "' to have class '" + clazz + "'."; }; return this.actual.hasClass ? @@ -191,7 +191,7 @@ afterEach(function() { clearJqCache(); }); -function clearJqCache(){ +function clearJqCache() { var count = 0; forEachSorted(jqCache, function(value, key){ count ++; |
