mikemoraned 33e4f5efbe Allow users to set the maximum length of array that the pretty-printer
will print out.

Currently, jasmine's pretty printer will iterate over an entire array,
formatting every element recursively. For very large arrays, this can
crash the page, or cause a 'slow script' warning.

This commit exposes a 'MAX_PRETTY_PRINT_ARRAY_LENGTH' option. If an
array larger than this is encountered, recursion will stop and the
array length will be printed instead e.g. "Array[20000000]".

The 'MAX_PRETTY_PRINT_ARRAY_LENGTH' option defaults to 100. This is
length of array will not kill your browser, but will allow you
to see big arrays, if you can stomach the output.
2014-03-12 12:16:01 -07:00
2014-03-11 13:40:28 -07:00
2014-03-11 13:40:28 -07:00
2012-12-03 09:38:54 -08:00
2013-10-04 13:32:56 -07:00
2013-08-06 08:04:37 -07:00
2014-02-16 22:13:53 +01:00
2014-03-11 13:40:28 -07:00
2011-03-09 08:16:47 -08:00
2014-02-16 22:13:53 +01:00
2014-02-16 14:57:14 -08:00
2014-03-11 13:54:47 -07:00
2014-03-11 13:40:28 -07:00
2014-03-11 13:40:28 -07:00

Build Status Code Climate

=======

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://jasmine.github.io
For a quick start guide of Jasmine 2.0, see the beginning of http://jasmine.github.io/2.0/introduction.html

Upgrading from Jasmine 1.x? Check out the 2.0 release notes for a list of what's new (including breaking interface changes).

Contributing

Please read the contributors' guide

Support

Maintainers

Maintainers Emeritus

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

Description
No description provided
Readme 28 KiB