Skip to content
Permalink
Browse files

Add simple error handling for domEqual method (was failing for menu, …

…output not helpful).
  • Loading branch information
jzaefferer committed May 2, 2011
1 parent 0496a50 commit 5c4709882944fbd9800ecaab79d42cb9e3b5d96c
Showing with 4 additions and 0 deletions.
  1. +4 −0 tests/unit/testsuite.js
@@ -75,6 +75,10 @@ window.domEqual = function( selector, modifier, message ) {
var attributes = ["class", "role", "id", "tabIndex", "aria-activedescendant"];

function extract(value) {
if (!value || !value.length) {
QUnit.push( false, actual, expected, "domEqual failed, can't extract " + selector + ", message was: " + message );
return;
}
var result = {};
result.nodeName = value[0].nodeName;
$.each(attributes, function(index, attr) {

0 comments on commit 5c47098

Please sign in to comment.
You can’t perform that action at this time.