Fixes $.trim for closes #4980
This commit is contained in:
parent
84857abefc
commit
17955cacf4
2 changed files with 12 additions and 1 deletions
|
@ -189,6 +189,17 @@ test("noConflict", function() {
|
|||
jQuery = $$;
|
||||
});
|
||||
|
||||
test("trim", function() {
|
||||
expect(4);
|
||||
|
||||
var nbsp = String.fromCharCode(160);
|
||||
|
||||
equals( jQuery.trim("hello "), "hello", "trailing space" );
|
||||
equals( jQuery.trim(" hello"), "hello", "leading space" );
|
||||
equals( jQuery.trim(" hello "), "hello", "space on both sides" );
|
||||
equals( jQuery.trim(" " + nbsp + "hello " + nbsp + " "), "hello", " " );
|
||||
});
|
||||
|
||||
test("isFunction", function() {
|
||||
expect(19);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue