|
JsUnit | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Object | +--Utilities
Defined in jsUnitCore.js
| Constructor Summary | |
Utilities()
|
|
| Method Summary | |
<static> Object
|
getFunctionName(aFunction)
Returns the name of the given function, or 'anonymous' if it has no name |
<static> Object
|
getStackTrace()
Returns the current stack trace |
<static> Object
|
isBlank(string)
Returns whether the given string is blank after being trimmed of whitespace |
<static> Object
|
parseErrorStack(exception)
Returns an array of stack trace elements from the given exception |
<static> void
|
pop(anArray)
Implemented here because the JavaScript Array.push(anObject) and Array.pop() functions are not available in IE 5.0 |
<static> void
|
push(anArray, anObject)
Implemented here because the JavaScript Array.push(anObject) and Array.pop() functions are not available in IE 5.0 |
<static> Object
|
standardizeHTML(html)
Standardizes an HTML string by temporarily creating a DIV, setting its innerHTML to the string, and the asking for the innerHTML back |
<static> Object
|
trim(string)
Strips whitespace from either end of the given string |
| Constructor Detail |
Utilities()
| Method Detail |
<static> Object getFunctionName(aFunction)
aFunction -
<static> Object getStackTrace()
<static> Object isBlank(string)
string -
<static> Object parseErrorStack(exception)
exception -
<static> void pop(anArray)
anArray - the array from which to pop
<static> void push(anArray, anObject)
anArray - the array onto which to push
anObject - the object to push onto the array
<static> Object standardizeHTML(html)
html -
<static> Object trim(string)
string -
|
JsUnit | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||