Subversion Repositories JSX

Compare Revisions

Last modification

Ignore whitespace Rev 637 → Rev 638

/trunk/test/test.js
424,7 → 424,7
/**
* Asserts that two objects are equal. If they are not,
* an {@link #AssertionError} is thrown with a default message.
* Two object are considered equal only if their keys are
* Two objects are considered equal only if their keys are
* strictly equal (shallow strict comparison).
*
* @function
441,7 → 441,7
function _thrower (expecteds, actuals)
{
return _throwThis(_AssertionError,
"assertObjectEquals(expecteds, actuals)");
"assertObjectEquals(" + expecteds + ", " + actuals + ")");
}
 
/**
488,6 → 488,16
}
}
 
keys = jsx.object.getKeys(actuals);
for (i = keys.length; i--;)
{
key = keys[i];
if (expecteds[key] !== actuals[key])
{
return _thrower(expecteds, actuals);
}
}
 
return true;
};
}()),