aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/deprecated.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/unit/deprecated.js')
-rw-r--r--test/unit/deprecated.js22
1 files changed, 0 insertions, 22 deletions
diff --git a/test/unit/deprecated.js b/test/unit/deprecated.js
index 029b163e5..d6a15cd7e 100644
--- a/test/unit/deprecated.js
+++ b/test/unit/deprecated.js
@@ -199,25 +199,3 @@ QUnit[ jQuery.proxy ? "test" : "skip" ]( "jQuery.proxy", function( assert ) {
cb = jQuery.proxy( fn, null, "arg1", "arg2" );
cb.call( thisObject, "arg3" );
} );
-
-QUnit[ jQuery.trim ? "test" : "skip" ]( "trim", function( assert ) {
- assert.expect( 13 );
-
- var nbsp = String.fromCharCode( 160 );
-
- assert.equal( jQuery.trim( "hello " ), "hello", "trailing space" );
- assert.equal( jQuery.trim( " hello" ), "hello", "leading space" );
- assert.equal( jQuery.trim( " hello " ), "hello", "space on both sides" );
- assert.equal( jQuery.trim( " " + nbsp + "hello " + nbsp + " " ), "hello", " " );
-
- assert.equal( jQuery.trim(), "", "Nothing in." );
- assert.equal( jQuery.trim( undefined ), "", "Undefined" );
- assert.equal( jQuery.trim( null ), "", "Null" );
- assert.equal( jQuery.trim( 5 ), "5", "Number" );
- assert.equal( jQuery.trim( false ), "false", "Boolean" );
-
- assert.equal( jQuery.trim( " " ), "", "space should be trimmed" );
- assert.equal( jQuery.trim( "ipad\xA0" ), "ipad", "nbsp should be trimmed" );
- assert.equal( jQuery.trim( "\uFEFF" ), "", "zwsp should be trimmed" );
- assert.equal( jQuery.trim( "\uFEFF \xA0! | \uFEFF" ), "! |", "leading/trailing should be trimmed" );
-} );