From fd822bdaf9d04e522aaa5400b673f333190abe98 Mon Sep 17 00:00:00 2001 From: Misko Hevery Date: Fri, 7 Oct 2011 11:27:49 -0700 Subject: chore(formating): clean code to be function() { --- test/testabilityPatch.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'test/testabilityPatch.js') 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 ++; -- cgit v1.2.3