Max Brunsfeld e3a013ae99 Allow users to set the pretty-printer's recursion depth
Currently, jasmine's pretty printer traverses objects
to 40 levels of nesting. If an object is more deeply
nested than that, an exception is thrown. I find that
after a few levels of nesting, the output becomes
difficult to read. The process of serializing such
deep objects also sometimes crashes the browser or
causes a 'slow script' warning.

This commit exposes a 'MAX_PRETTY_PRINT_DEPTH' option.
It also causes the pretty printer to skip over
parts of an object that are nested to deeply by simply
printing out 'Object' or 'Array', rather than throwing
an exception.
2012-12-03 15:40:00 -08:00
2011-05-06 22:40:53 -04:00
2011-11-04 14:43:19 -07:00
2011-02-27 14:00:45 -08:00
2011-11-04 14:43:19 -07:00
2011-03-09 08:16:47 -08:00
2012-05-09 09:51:29 -07:00

Jasmine

A JavaScript Testing Framework

Jasmine is a Behavior Driven Development testing framework for JavaScript. It does not rely on browsers, DOM, or any JavaScript framework. Thus it's suited for websites, Node.js projects, or anywhere that JavaScript can run.

Documentation & guides live here: http://pivotal.github.com/jasmine/

Support

Maintainers

Copyright (c) 2008-2012 Pivotal Labs. This software is licensed under the MIT License.

Description
No description provided
Readme 28 KiB