Skip to content

Commit

Permalink
adding tests section to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
jgv committed Oct 5, 2011
1 parent 1bba274 commit 51c3a1b
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion readme.textile
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,18 @@ h3. Options

h3. Methods

p. OKShadow offers the method *setoption* so parameters can be changed after instantiation. It takes either a hash of parameters or a single key and value.
p. OKShadow offers the method *setoption* so parameters can be changed after instantiation. It takes either a hash of parameters or a single key and value. For example:

bc. $('#ok').okshadow();
$('#ok').data("okshadow").setoption({
"color": "red",
"fuzzMin": 10,
});

h3. Run Tests

p. OKFocus tests JavaScript with Jasmine. Run tests:

bc. $ gem install jasmine
$ jasmine init
$ rake jasmine:ci

0 comments on commit 51c3a1b

Please sign in to comment.