aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/callbacks.js
diff options
context:
space:
mode:
authorMike Sherov <mike.sherov@gmail.com>2011-11-06 15:27:42 -0500
committerDave Methvin <dave.methvin@gmail.com>2011-11-06 15:27:42 -0500
commitf35ba5e699c15a1987baa389dbd4fc99f7a7eb03 (patch)
treea5716daad3f92f55af14f7c6573ff4ee8ba88a3b /test/unit/callbacks.js
parent83c72eaa9cea9fec3b38535378334b27ff6bcfb2 (diff)
downloadjquery-f35ba5e699c15a1987baa389dbd4fc99f7a7eb03.tar.gz
jquery-f35ba5e699c15a1987baa389dbd4fc99f7a7eb03.zip
Fix #10691. Remove all instances of equals() and same(), as these are deprecated in QUnit.
Diffstat (limited to 'test/unit/callbacks.js')
-rw-r--r--test/unit/callbacks.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/unit/callbacks.js b/test/unit/callbacks.js
index a1935e743..03d969319 100644
--- a/test/unit/callbacks.js
+++ b/test/unit/callbacks.js
@@ -69,7 +69,7 @@ jQuery.each( tests, function( flags, resultString ) {
output = "X";
cblist = jQuery.Callbacks( flags );
cblist.add(function() {
- equals( this, window, "Basic binding and firing (context)" );
+ equal( this, window, "Basic binding and firing (context)" );
output += Array.prototype.join.call( arguments, "" );
});
cblist.fireWith( window, [ "A", "B" ] );
@@ -79,7 +79,7 @@ jQuery.each( tests, function( flags, resultString ) {
output = "";
cblist = jQuery.Callbacks( flags );
cblist.add(function() {
- equals( this, window, "fireWith with no arguments (context is window)" );
+ equal( this, window, "fireWith with no arguments (context is window)" );
strictEqual( arguments.length, 0, "fireWith with no arguments (no arguments)" );
});
cblist.fireWith();