diff options
author | Felix Nagel <info@felixnagel.com> | 2013-01-02 19:38:55 +0100 |
---|---|---|
committer | Felix Nagel <info@felixnagel.com> | 2013-01-02 19:38:55 +0100 |
commit | 1ba02e9c5fc96bfcdd82e6a72369f54a30a47ecb (patch) | |
tree | e21226ccc9b62a6a4a03fd4b7c7d62b889bd6aa7 /tests/unit/selectable/selectable_methods.js | |
parent | 2eb92232f3c0fa7b6643dce9197dae48f5b174ef (diff) | |
parent | 18b8ffd796ba557a7c939d67a1551b54402a7eb9 (diff) | |
download | jquery-ui-1ba02e9c5fc96bfcdd82e6a72369f54a30a47ecb.tar.gz jquery-ui-1ba02e9c5fc96bfcdd82e6a72369f54a30a47ecb.zip |
Merge branch 'master' into selectmenu
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); |