Index: test/webkit/JSON-stringify-replacer-expected.txt |
diff --git a/test/webkit/concat-while-having-a-bad-time-expected.txt b/test/webkit/JSON-stringify-replacer-expected.txt |
similarity index 50% |
copy from test/webkit/concat-while-having-a-bad-time-expected.txt |
copy to test/webkit/JSON-stringify-replacer-expected.txt |
index f949db98fd7b911d30b20281c82ee0f801405c77..cea851edab81a95f7460d14f7c1d2c740fe00288 100644 |
--- a/test/webkit/concat-while-having-a-bad-time-expected.txt |
+++ b/test/webkit/JSON-stringify-replacer-expected.txt |
@@ -21,12 +21,29 @@ |
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS |
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
-Tests the behavior of Array.prototype.concat while the array is having a bad time due to one of the elements we are concatenating. |
+Test to ensure correct behaviour of replacer functions in JSON.stringify |
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". |
-PASS [42].concat() is [42] |
+PASS JSON.stringify(object, returnUndefined) is undefined. |
+PASS JSON.stringify(array, returnUndefined) is undefined. |
+PASS JSON.stringify(object, returnObjectFor1) is '{"0":0,"1":{},"2":2}' |
+PASS JSON.stringify(array, returnObjectFor1) is '[0,{},2,null]' |
+PASS JSON.stringify(object, returnArrayFor1) is '{"0":0,"1":[],"2":2}' |
+PASS JSON.stringify(array, returnArrayFor1) is '[0,[],2,null]' |
+PASS JSON.stringify(object, returnUndefinedFor1) is '{"0":0,"2":2}' |
+PASS JSON.stringify(array, returnUndefinedFor1) is '[0,null,2,null]' |
+PASS JSON.stringify(object, returnFunctionFor1) is '{"0":0,"2":2}' |
+PASS JSON.stringify(array, returnFunctionFor1) is '[0,null,2,null]' |
+PASS JSON.stringify(object, returnNullFor1) is '{"0":0,"1":null,"2":2}' |
+PASS JSON.stringify(array, returnNullFor1) is '[0,null,2,null]' |
+PASS JSON.stringify(object, returnStringForUndefined) is '{"0":0,"1":1,"2":2,"3":"undefined value"}' |
+PASS JSON.stringify(array, returnStringForUndefined) is '[0,1,2,"undefined value"]' |
+PASS JSON.stringify(object, returnCycleObjectFor1) threw exception TypeError: Converting circular structure to JSON. |
+PASS JSON.stringify(array, returnCycleObjectFor1) threw exception TypeError: Converting circular structure to JSON. |
+PASS JSON.stringify(object, returnCycleArrayFor1) threw exception TypeError: Converting circular structure to JSON. |
+PASS JSON.stringify(array, returnCycleArrayFor1) threw exception TypeError: Converting circular structure to JSON. |
PASS successfullyParsed is true |
TEST COMPLETE |