aboutsummaryrefslogtreecommitdiffstats
path: root/tests/slider.js
diff options
context:
space:
mode:
authorRichard Worth <rdworth@gmail.com>2008-11-18 02:55:25 +0000
committerRichard Worth <rdworth@gmail.com>2008-11-18 02:55:25 +0000
commit29f7dc9a2c078495f6a0ed13c531733146528fb4 (patch)
tree5d56f5a7ecba3c8173de3322c2a85bfecf61348b /tests/slider.js
parentce69e7ced4e8786ca5164372007c48a11ba90e72 (diff)
downloadjquery-ui-29f7dc9a2c078495f6a0ed13c531733146528fb4.tar.gz
jquery-ui-29f7dc9a2c078495f6a0ed13c531733146528fb4.zip
Removed all trailing whitespace from .js and .html files
Diffstat (limited to 'tests/slider.js')
-rw-r--r--tests/slider.js18
1 files changed, 9 insertions, 9 deletions
diff --git a/tests/slider.js b/tests/slider.js
index fa20f0339..78d09e28d 100644
--- a/tests/slider.js
+++ b/tests/slider.js
@@ -54,24 +54,24 @@ module("slider");
test("init", function() {
expect(6);
-
+
$("<div></div>").appendTo('body').slider().remove();
ok(true, '.slider() called on element');
-
+
$([]).slider().remove();
ok(true, '.slider() called on empty collection');
-
+
$('<div></div>').slider().remove();
ok(true, '.slider() called on disconnected DOMElement');
-
+
$('<div></div>').slider().slider("foo").remove();
ok(true, 'arbitrary method called after init');
-
+
el = $('<div></div>').slider();
var foo = el.data("foo.slider");
el.remove();
ok(true, 'arbitrary option getter after init');
-
+
$('<div></div>').slider().data("foo.slider", "bar").remove();
ok(true, 'arbitrary option setter after init');
});
@@ -166,12 +166,12 @@ test("destroy and recreate", function() {
slider.slider("moveTo", "+=20");
equals(slider.slider("value"), 20);
slider.slider("destroy");
-
+
slider.slider("moveTo", "+=30");
ok(true, "nothing happens after slider is destroyed");
-
+
slider.slider().slider("moveTo", "30");
-
+
equals(Math.round(slider.slider("value")), 30);
})