diff options
author | Scott González <scott.gonzalez@gmail.com> | 2012-04-18 22:46:39 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2012-04-18 22:46:39 -0400 |
commit | a0fb2c227e66c7b034726943a96360829a5ad3b2 (patch) | |
tree | cc5b3ab35eddae14aff621bd7b5c5c0659a4b50e /tests/unit/selectable/selectable_methods.js | |
parent | a28983086ee91b19200c47fadc6bc3ba58a0fcb9 (diff) | |
download | jquery-ui-a0fb2c227e66c7b034726943a96360829a5ad3b2.tar.gz jquery-ui-a0fb2c227e66c7b034726943a96360829a5ad3b2.zip |
Tests: Lint.
Diffstat (limited to 'tests/unit/selectable/selectable_methods.js')
-rw-r--r-- | tests/unit/selectable/selectable_methods.js | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/tests/unit/selectable/selectable_methods.js b/tests/unit/selectable/selectable_methods.js index 32dfe00ed..dbc88f269 100644 --- a/tests/unit/selectable/selectable_methods.js +++ b/tests/unit/selectable/selectable_methods.js @@ -20,7 +20,7 @@ test("init", function() { $("<div></div>").selectable().selectable("foo").remove(); ok(true, 'arbitrary method called after init'); - el = $("<div></div>").selectable() + el = $("<div></div>").selectable(); var foo = el.selectable("option", "foo"); el.remove(); ok(true, 'arbitrary option getter after init'); @@ -49,7 +49,8 @@ test("destroy", function() { test("enable", function() { expect(3); - var fired = false; + var expected, actual, + fired = false; el = $("#selectable1"); el.selectable({ @@ -63,14 +64,15 @@ test("enable", function() { equal(fired, true, "start fired"); el.selectable("destroy"); - var expected = $('<div></div>').selectable(), - actual = expected.selectable('enable'); + expected = $('<div></div>').selectable(); + actual = expected.selectable('enable'); equal(actual, expected, 'enable is chainable'); }); test("disable", function() { expect(3); - var fired = false; + var expected, actual, + fired = false; el = $("#selectable1"); el.selectable({ @@ -85,8 +87,8 @@ test("disable", function() { equal(fired, false, "start fired"); el.selectable("destroy"); - var expected = $('<div></div>').selectable(), - actual = expected.selectable('disable'); + expected = $('<div></div>').selectable(); + actual = expected.selectable('disable'); equal(actual, expected, 'disable is chainable'); }); |