Skip to content
Permalink
Browse files

Button: Can't test for " " in IE8, just make sure the element exists

  • Loading branch information...
jzaefferer authored and arschmitz committed Oct 6, 2015
1 parent 44eb0cc commit 81c4fdfecd52070a9f7b79bb0fb81f2f60fc27b5
Showing with 2 additions and 2 deletions.
  1. +2 −2 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" );

0 comments on commit 81c4fdf

Please sign in to comment.
You can’t perform that action at this time.