From d03e70c4d1181dcc63f9433d566142529abb6c9f Mon Sep 17 00:00:00 2001 From: Thomas Fuchs Date: Sun, 11 Mar 2007 21:16:10 +0000 Subject: [PATCH] Fix toJSON unit tests in array.html to use array toJSON methods [Tobie Langel] --- test/unit/array.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/unit/array.html b/test/unit/array.html index 56d8560..bb5c418 100644 --- a/test/unit/array.html +++ b/test/unit/array.html @@ -121,10 +121,10 @@ }}, testToJSON: function(){ with(this) { - assertEqual('[]', Object.toJSON([])); - assertEqual('[\"a\"]', Object.toJSON(['a'])); - assertEqual('[\"a\",1]', Object.toJSON(['a', 1])); - assertEqual('[\"a\",{\"b\":null}]', Object.toJSON(['a', {'b': null}])); + assertEqual('[]', [].toJSON()); + assertEqual('[\"a\"]', ['a'].toJSON()); + assertEqual('[\"a\",1]', ['a', 1].toJSON()); + assertEqual('[\"a\",{\"b\":null}]', ['a', {'b': null}].toJSON()); }}, testReduce: function(){ with(this) {