X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/0494b8d9b9bb03ab6c22b34dae81261e3cd7e3e6..7a654f8d43fdb43d78b63d90528bed6e86b608cc:/test/unit/util/JSON.js diff --git a/test/unit/util/JSON.js b/test/unit/util/JSON.js deleted file mode 100644 index f47a70b8..00000000 --- a/test/unit/util/JSON.js +++ /dev/null @@ -1,32 +0,0 @@ -/*! - * Ext JS Library 3.3.1 - * Copyright(c) 2006-2010 Sencha Inc. - * licensing@sencha.com - * http://www.sencha.com/license - */ -Ext.test.session.addTest( 'Ext.util', { - - name: 'JSON', - - planned: 4, - - // same as Ext.encode - // 1 - test_encode: function() { - Y.Assert.areEqual( '{"foo":"bar"}', Ext.util.JSON.encode( { foo: 'bar' } ), 'Test encode with simple object' ); - }, - - // same as Ext.decode - // 2 - test_decode: function() { - Y.ObjectAssert.hasKeys({ - foo: 'bar' - }, Ext.util.JSON.decode( '{"foo":"bar"}' ), 'Test decode with a simple object'); - Y.ObjectAssert.hasKeys({ - foo: ['bar','baz'] - }, Ext.util.JSON.decode( '{"foo":["bar","baz"]}' ), 'Test decode with a hash + array'); - } - - // encodeDate - -});