From eecbde22a6b338785ac8e1991858ba7dab976eae Mon Sep 17 00:00:00 2001 From: Richard Worth Date: Wed, 20 Jan 2010 14:00:14 +0000 Subject: eol-style and mime-type --- tests/unit/button/button_options.js | 138 ++++++++++++++++++------------------ 1 file changed, 69 insertions(+), 69 deletions(-) (limited to 'tests/unit/button/button_options.js') diff --git a/tests/unit/button/button_options.js b/tests/unit/button/button_options.js index f44679a34..6ee8ab541 100644 --- a/tests/unit/button/button_options.js +++ b/tests/unit/button/button_options.js @@ -1,69 +1,69 @@ -/* - * button_options.js - */ -(function($) { - -module("button: options"); - -test("text false without icon", function() { - $("#button").button({ - text: false - }); - ok( $("#button").is(".ui-button-text-only:not(.ui-button-icon-only)") ); - - $("#button").button("destroy"); -}); - -test("text false with icon", function() { - $("#button").button({ - text: false, - icons: { - primary: "iconclass" - } - }); - ok( $("#button").is(".ui-button-icon-only:not(.ui-button-text):has(span.ui-icon.iconclass)") ); - - $("#button").button("destroy"); -}); - -test("label, default", function() { - $("#button").button(); - same( $("#button").text(), "Label" ); - - $("#button").button("destroy"); -}); - -test("label", function() { - $("#button").button({ - label: "xxx" - }); - same( $("#button").text(), "xxx" ); - - $("#button").button("destroy"); -}); - -test("label default with input type submit", function() { - same( $("#submit").button().val(), "Label" ); -}); - -test("label with input type submit", function() { - var label = $("#submit").button({ - label: "xxx" - }).val(); - same( label, "xxx" ); -}); - -test("icons", function() { - $("#button").button({ - text: false, - icons: { - primary: "iconclass", - secondary: "iconclass2" - } - }); - ok( $("#button").is(":has(span.ui-icon.ui-button-icon-primary.iconclass):has(span.ui-icon.ui-button-icon-secondary.iconclass2)") ); - - $("#button").button("destroy"); -}); - -})(jQuery); +/* + * button_options.js + */ +(function($) { + +module("button: options"); + +test("text false without icon", function() { + $("#button").button({ + text: false + }); + ok( $("#button").is(".ui-button-text-only:not(.ui-button-icon-only)") ); + + $("#button").button("destroy"); +}); + +test("text false with icon", function() { + $("#button").button({ + text: false, + icons: { + primary: "iconclass" + } + }); + ok( $("#button").is(".ui-button-icon-only:not(.ui-button-text):has(span.ui-icon.iconclass)") ); + + $("#button").button("destroy"); +}); + +test("label, default", function() { + $("#button").button(); + same( $("#button").text(), "Label" ); + + $("#button").button("destroy"); +}); + +test("label", function() { + $("#button").button({ + label: "xxx" + }); + same( $("#button").text(), "xxx" ); + + $("#button").button("destroy"); +}); + +test("label default with input type submit", function() { + same( $("#submit").button().val(), "Label" ); +}); + +test("label with input type submit", function() { + var label = $("#submit").button({ + label: "xxx" + }).val(); + same( label, "xxx" ); +}); + +test("icons", function() { + $("#button").button({ + text: false, + icons: { + primary: "iconclass", + secondary: "iconclass2" + } + }); + ok( $("#button").is(":has(span.ui-icon.ui-button-icon-primary.iconclass):has(span.ui-icon.ui-button-icon-secondary.iconclass2)") ); + + $("#button").button("destroy"); +}); + +})(jQuery); -- cgit v1.2.3