diff options
Diffstat (limited to 'tests/unit/button/button_options.js')
-rw-r--r-- | tests/unit/button/button_options.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/unit/button/button_options.js b/tests/unit/button/button_options.js index 3dd361ac9..eeb6e5527 100644 --- a/tests/unit/button/button_options.js +++ b/tests/unit/button/button_options.js @@ -6,6 +6,7 @@ module("button: options"); test("disabled, explicit value", function() { + expect( 4 ); $("#radio01").button({ disabled: false }); deepEqual(false, $("#radio01").button("option", "disabled"), "disabled option set to false"); @@ -18,6 +19,7 @@ test("disabled, explicit value", function() { }); test("disabled, null", function() { + expect( 4 ); $("#radio01").button({ disabled: null }); deepEqual(false, $("#radio01").button("option", "disabled"), "disabled option set to false"); @@ -30,6 +32,7 @@ test("disabled, null", function() { }); test("text false without icon", function() { + expect( 1 ); $("#button").button({ text: false }); @@ -39,6 +42,7 @@ test("text false without icon", function() { }); test("text false with icon", function() { + expect( 1 ); $("#button").button({ text: false, icons: { @@ -51,6 +55,7 @@ test("text false with icon", function() { }); test("label, default", function() { + expect( 2 ); $("#button").button(); deepEqual( $("#button").text(), "Label" ); deepEqual( $( "#button").button( "option", "label" ), "Label" ); @@ -59,6 +64,7 @@ test("label, default", function() { }); test("label", function() { + expect( 2 ); $("#button").button({ label: "xxx" }); @@ -69,11 +75,13 @@ test("label", function() { }); test("label default with input type submit", function() { + expect( 2 ); deepEqual( $("#submit").button().val(), "Label" ); deepEqual( $("#submit").button( "option", "label" ), "Label" ); }); test("label with input type submit", function() { + expect( 2 ); var label = $("#submit").button({ label: "xxx" }).val(); @@ -82,6 +90,7 @@ test("label with input type submit", function() { }); test("icons", function() { + expect( 1 ); $("#button").button({ text: false, icons: { |