Skip to content
Permalink
Browse files

Pull over tests from Sizzle. Fixes #3729. Fixes #6428.

  • Loading branch information...
jitter committed Jan 28, 2011
1 parent e00f74c commit 1e4f3c07c70861fc334a0e61080f8bbde0d7d442
Showing with 10 additions and 1 deletion.
  1. +10 −1 test/unit/selector.js
@@ -264,7 +264,7 @@ test("child and adjacent", function() {
});

test("attributes", function() {
expect(41);
expect(43);

t( "Attribute Exists", "a[title]", ["google"] );
t( "Attribute Exists", "*[title]", ["google"] );
@@ -330,6 +330,15 @@ test("attributes", function() {
t("Find escaped attribute value", "input[name=foo\\[baz\\]]", ["attrbad2"]);

attrbad.remove();

//#6428
t("Find escaped attribute value", "#form input[name=foo\\[bar\\]]", ["hidden2"]);

//#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." );
});

test("pseudo - child", function() {

1 comment on commit 1e4f3c0

@clamiax

This comment has been minimized.

Copy link

commented on 1e4f3c0 Dec 7, 2012

Line 337 is not #3279 but #3729.

Please sign in to comment.
You can’t perform that action at this time.