aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/attributes.js
diff options
context:
space:
mode:
authortimmywil <timmywillisn@gmail.com>2012-05-29 12:40:13 -0400
committertimmywil <timmywillisn@gmail.com>2012-05-29 13:13:26 -0400
commita8d9d05388465b16880be43629af008ff19b7725 (patch)
treed917fe6deeb8678aeba38ccd1e9117cff07c808f /test/unit/attributes.js
parent02dd7c570bf4dbbdfc168f4352d04c667447be5d (diff)
downloadjquery-a8d9d05388465b16880be43629af008ff19b7725.tar.gz
jquery-a8d9d05388465b16880be43629af008ff19b7725.zip
Add quick-start documentation for testing with QUnit and using jQuery's helper methods.
Diffstat (limited to 'test/unit/attributes.js')
-rw-r--r--test/unit/attributes.js15
1 files changed, 13 insertions, 2 deletions
diff --git a/test/unit/attributes.js b/test/unit/attributes.js
index a39712f34..8f21303f3 100644
--- a/test/unit/attributes.js
+++ b/test/unit/attributes.js
@@ -1,8 +1,19 @@
module("attributes", { teardown: moduleTeardown });
-var bareObj = function(value) { return value; };
-var functionReturningObj = function(value) { return (function() { return value; }); };
+var bareObj = function( value ) { return value; };
+var functionReturningObj = function( value ) { return (function() { return value; }); };
+/*
+ ======== local reference =======
+ bareObj and functionReturningObj can be used to test passing functions to setters
+ See testVal below for an example
+
+ bareObj( value );
+ This function returns whatever value is passed in
+
+ functionReturningObj( value );
+ Returns a function that returns the value
+*/
test("jQuery.propFix integrity test", function() {
expect(1);