jquery/qunit — Issue #179: Add hook for custom types output in jsdump
Author: jzaefferer
Created: 2011-11-24 15:28:39+00:00
State: open

Currently the output for big objects, even for passed tests, can get pretty nasty big. Customizing QUnit.jsDump is possible, but not nice at all.

There should be a way to detect and format custom types, something like this:

QUnit.jsParse.registerType(function(obj) {
/* return true or false /
}, function(obj) {
/ return string */
})

Or make that a single function: If it matches, format it, otherwise return false/null/undefined.