diff options
author | Mike Sherov <mike.sherov@gmail.com> | 2012-12-26 08:08:48 -0500 |
---|---|---|
committer | Mike Sherov <mike.sherov@gmail.com> | 2012-12-26 08:08:48 -0500 |
commit | 0d4022bceb33fb95c41fab768c1829d464861899 (patch) | |
tree | 8584929224e413fd6163c4000fe03b6978f969ec /tests/unit/draggable/draggable_methods.js | |
parent | 74d7eac2daabce0411e98ed9d59dada551cdd911 (diff) | |
download | jquery-ui-0d4022bceb33fb95c41fab768c1829d464861899.tar.gz jquery-ui-0d4022bceb33fb95c41fab768c1829d464861899.zip |
Tests: Convert single quotes to double quotes.
Diffstat (limited to 'tests/unit/draggable/draggable_methods.js')
-rw-r--r-- | tests/unit/draggable/draggable_methods.js | 54 |
1 files changed, 27 insertions, 27 deletions
diff --git a/tests/unit/draggable/draggable_methods.js b/tests/unit/draggable/draggable_methods.js index 9ea353ca6..43db285ce 100644 --- a/tests/unit/draggable/draggable_methods.js +++ b/tests/unit/draggable/draggable_methods.js @@ -8,36 +8,36 @@ module("draggable: methods"); test("init", function() { expect(5); - $("<div></div>").appendTo('body').draggable().remove(); - ok(true, '.draggable() called on element'); + $("<div></div>").appendTo("body").draggable().remove(); + ok(true, ".draggable() called on element"); $([]).draggable(); - ok(true, '.draggable() called on empty collection'); + ok(true, ".draggable() called on empty collection"); $("<div></div>").draggable(); - ok(true, '.draggable() called on disconnected DOMElement'); + ok(true, ".draggable() called on disconnected DOMElement"); $("<div></div>").draggable().draggable("option", "foo"); - ok(true, 'arbitrary option getter after init'); + ok(true, "arbitrary option getter after init"); $("<div></div>").draggable().draggable("option", "foo", "bar"); - ok(true, 'arbitrary option setter after init'); + ok(true, "arbitrary option setter after init"); }); test("destroy", function() { expect(4); - $("<div></div>").appendTo('body').draggable().draggable("destroy").remove(); - ok(true, '.draggable("destroy") called on element'); + $("<div></div>").appendTo("body").draggable().draggable("destroy").remove(); + ok(true, ".draggable('destroy') called on element"); $([]).draggable().draggable("destroy"); - ok(true, '.draggable("destroy") called on empty collection'); + ok(true, ".draggable('destroy') called on empty collection"); $("<div></div>").draggable().draggable("destroy"); - ok(true, '.draggable("destroy") called on disconnected DOMElement'); + ok(true, ".draggable('destroy') called on disconnected DOMElement"); - var expected = $('<div></div>').draggable(), - actual = expected.draggable('destroy'); - equal(actual, expected, 'destroy is chainable'); + var expected = $("<div></div>").draggable(), + actual = expected.draggable("destroy"); + equal(actual, expected, "destroy is chainable"); }); test("enable", function() { @@ -46,23 +46,23 @@ test("enable", function() { var expected, actual, el; el = $("#draggable2").draggable({ disabled: true }); - TestHelpers.draggable.shouldNotMove(el, '.draggable({ disabled: true })'); + TestHelpers.draggable.shouldNotMove(el, ".draggable({ disabled: true })"); el.draggable("enable"); - TestHelpers.draggable.shouldMove(el, '.draggable("enable")'); + TestHelpers.draggable.shouldMove(el, ".draggable('enable')"); equal(el.draggable("option", "disabled"), false, "disabled option getter"); el.draggable("destroy"); el.draggable({ disabled: true }); - TestHelpers.draggable.shouldNotMove(el, '.draggable({ disabled: true })'); + TestHelpers.draggable.shouldNotMove(el, ".draggable({ disabled: true })"); el.draggable("option", "disabled", false); equal(el.draggable("option", "disabled"), false, "disabled option setter"); - TestHelpers.draggable.shouldMove(el, '.draggable("option", "disabled", false)'); + TestHelpers.draggable.shouldMove(el, ".draggable('option', 'disabled', false)"); - expected = $('<div></div>').draggable(), - actual = expected.draggable('enable'); - equal(actual, expected, 'enable is chainable'); + expected = $("<div></div>").draggable(), + actual = expected.draggable("enable"); + equal(actual, expected, "enable is chainable"); }); test("disable", function() { @@ -71,24 +71,24 @@ test("disable", function() { var expected, actual, el; el = $("#draggable2").draggable({ disabled: false }); - TestHelpers.draggable.shouldMove(el, '.draggable({ disabled: false })'); + TestHelpers.draggable.shouldMove(el, ".draggable({ disabled: false })"); el.draggable("disable"); - TestHelpers.draggable.shouldNotMove(el, '.draggable("disable")'); + TestHelpers.draggable.shouldNotMove(el, ".draggable('disable')"); equal(el.draggable("option", "disabled"), true, "disabled option getter"); el.draggable("destroy"); el.draggable({ disabled: false }); - TestHelpers.draggable.shouldMove(el, '.draggable({ disabled: false })'); + TestHelpers.draggable.shouldMove(el, ".draggable({ disabled: false })"); el.draggable("option", "disabled", true); equal(el.draggable("option", "disabled"), true, "disabled option setter"); - TestHelpers.draggable.shouldNotMove(el, '.draggable("option", "disabled", true)'); + TestHelpers.draggable.shouldNotMove(el, ".draggable('option', 'disabled', true)"); - expected = $('<div></div>').draggable(), - actual = expected.draggable('disable'); - equal(actual, expected, 'disable is chainable'); + expected = $("<div></div>").draggable(), + actual = expected.draggable("disable"); + equal(actual, expected, "disable is chainable"); }); })(jQuery); |