diff options
author | jeresig <jeresig@gmail.com> | 2010-10-22 00:40:06 -0400 |
---|---|---|
committer | jeresig <jeresig@gmail.com> | 2010-10-22 00:40:06 -0400 |
commit | 6bc30425f6d3c9c1eaddacc5d08bb29a4a0636ca (patch) | |
tree | 54ab6bb4c45776299193c3e0187d1cd45af55780 | |
parent | 4fc86d5eb1d4eaa3efad77dc224271d254f491e4 (diff) | |
download | jquery-6bc30425f6d3c9c1eaddacc5d08bb29a4a0636ca.tar.gz jquery-6bc30425f6d3c9c1eaddacc5d08bb29a4a0636ca.zip |
Make sure that we don't use matchesSelector on XML Documents (same as with qSA). Fixes #7219.
-rw-r--r-- | test/unit/selector.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/unit/selector.js b/test/unit/selector.js index abb071748..856257f38 100644 --- a/test/unit/selector.js +++ b/test/unit/selector.js @@ -36,7 +36,7 @@ test("element", function() { if ( location.protocol != "file:" ) { test("XML Document Selectors", function() { - expect(7); + expect(8); stop(); jQuery.get("data/with_fries.xml", function(xml) { equals( jQuery("foo_bar", xml).length, 1, "Element Selector with underscore" ); @@ -46,6 +46,7 @@ if ( location.protocol != "file:" ) { equals( jQuery("[name=prop2]", xml).length, 1, "Attribute selector with name" ); equals( jQuery("#seite1", xml).length, 1, "Attribute selector with ID" ); equals( jQuery("component#seite1", xml).length, 1, "Attribute selector with ID" ); + equals( jQuery("component", xml).filter("#seite1").length, 1, "Attribute selector filter with ID" ); start(); }); }); |