From 376f4e8cf637e76445082d7fdb88ab420d488b5c Mon Sep 17 00:00:00 2001 From: Richard Gibson Date: Mon, 9 Jul 2012 02:56:42 -0400 Subject: [PATCH] Fix #11971 unit test in browsers lacking backgroundPositionX. Closes gh-850. --- test/unit/effects.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/unit/effects.js b/test/unit/effects.js index 402a7a587..35ba27275 100644 --- a/test/unit/effects.js +++ b/test/unit/effects.js @@ -1681,6 +1681,13 @@ asyncTest( "non-px animation handles non-numeric start (#11971)", 2, function() var foo = jQuery("#foo"), initial = foo.css("backgroundPositionX"); + if ( initial == null ) { + expect(1); + ok( true, "Style property not understood" ); + start(); + return; + } + foo.animate({ backgroundPositionX: "42%" }, { duration: 1, progress: function( anim, percent ) {