Fix #10814. Make support tests lazy and broken out to components.

This commit is contained in:
Michał Gołębiowski
2013-08-27 00:54:13 +02:00
parent 776012b8b3
commit bbbdd94725
35 changed files with 383 additions and 433 deletions

View File

@@ -0,0 +1,15 @@
define([
"../core",
"../selector"
], function( jQuery ) {
jQuery.expr.filters.hidden = function( elem ) {
// Support: Opera <= 12.12
// Opera reports offsetWidths and offsetHeights less than zero on some elements
return elem.offsetWidth <= 0 && elem.offsetHeight <= 0;
};
jQuery.expr.filters.visible = function( elem ) {
return !jQuery.expr.filters.hidden( elem );
};
});