diff options
author | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2015-10-06 15:58:15 +0200 |
---|---|---|
committer | Alexander Schmitz <arschmitz@gmail.com> | 2015-10-08 14:02:59 -0400 |
commit | 81c4fdfecd52070a9f7b79bb0fb81f2f60fc27b5 (patch) | |
tree | 20f7057f800791a6cc5fa7943d9ccbd42fecf7fa | |
parent | 44eb0ccba9435079f41e526368bfb13654371f8d (diff) | |
download | jquery-ui-81c4fdfecd52070a9f7b79bb0fb81f2f60fc27b5.tar.gz jquery-ui-81c4fdfecd52070a9f7b79bb0fb81f2f60fc27b5.zip |
Button: Can't test for " " in IE8, just make sure the element exists
-rw-r--r-- | tests/unit/button/options.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/unit/button/options.js b/tests/unit/button/options.js index 207f7c25e..077d868e3 100644 --- a/tests/unit/button/options.js +++ b/tests/unit/button/options.js @@ -137,7 +137,7 @@ test( "icon position", function( assert ) { "Button has iconPosition beginning by default" ); equal( button.contents()[ 0 ], icon[ 0 ], "icon is prepended when position is begining" ); equal( icon.next()[ 0 ], space[ 0 ], "icon is followed by a space when position is begining" ); - equal( space.text(), " ", + equal( space.length, 1, "ui-button-icon-space contains a breaking space iconPosition:beginning" ); assert.lacksClasses( icon, "ui-widget-icon-block" ); @@ -148,7 +148,7 @@ test( "icon position", function( assert ) { equal( button.button( "option", "iconPosition" ), "end", "Button has iconPosition end" ); equal( button.contents().last()[ 0 ], icon[ 0 ], "icon is appended when position is end" ); equal( icon.prev()[ 0 ], space[ 0 ], "icon is preceeded by a space when position is end" ); - equal( space.text(), " ", + equal( space.length, 1, "ui-button-icon-space contains a breaking space iconPosition:beginning" ); assert.lacksClasses( icon, "ui-widget-icon-block" ); |