dwf: more doc commits

This commit is contained in:
Davis W. Frank
2009-06-28 13:36:51 -07:00
parent 165c041256
commit 19b73469dd
11 changed files with 1007 additions and 135 deletions

View File

@@ -1,7 +1,16 @@
/**
* Base class for pretty printing for expectation results.
*/
jasmine.PrettyPrinter = function() {
this.ppNestLevel_ = 0;
};
/**
* Formats a value in a nice, human-readable string.
*
* @param value
* @returns {String}
*/
jasmine.PrettyPrinter.prototype.format = function(value) {
if (this.ppNestLevel_ > 40) {
// return '(jasmine.pp nested too deeply!)';