summaryrefslogtreecommitdiffstats
path: root/test/unit/css.js
diff options
context:
space:
mode:
authorTimmy Willison <timmywillisn@gmail.com>2015-11-10 13:26:15 -0500
committerTimmy Willison <timmywillisn@gmail.com>2015-11-11 10:10:10 -0500
commit88046440da8f5433b510ea705255d1df12c2963e (patch)
tree52e5a66b79835681c0eda8642574dcf958063d8a /test/unit/css.js
parentab06be561ec74cccaa2d581830210f82326f05c3 (diff)
downloadjquery-88046440da8f5433b510ea705255d1df12c2963e.tar.gz
jquery-88046440da8f5433b510ea705255d1df12c2963e.zip
Selector: pass jQuery unit tests with selector-native
- Ignore certain tests that obviously are not supported - Beefed up the sortOrder, uniqueSort, isXMLDoc, and attr functions Fixes gh-1742 Fixes gh-2048 Close gh-2703
Diffstat (limited to 'test/unit/css.js')
-rw-r--r--test/unit/css.js8
1 files changed, 2 insertions, 6 deletions
diff --git a/test/unit/css.js b/test/unit/css.js
index 343459dfb..8715c56d5 100644
--- a/test/unit/css.js
+++ b/test/unit/css.js
@@ -666,9 +666,7 @@ QUnit.test( "show() after hide() should always set display to initial value (#14
}
-if ( jQuery.fn.toggle ) {
-
-QUnit.test( "toggle()", function( assert ) {
+QUnit[ jQuery.find.compile && jQuery.fn.toggle ? "test" : "skip" ]( "toggle()", function( assert ) {
assert.expect( 9 );
var div, oldHide,
x = jQuery( "#foo" );
@@ -701,8 +699,6 @@ QUnit.test( "toggle()", function( assert ) {
jQuery.fn.hide = oldHide;
} );
-}
-
QUnit.test( "jQuery.css(elem, 'height') doesn't clear radio buttons (bug #1095)", function( assert ) {
assert.expect( 4 );
@@ -1012,7 +1008,7 @@ QUnit.test( "css opacity consistency across browsers (#12685)", function( assert
assert.equal( Math.round( el.css( "opacity" ) * 100 ), 20, "remove opacity override" );
} );
-QUnit.test( ":visible/:hidden selectors", function( assert ) {
+QUnit[ jQuery.find.compile ? "test" : "skip" ]( ":visible/:hidden selectors", function( assert ) {
assert.expect( 17 );
var $div, $table, $a;