From a0fb2c227e66c7b034726943a96360829a5ad3b2 Mon Sep 17 00:00:00 2001 From: Scott González Date: Wed, 18 Apr 2012 22:46:39 -0400 Subject: Tests: Lint. --- tests/unit/slider/slider_methods.js | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'tests/unit/slider/slider_methods.js') diff --git a/tests/unit/slider/slider_methods.js b/tests/unit/slider/slider_methods.js index b46222002..79f80e868 100644 --- a/tests/unit/slider/slider_methods.js +++ b/tests/unit/slider/slider_methods.js @@ -17,8 +17,8 @@ test("init", function() { $('
').slider().remove(); ok(true, '.slider() called on disconnected DOMElement'); - var el = $('
').slider(); - var foo = el.slider("option", "foo"); + var el = $('
').slider(), + foo = el.slider("option", "foo"); el.remove(); ok(true, 'arbitrary option getter after init'); @@ -42,11 +42,12 @@ test("destroy", function() { }); test("enable", function() { - var expected = $('
').slider(), + var el, + expected = $('
').slider(), actual = expected.slider('enable'); equal(actual, expected, 'enable is chainable'); - var el = $('
').slider({ disabled: true }); + el = $('
').slider({ disabled: true }); ok(el.hasClass('ui-disabled'), 'slider has ui-disabled class before enable method call'); ok(el.hasClass('ui-slider-disabled'), 'slider has ui-slider-disabled class before enable method call'); el.slider('enable'); @@ -55,11 +56,12 @@ test("enable", function() { }); test("disable", function() { - var expected = $('
').slider(), + var el, + expected = $('
').slider(), actual = expected.slider('disable'); equal(actual, expected, 'disable is chainable'); - var el = $('
').slider({ disabled: false }); + el = $('
').slider({ disabled: false }); ok(!el.hasClass('ui-disabled'), 'slider does not have ui-disabled class before disabled method call'); ok(!el.hasClass('ui-slider-disabled'), 'slider does not have ui-slider-disabled class before disable method call'); el.slider('disable'); -- cgit v1.2.3