From 57fb2dc02ec286c51b456f0e460ad258f332b6ac Mon Sep 17 00:00:00 2001 From: Oleg Gaidarenko Date: Tue, 19 May 2015 13:12:11 +0300 Subject: [PATCH] Attributes: don't test SVG CSS-class manipulation in IE8 Ref 20aaed367f993f3c2aa204183d82d0d73efa114f --- test/unit/attributes.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/test/unit/attributes.js b/test/unit/attributes.js index 022d4a8b3..43ccaacdf 100644 --- a/test/unit/attributes.js +++ b/test/unit/attributes.js @@ -1478,6 +1478,18 @@ test( "Insignificant white space returned for $(option).val() (#14858)", functio }); test( "SVG class manipulation (gh-2199)", function() { + + // Support: IE8 + var svgSupport = !!document.createElementNS && + !!document.createElementNS( "http://www.w3.org/2000/svg", "svg" ).createSVGRect; + + if ( !svgSupport ) { + expect( 1 ); + ok( true, "Environment doesn't support SVG" ); + + return; + } + expect( 12 ); function createSVGElement( nodeName ) { -- 2.39.5