aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/dimensions.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/dimensions.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/dimensions.js')
-rw-r--r--test/unit/dimensions.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/unit/dimensions.js b/test/unit/dimensions.js
index 0b4eedcbf..e2cf6c003 100644
--- a/test/unit/dimensions.js
+++ b/test/unit/dimensions.js
@@ -8,6 +8,18 @@ function fn( val ) {
return function(){ return val; };
}
+/*
+ ======== local reference =======
+ pass and fn can be used to test passing functions to setters
+ See testWidth below for an example
+
+ pass( value );
+ This function returns whatever value is passed in
+
+ fn( value );
+ Returns a function that returns the value
+*/
+
function testWidth( val ) {
expect(9);