add async test for Ox.encodeDeflate
This commit is contained in:
parent
27b55e2b6e
commit
54694e3d7e
1 changed files with 2 additions and 2 deletions
|
@ -139,9 +139,9 @@ Ox.encodeDeflate <f> Encodes a string, using deflate
|
|||
head, tail and chunk names are removed.
|
||||
(str) -> <s> The encoded string
|
||||
str <s> The string to be encoded
|
||||
# Test with: Ox.decodeDeflate(Ox.encodeDeflate('foo'), alert)
|
||||
> Ox.decodeDeflate(Ox.encodeDeflate('foo'), function(str) { Ox.test.async('Ox.encodeDeflate', str == 'foo'); })
|
||||
undefined
|
||||
@*/
|
||||
|
||||
Ox.encodeDeflate = function(string, callback) {
|
||||
// Make sure we can encode the full unicode range of characters.
|
||||
string = Ox.encodeUTF8(string);
|
||||
|
|
Loading…
Reference in a new issue