From 93fd447493af07756d4f87aab8b5a7fd010e8593 Mon Sep 17 00:00:00 2001 From: jzaefferer Date: Sun, 20 Mar 2011 15:56:48 +0100 Subject: [PATCH] Use QUnit.push instead of assertion method for custom assertions to get correct filename and line number output --- tests/unit/testsuite.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 ); } }()); -- 2.39.5