diff options
author | Richard Worth <rdworth@gmail.com> | 2008-09-20 17:42:04 +0000 |
---|---|---|
committer | Richard Worth <rdworth@gmail.com> | 2008-09-20 17:42:04 +0000 |
commit | 77cea8f36476e4195fac38bd57fecd70d642b24d (patch) | |
tree | 06d03e1e2d0810aa311a0051d7157c90b849e39a /tests/progressbar.js | |
parent | 057d3c677eefe6c6406d1344359a77a864eb1d66 (diff) | |
download | jquery-ui-77cea8f36476e4195fac38bd57fecd70d642b24d.tar.gz jquery-ui-77cea8f36476e4195fac38bd57fecd70d642b24d.zip |
set svn:eol-style to native
Diffstat (limited to 'tests/progressbar.js')
-rw-r--r-- | tests/progressbar.js | 112 |
1 files changed, 56 insertions, 56 deletions
diff --git a/tests/progressbar.js b/tests/progressbar.js index 37d484a22..e95f17a80 100644 --- a/tests/progressbar.js +++ b/tests/progressbar.js @@ -1,56 +1,56 @@ -/*
- * progressbar unit tests
- */
-(function($) {
-
-// Spinner Tests
-module("progressbar");
-
-test("init", function() {
- expect(1);
-
- el = $("#progressbar").progressbar();
- ok(true, '.progressbar() called on element');
-
-});
-
-test("destroy", function() {
- expect(1);
-
- $("#progressbar").progressbar().progressbar("destroy");
- ok(true, '.progressbar("destroy") called on element');
-
-});
-
-test("defaults", function() {
- expect(5);
- el = $("#progressbar").progressbar();
-
- equals(el.data("width.progressbar"), 300, "width");
- equals(el.data("duration.progressbar"), 3000, "duration");
- equals(el.data("interval.progressbar"), 200, "interval");
- equals(el.data("increment.progressbar"), 1, "increment");
- equals(el.data("range.progressbar"), true, "range");
-
-});
-
-test("set defaults on init", function() {
- expect(5);
- el = $("#progressbar").progressbar({
- width: 500,
- duration: 5000,
- interval: 500,
- increment: 5,
- range: false
- });
-
- equals(el.data("width.progressbar"), 500, "width");
- equals(el.data("duration.progressbar"), 5000, "duration");
- equals(el.data("interval.progressbar"), 500, "interval");
- equals(el.data("increment.progressbar"), 5, "increment");
- equals(el.data("range.progressbar"), false, "range");
-
-});
-
-
-})(jQuery);
+/* + * progressbar unit tests + */ +(function($) { + +// Spinner Tests +module("progressbar"); + +test("init", function() { + expect(1); + + el = $("#progressbar").progressbar(); + ok(true, '.progressbar() called on element'); + +}); + +test("destroy", function() { + expect(1); + + $("#progressbar").progressbar().progressbar("destroy"); + ok(true, '.progressbar("destroy") called on element'); + +}); + +test("defaults", function() { + expect(5); + el = $("#progressbar").progressbar(); + + equals(el.data("width.progressbar"), 300, "width"); + equals(el.data("duration.progressbar"), 3000, "duration"); + equals(el.data("interval.progressbar"), 200, "interval"); + equals(el.data("increment.progressbar"), 1, "increment"); + equals(el.data("range.progressbar"), true, "range"); + +}); + +test("set defaults on init", function() { + expect(5); + el = $("#progressbar").progressbar({ + width: 500, + duration: 5000, + interval: 500, + increment: 5, + range: false + }); + + equals(el.data("width.progressbar"), 500, "width"); + equals(el.data("duration.progressbar"), 5000, "duration"); + equals(el.data("interval.progressbar"), 500, "interval"); + equals(el.data("increment.progressbar"), 5, "increment"); + equals(el.data("range.progressbar"), false, "range"); + +}); + + +})(jQuery); |