diff options
author | Dave Methvin <dave.methvin@gmail.com> | 2012-08-20 09:33:35 -0400 |
---|---|---|
committer | Dave Methvin <dave.methvin@gmail.com> | 2012-08-20 09:33:35 -0400 |
commit | ac043b1bc8096bfbb4be7995af4f5ccc5cad7c19 (patch) | |
tree | f30bb2788ea2097730b9f6a00c9ef5ad87877325 /test | |
parent | 0f553ed0ca0c50c5f66377e9f2c6314f822e8f25 (diff) | |
download | jquery-ac043b1bc8096bfbb4be7995af4f5ccc5cad7c19.tar.gz jquery-ac043b1bc8096bfbb4be7995af4f5ccc5cad7c19.zip |
Revert "Fix #12350. Remove BOM in jQuery.trim. Close gh-897."
This reverts commit 2b5b4ebbd78ce10cbbe2a6f057feea615fc69629.
String.prototype.trim doesn't trim BOM in Safari 5.0 so this won't work without additional feature detects.
http://swarm.jquery.org/result/165379
Diffstat (limited to 'test')
-rw-r--r-- | test/unit/core.js | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/test/unit/core.js b/test/unit/core.js index 8b8b7afd8..44920edcf 100644 --- a/test/unit/core.js +++ b/test/unit/core.js @@ -264,7 +264,7 @@ test("noConflict", function() { }); test("trim", function() { - expect(13); + expect(9); var nbsp = String.fromCharCode(160); @@ -278,11 +278,6 @@ test("trim", function() { equal( jQuery.trim( null ), "", "Null" ); equal( jQuery.trim( 5 ), "5", "Number" ); equal( jQuery.trim( false ), "false", "Boolean" ); - - equal( jQuery.trim(" "), "", "space should be trimmed" ); - equal( jQuery.trim("ipad\xA0"), "ipad", "nbsp should be trimmed" ); - equal( jQuery.trim("\uFEFF"), "", "zwsp should be trimmed" ); - equal( jQuery.trim("\uFEFF \xA0! | \uFEFF"), "! |", "leading/trailing should be trimmed" ); }); test("type", function() { |