Created
January 6, 2012 23:26
-
-
Save pierrel/1572979 to your computer and use it in GitHub Desktop.
word boundary text.js specs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
it("adds zero-width breaking spaces betwee<wbr>n special characters in the 'content'", function() { | |
expect(EM.Text.fromBBF({content:"<span class=\"some-class\" style=\"font-size:10\" special chars %^&*"}).get('content')) | |
.toBe("something containing special chars %<wbr>^<wbr>&<wbr>amp;<wbr>*"); | |
}); | |
it("preserves the original content in 'raw_content'", function() { | |
expect(EM.Text.fromBBF({content:"something containing special chars %^&*"}).get('raw_content')) | |
.toBe("something containing special chars %^&*"); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment