Home | History | Annotate | Download | only in webkit

Lines Matching refs:JSON

24 description("Test to ensure correct behaviour of replacer functions in JSON.stringify");
70 shouldBeUndefined("JSON.stringify(object, returnUndefined)");
71 shouldBeUndefined("JSON.stringify(array, returnUndefined)");
73 shouldBe("JSON.stringify(object, returnObjectFor1)", '\'{"0":0,"1":{},"2":2}\'');
74 shouldBe("JSON.stringify(array, returnObjectFor1)", '\'[0,{},2,null]\'');
76 shouldBe("JSON.stringify(object, returnArrayFor1)", '\'{"0":0,"1":[],"2":2}\'');
77 shouldBe("JSON.stringify(array, returnArrayFor1)", '\'[0,[],2,null]\'');
79 shouldBe("JSON.stringify(object, returnUndefinedFor1)", '\'{"0":0,"2":2}\'');
80 shouldBe("JSON.stringify(array, returnUndefinedFor1)", '\'[0,null,2,null]\'');
82 shouldBe("JSON.stringify(object, returnFunctionFor1)", '\'{"0":0,"2":2}\'');
83 shouldBe("JSON.stringify(array, returnFunctionFor1)", '\'[0,null,2,null]\'');
85 shouldBe("JSON.stringify(object, returnNullFor1)", '\'{"0":0,"1":null,"2":2}\'');
86 shouldBe("JSON.stringify(array, returnNullFor1)", '\'[0,null,2,null]\'');
88 shouldBe("JSON.stringify(object, returnStringForUndefined)", '\'{"0":0,"1":1,"2":2,"3":"undefined value"}\'');
89 shouldBe("JSON.stringify(array, returnStringForUndefined)", '\'[0,1,2,"undefined value"]\'');
91 shouldThrow("JSON.stringify(object, returnCycleObjectFor1)");
92 shouldThrow("JSON.stringify(array, returnCycleObjectFor1)");
94 shouldThrow("JSON.stringify(object, returnCycleArrayFor1)");
95 shouldThrow("JSON.stringify(array, returnCycleArrayFor1)");