resolve conflict
This commit is contained in:
parent
f42010b657
commit
8547b34f92
|
@ -223,10 +223,6 @@ test("closest(Array)", function() {
|
||||||
same( jQuery("body").closest(["span","html"]), [{selector:"html", elem:document.documentElement, level:2}], "closest([body, html])" );
|
same( jQuery("body").closest(["span","html"]), [{selector:"html", elem:document.documentElement, level:2}], "closest([body, html])" );
|
||||||
});
|
});
|
||||||
|
|
||||||
<<<<<<< HEAD
|
|
||||||
test("not(Selector|undefined)", function() {
|
|
||||||
expect(11);
|
|
||||||
=======
|
|
||||||
test("closest(jQuery)", function() {
|
test("closest(jQuery)", function() {
|
||||||
expect(8);
|
expect(8);
|
||||||
var $child = jQuery("#nothiddendivchild"),
|
var $child = jQuery("#nothiddendivchild"),
|
||||||
|
@ -243,9 +239,8 @@ test("closest(jQuery)", function() {
|
||||||
ok( $child.closest( $body.add($parent) ).is("#nothiddendiv"), "Closest ancestor retrieved." );
|
ok( $child.closest( $body.add($parent) ).is("#nothiddendiv"), "Closest ancestor retrieved." );
|
||||||
});
|
});
|
||||||
|
|
||||||
test("not(Selector)", function() {
|
test("not(Selector|undefined)", function() {
|
||||||
expect(7);
|
expect(11);
|
||||||
>>>>>>> 1a167767305202797cf4c839eb64bd7adfb00182
|
|
||||||
equals( jQuery("#main > p#ap > a").not("#google").length, 2, "not('selector')" );
|
equals( jQuery("#main > p#ap > a").not("#google").length, 2, "not('selector')" );
|
||||||
same( jQuery("p").not(".result").get(), q("firstp", "ap", "sndp", "en", "sap", "first"), "not('.class')" );
|
same( jQuery("p").not(".result").get(), q("firstp", "ap", "sndp", "en", "sap", "first"), "not('.class')" );
|
||||||
same( jQuery("p").not("#ap, #sndp, .result").get(), q("firstp", "en", "sap", "first"), "not('selector, selector')" );
|
same( jQuery("p").not("#ap, #sndp, .result").get(), q("firstp", "en", "sap", "first"), "not('selector, selector')" );
|
||||||
|
@ -254,7 +249,7 @@ test("not(Selector)", function() {
|
||||||
same( jQuery("#ap *").not("code").get(), q("google", "groups", "anchor1", "mark"), "not('tag selector')" );
|
same( jQuery("#ap *").not("code").get(), q("google", "groups", "anchor1", "mark"), "not('tag selector')" );
|
||||||
same( jQuery("#ap *").not("code, #mark").get(), q("google", "groups", "anchor1"), "not('tag, ID selector')" );
|
same( jQuery("#ap *").not("code, #mark").get(), q("google", "groups", "anchor1"), "not('tag, ID selector')" );
|
||||||
same( jQuery("#ap *").not("#mark, code").get(), q("google", "groups", "anchor1"), "not('ID, tag selector')");
|
same( jQuery("#ap *").not("#mark, code").get(), q("google", "groups", "anchor1"), "not('ID, tag selector')");
|
||||||
|
|
||||||
var all = jQuery("p").get();
|
var all = jQuery("p").get();
|
||||||
same( jQuery("p").not(null).get(), all, "not(null) should have no effect");
|
same( jQuery("p").not(null).get(), all, "not(null) should have no effect");
|
||||||
same( jQuery("p").not(undefined).get(), all, "not(undefined) should have no effect");
|
same( jQuery("p").not(undefined).get(), all, "not(undefined) should have no effect");
|
||||||
|
|
Loading…
Reference in a new issue