diff options
Diffstat (limited to 'tests/unit/selectable/selectable_methods.js')
-rw-r--r-- | tests/unit/selectable/selectable_methods.js | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/tests/unit/selectable/selectable_methods.js b/tests/unit/selectable/selectable_methods.js index d894a13e4..72f9bb28d 100644 --- a/tests/unit/selectable/selectable_methods.js +++ b/tests/unit/selectable/selectable_methods.js @@ -8,39 +8,39 @@ module("selectable: methods"); test("init", function() { expect( 5 ); - $("<div></div>").appendTo('body').selectable().remove(); - ok(true, '.selectable() called on element'); + $("<div></div>").appendTo("body").selectable().remove(); + ok(true, ".selectable() called on element"); $([]).selectable().remove(); - ok(true, '.selectable() called on empty collection'); + ok(true, ".selectable() called on empty collection"); $("<div></div>").selectable().remove(); - ok(true, '.selectable() called on disconnected DOMElement'); + ok(true, ".selectable() called on disconnected DOMElement"); var el = $("<div></div>").selectable(); el.selectable("option", "foo"); el.remove(); - ok(true, 'arbitrary option getter after init'); + ok(true, "arbitrary option getter after init"); $("<div></div>").selectable().selectable("option", "foo", "bar").remove(); - ok(true, 'arbitrary option setter after init'); + ok(true, "arbitrary option setter after init"); }); test("destroy", function() { expect( 4 ); - $("<div></div>").appendTo('body').selectable().selectable("destroy").remove(); - ok(true, '.selectable("destroy") called on element'); + $("<div></div>").appendTo("body").selectable().selectable("destroy").remove(); + ok(true, ".selectable('destroy') called on element"); $([]).selectable().selectable("destroy").remove(); - ok(true, '.selectable("destroy") called on empty collection'); + ok(true, ".selectable('destroy') called on empty collection"); $("<div></div>").selectable().selectable("destroy").remove(); - ok(true, '.selectable("destroy") called on disconnected DOMElement'); + ok(true, ".selectable('destroy') called on disconnected DOMElement"); - var expected = $('<div></div>').selectable(), - actual = expected.selectable('destroy'); - equal(actual, expected, 'destroy is chainable'); + var expected = $("<div></div>").selectable(), + actual = expected.selectable("destroy"); + equal(actual, expected, "destroy is chainable"); }); test("enable", function() { @@ -66,9 +66,9 @@ test("enable", function() { equal(fired, true, "start fired"); el.selectable("destroy"); - expected = $('<div></div>').selectable(); - actual = expected.selectable('enable'); - equal(actual, expected, 'enable is chainable'); + expected = $("<div></div>").selectable(); + actual = expected.selectable("enable"); + equal(actual, expected, "enable is chainable"); }); test("disable", function() { @@ -96,9 +96,9 @@ test("disable", function() { equal(fired, false, "start fired"); el.selectable("destroy"); - expected = $('<div></div>').selectable(); - actual = expected.selectable('disable'); - equal(actual, expected, 'disable is chainable'); + expected = $("<div></div>").selectable(); + actual = expected.selectable("disable"); + equal(actual, expected, "disable is chainable"); }); })(jQuery); |