mirror of
https://github.com/jquery/jquery.git
synced 2026-04-20 03:01:22 -04:00
Tests: Minor updates for QUnit 1.16 compatibility
More to come later.
This commit is contained in:
@@ -43,14 +43,13 @@ function keys( o ) {
|
||||
* @param {jQuery|HTMLElement|Object|Array} elems Target (or array of targets) for jQuery.data.
|
||||
* @param {string} key
|
||||
*/
|
||||
QUnit.expectJqData = function( elems, key ) {
|
||||
var i, elem, expando,
|
||||
currentEnv = "current_testEnvironment";
|
||||
QUnit.expectJqData = function( env, elems, key ) {
|
||||
var i, elem, expando;
|
||||
|
||||
// As of jQuery 2.0, there will be no "cache"-data is
|
||||
// stored and managed completely below the API surface
|
||||
if ( jQuery.cache ) {
|
||||
QUnit[ currentEnv ].checkJqData = true;
|
||||
env.checkJqData = true;
|
||||
|
||||
if ( elems.jquery && elems.toArray ) {
|
||||
elems = elems.toArray();
|
||||
|
||||
Reference in New Issue
Block a user