aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/selector.js
diff options
context:
space:
mode:
authorAnton M <obhvsbypqghgc@gmail.com>2011-02-10 01:29:18 +0100
committerAnton M <obhvsbypqghgc@gmail.com>2011-02-10 01:29:18 +0100
commitf56b4a22a6cf37b3764939b0338bb545fa6b445f (patch)
tree58df8ff51d9b99e3bc2df9ae0cd9ca8bd5f965b7 /test/unit/selector.js
parent6f4b36ed174b000701b9a40ef45f301b2b1505db (diff)
downloadjquery-f56b4a22a6cf37b3764939b0338bb545fa6b445f.tar.gz
jquery-f56b4a22a6cf37b3764939b0338bb545fa6b445f.zip
Pull over tests from Sizzle. "Remove backslashes from tag name filter. Fixes #8220."
Diffstat (limited to 'test/unit/selector.js')
-rw-r--r--test/unit/selector.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/unit/selector.js b/test/unit/selector.js
index 3d83737a3..035752e42 100644
--- a/test/unit/selector.js
+++ b/test/unit/selector.js
@@ -41,7 +41,7 @@ test("element", function() {
if ( location.protocol != "file:" ) {
test("XML Document Selectors", function() {
- expect(8);
+ expect(9);
stop();
jQuery.get("data/with_fries.xml", function(xml) {
equals( jQuery("foo_bar", xml).length, 1, "Element Selector with underscore" );
@@ -52,6 +52,7 @@ if ( location.protocol != "file:" ) {
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" );
+ ok( jQuery( xml.lastChild ).is( "soap\\:Envelope" ), "Check for namespaced element" );
start();
});
});
@@ -337,7 +338,7 @@ test("attributes", function() {
//#3279
var div = document.createElement("div");
div.innerHTML = "<div id='foo' xml:test='something'></div>";
-
+
deepEqual( jQuery( "[xml\\:test]", div ).get(), [ div.firstChild ], "Finding by attribute with escaped characters." );
});