aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/testsuite.js
diff options
context:
space:
mode:
authorJörn Zaefferer <joern.zaefferer@gmail.com>2012-02-28 15:56:32 +0100
committerJörn Zaefferer <joern.zaefferer@gmail.com>2012-02-29 18:36:40 +0100
commit72023dd045a7fead5a3136ec2400ad4743a190d2 (patch)
tree4999a287a815e6a4200498a2a0241abc349fe599 /tests/unit/testsuite.js
parente6b7486abf2e0f98837e76027084fad6fe908cff (diff)
downloadjquery-ui-72023dd045a7fead5a3136ec2400ad4743a190d2.tar.gz
jquery-ui-72023dd045a7fead5a3136ec2400ad4743a190d2.zip
Update to QUnit 1.3. Replace usage of same with deepEqual and equals with equal.
Diffstat (limited to 'tests/unit/testsuite.js')
-rw-r--r--tests/unit/testsuite.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/unit/testsuite.js b/tests/unit/testsuite.js
index c8afcbe79..d37e27f7b 100644
--- a/tests/unit/testsuite.js
+++ b/tests/unit/testsuite.js
@@ -10,7 +10,7 @@ function testWidgetDefaults( widget, defaults ) {
ok( $.isFunction( pluginDefaults[ key ] ), key );
return;
}
- same( pluginDefaults[ key ], val, key );
+ deepEqual( pluginDefaults[ key ], val, key );
});
});
@@ -67,13 +67,13 @@ window.commonWidgetTests = function( widget, settings ) {
/*
* Experimental assertion for comparing DOM objects.
- *
+ *
* Serializes an element and some attributes and it's children if any, otherwise the text.
* Then compares the result using deepEqual.
*/
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 );
@@ -97,7 +97,7 @@ window.domEqual = function( selector, modifier, message ) {
}
var expected = extract($(selector));
modifier($(selector));
-
+
var actual = extract($(selector));
QUnit.push( QUnit.equiv(actual, expected), actual, expected, message );
}