Fix toJSON unit tests in array.html to use array toJSON methods [Tobie Langel]

This commit is contained in:
Thomas Fuchs 2007-03-11 21:16:10 +00:00
parent c9199c804d
commit d03e70c4d1
1 changed files with 4 additions and 4 deletions

View File

@ -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) {