mediawiki.util: Remove use of deprecated $.isDomElement in test suite
authorTimo Tijhof <krinklemail@gmail.com>
Thu, 25 Jun 2015 01:16:39 +0000 (02:16 +0100)
committerTimo Tijhof <krinklemail@gmail.com>
Thu, 25 Jun 2015 01:16:39 +0000 (02:16 +0100)
Follows-up 3fa4519b0ee0c0.

Fixes the warning that was output in all Jenkins builds:
> WARN: 'Use of "isDomElement" is deprecated.'

Change-Id: Ic4a1a22ff5b58d9e6181b4c8f9aaa07d83c27b5e

tests/qunit/suites/resources/mediawiki/mediawiki.util.test.js

index 0b42af4..8a3e100 100644 (file)
                        'ResourceLoader', 't-rl', 'More info about ResourceLoader on MediaWiki.org ', 'l'
                );
 
-               assert.ok( $.isDomElement( tbRL ), 'addPortletLink returns a valid DOM Element according to $.isDomElement' );
+               assert.ok( tbRL && tbRL.nodeType, 'addPortletLink returns a DOM Node' );
 
                tbMW = mw.util.addPortletLink( 'p-test-tb', '//mediawiki.org/',
                        'MediaWiki.org', 't-mworg', 'Go to MediaWiki.org', 'm', tbRL );