add async test for Ox.encodeDeflate

This commit is contained in:
rolux 2012-05-27 16:54:50 +02:00
parent 27b55e2b6e
commit 54694e3d7e

View file

@ -139,9 +139,9 @@ Ox.encodeDeflate <f> Encodes a string, using deflate
head, tail and chunk names are removed. head, tail and chunk names are removed.
(str) -> <s> The encoded string (str) -> <s> The encoded string
str <s> The string to be encoded 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) { Ox.encodeDeflate = function(string, callback) {
// Make sure we can encode the full unicode range of characters. // Make sure we can encode the full unicode range of characters.
string = Ox.encodeUTF8(string); string = Ox.encodeUTF8(string);