diff options
Diffstat (limited to 'tests/unit/button/options.js')
-rw-r--r-- | tests/unit/button/options.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/unit/button/options.js b/tests/unit/button/options.js index 077d868e3..6ef166974 100644 --- a/tests/unit/button/options.js +++ b/tests/unit/button/options.js @@ -76,6 +76,15 @@ test( "label, default", function() { deepEqual( button.button( "option", "label" ), "Label" ); } ); +test( "label, with html markup", function() { + expect( 3 ); + var button = $( "#button2" ).button(); + + deepEqual( button.text(), "label with span" ); + deepEqual( button.html().toLowerCase(), "label <span>with span</span>" ); + deepEqual( button.button( "option", "label" ).toLowerCase(), "label <span>with span</span>" ); +} ); + test( "label, explicit value", function() { expect( 2 ); var button = $( "#button" ).button( { |