git.asbjorn.biz
/
jquery.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
15f9d91
)
Only run the visibility selectors if the filter exists.
author
John Resig
<jeresig@gmail.com>
Mon, 7 Dec 2009 23:31:25 +0000
(15:31 -0800)
committer
John Resig
<jeresig@gmail.com>
Mon, 7 Dec 2009 23:31:25 +0000
(15:31 -0800)
test/unit/selector.js
patch
|
blob
|
history
diff --git
a/test/unit/selector.js
b/test/unit/selector.js
index
233d11a
..
3e65cda
100644
(file)
--- a/
test/unit/selector.js
+++ b/
test/unit/selector.js
@@
-379,6
+379,7
@@
test("pseudo - position", function() {
t( "Check element position", "div#nothiddendiv:first > div:first", ["nothiddendivchild"] );
});
+if ( Sizzle.selectors.filters.visibility ) {
test("pseudo - visibility", function() {
expect(11);
@@
-401,6
+402,7
@@
test("pseudo - visibility", function() {
t( "Is Not Visible", '#nothiddendivchild:hidden', [] );
$div.remove();
});
+}
test("pseudo - form", function() {
expect(8);