aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/selectmenu/methods.js
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit/selectmenu/methods.js')
-rw-r--r--tests/unit/selectmenu/methods.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/unit/selectmenu/methods.js b/tests/unit/selectmenu/methods.js
index c25d01af5..2722fed01 100644
--- a/tests/unit/selectmenu/methods.js
+++ b/tests/unit/selectmenu/methods.js
@@ -83,21 +83,21 @@ QUnit.test( "refresh - change selected option", function( assert ) {
var element = $( "#speed" ).selectmenu(),
button = element.selectmenu( "widget" );
- assert.equal( $.trim( button.text() ), "Medium", "button text after init" );
+ assert.equal( String.prototype.trim.call( button.text() ), "Medium", "button text after init" );
button.simulate( "focus" );
setTimeout( function() {
- assert.equal( $.trim( button.text() ), "Medium", "button text after focus" );
+ assert.equal( String.prototype.trim.call( button.text() ), "Medium", "button text after focus" );
element[ 0 ].selectedIndex = 0;
element.selectmenu( "refresh" );
- assert.equal( $.trim( button.text() ), "Slower", "button text after changing selected option" );
+ assert.equal( String.prototype.trim.call( button.text() ), "Slower", "button text after changing selected option" );
element.find( "option" ).prop( "selected", false );
element.append( "<option selected value=\"selected_option\">Selected option</option>" );
element.selectmenu( "refresh" );
- assert.equal( $.trim( button.text() ), "Selected option", "button text after adding selected option" );
+ assert.equal( String.prototype.trim.call( button.text() ), "Selected option", "button text after adding selected option" );
ready();
} );