From: jzaefferer Date: Sun, 20 Mar 2011 14:56:48 +0000 (+0100) Subject: Use QUnit.push instead of assertion method for custom assertions to get X-Git-Tag: 1.9m5~197 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=93fd447493af07756d4f87aab8b5a7fd010e8593;p=jquery-ui.git Use QUnit.push instead of assertion method for custom assertions to get correct filename and line number output --- diff --git a/tests/unit/testsuite.js b/tests/unit/testsuite.js index 9c7c46c22..517b5dfa3 100644 --- a/tests/unit/testsuite.js +++ b/tests/unit/testsuite.js @@ -96,7 +96,8 @@ window.domEqual = function( selector, modifier, message ) { var expected = extract($(selector)); modifier($(selector)); - deepEqual( extract($(selector)), expected, message ); + var actual = extract($(selector)); + QUnit.push( QUnit.equiv(actual, expected), actual, expected, message ); } }());