From: Jörn Zaefferer Date: Wed, 7 Mar 2012 18:45:20 +0000 (+0100) Subject: Accordion: Update test helper to use QUnit.push instead of deepEqual to get useful... X-Git-Tag: 1.9m7~13^2~2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=724772e591e9e721b33c7e2739649b9c5d7a4246;p=jquery-ui.git Accordion: Update test helper to use QUnit.push instead of deepEqual to get useful stacktrace --- diff --git a/tests/unit/accordion/accordion_test_helpers.js b/tests/unit/accordion/accordion_test_helpers.js index 7b316e983..542809ea0 100644 --- a/tests/unit/accordion/accordion_test_helpers.js +++ b/tests/unit/accordion/accordion_test_helpers.js @@ -3,7 +3,7 @@ function accordion_state( accordion ) { var actual = accordion.find( ".ui-accordion-content" ).map(function() { return $( this ).css( "display" ) === "none" ? 0 : 1; }).get(); - deepEqual( actual, expected ); + QUnit.push( QUnit.equiv(actual, expected), actual, expected ); } function accordion_equalHeights( accordion, min, max ) {