diff options
Diffstat (limited to 'test/unit/selector.js')
-rw-r--r-- | test/unit/selector.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/unit/selector.js b/test/unit/selector.js index 12297fae9..47837d6ce 100644 --- a/test/unit/selector.js +++ b/test/unit/selector.js @@ -1895,6 +1895,19 @@ QUnit.test( "jQuery.contains in SVG (jQuery trac-10832)", function( assert ) { "parent (negative)" ); } ); +QUnit.testUnlessIE( "jQuery.contains within <template/> doesn't throw (gh-5147)", function( assert ) { + assert.expect( 1 ); + + var template = jQuery( "<template><div><div class='a'></div></div></template>" ), + a = jQuery( template[ 0 ].content ).find( ".a" ); + + template.appendTo( "#qunit-fixture" ); + + jQuery.contains( a[ 0 ].ownerDocument, a[ 0 ] ); + + assert.ok( true, "Didn't throw" ); +} ); + QUnit.test( "jQuery.uniqueSort", function( assert ) { assert.expect( 14 ); |