From 54694e3d7edc664e4db46aa357a767f055787565 Mon Sep 17 00:00:00 2001 From: rolux Date: Sun, 27 May 2012 16:54:50 +0200 Subject: [PATCH] add async test for Ox.encodeDeflate --- source/Ox/js/Encoding.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/Ox/js/Encoding.js b/source/Ox/js/Encoding.js index 79a1121e..51b253ca 100644 --- a/source/Ox/js/Encoding.js +++ b/source/Ox/js/Encoding.js @@ -139,9 +139,9 @@ Ox.encodeDeflate Encodes a string, using deflate head, tail and chunk names are removed. (str) -> The encoded string str 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);