Sha256: e8988db46cd235ac7e62dfde5467a9a4d654186e120d5f3f45918891bb0ae0b1

Contents?: true

Size: 472 Bytes

Versions: 53

Compression:

Stored size: 472 Bytes

Contents

// ========================================================================
// SC.json Base Tests
// ========================================================================
/*globals module test ok isObj equals expects */

module("Json Module");
test("Encoding and decoding object graphs",function(){
	var tester = { foo: [1,2,3], bar: { a: "a", b: "b" } };
	var str = SC.json.encode(tester);
	var result = SC.json.decode(str);
	same(result,tester, "round trips");
});


Version data entries

53 entries across 53 versions & 3 rubygems

Version Path
sproutcore-1.0.1037 frameworks/sproutcore/frameworks/foundation/tests/system/json.js
sproutcore-1.0.1035 frameworks/sproutcore/frameworks/foundation/tests/system/json.js
sproutcore-1.0.1031 frameworks/sproutcore/frameworks/foundation/tests/system/json.js
sproutcore-1.0.1030 frameworks/sproutcore/frameworks/foundation/tests/system/json.js
sproutcore-1.0.1029 frameworks/sproutcore/frameworks/foundation/tests/system/json.js
sproutcore-1.0.1027 frameworks/sproutcore/frameworks/foundation/tests/system/json.js
sproutcore-1.0.1028 frameworks/sproutcore/frameworks/foundation/tests/system/json.js
sproutcore-1.0.1026 frameworks/sproutcore/frameworks/foundation/tests/system/json.js
sproutcore-1.0.1025 frameworks/sproutcore/frameworks/foundation/tests/system/json.js
sproutcore-1.0.1024 frameworks/sproutcore/frameworks/foundation/tests/system/json.js
sproutcore-1.0.1009 frameworks/sproutcore/frameworks/foundation/tests/system/json.js
sproutcore-1.0.1008 frameworks/sproutcore/frameworks/foundation/tests/system/json.js
sproutcore-1.0.1003 frameworks/sproutcore/frameworks/foundation/tests/system/json.js