From e7669f64d88612884df27c5744558191f8e6c8b1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=B6rn=20Zaefferer?= Date: Fri, 13 Oct 2006 14:56:14 +0000 Subject: [PATCH] Added test for #174; Modified failing (IE) tests for find --- build/test/data/with_fries.xml | 24 ++++++++++++++++++++++++ src/ajax/ajax.js | 10 ++++++++++ src/jquery/jquery.js | 6 +++--- 3 files changed, 37 insertions(+), 3 deletions(-) create mode 100644 build/test/data/with_fries.xml diff --git a/build/test/data/with_fries.xml b/build/test/data/with_fries.xml new file mode 100644 index 0000000..30ae207 --- /dev/null +++ b/build/test/data/with_fries.xml @@ -0,0 +1,24 @@ + + + + + + + + + + + 1 + + + + + + + + + + + diff --git a/src/ajax/ajax.js b/src/ajax/ajax.js index 1b1e274..4ade2e8 100644 --- a/src/ajax/ajax.js +++ b/src/ajax/ajax.js @@ -661,6 +661,16 @@ jQuery.extend({ * } * }); * + * @test stop(); + * $.ajax({ + * url: "data/with_fries.xml", dataType: "xml", type: "GET", data: "", success: function(resp) { + * ok( $("properties", resp).length == 1, 'properties in responseXML' ); + * ok( $("jsconf", resp).length == 1, 'jsconf in responseXML' ); + * ok( $("thing", resp).length == 2, 'things in responseXML' ); + * start(); + * } + * }); + * * @name $.ajax * @type jQuery * @param Hash prop A set of properties to initialize the request with. diff --git a/src/jquery/jquery.js b/src/jquery/jquery.js index 1535fb5..7a59a4e 100644 --- a/src/jquery/jquery.js +++ b/src/jquery/jquery.js @@ -1661,9 +1661,9 @@ jQuery.extend({ * t( "Attribute Exists", "*[@title]", ["google"] ); * t( "Attribute Exists", "[@title]", ["google"] ); * - * t( "Non-existing part of attribute [@name*=bla]", "[@name*=bla]", [] ); - * t( "Non-existing start of attribute [@name^=bla]", "[@name^=bla]", [] ); - * t( "Non-existing end of attribute [@name$=bla]", "[@name$=bla]", [] ); + * t( "Non-existing part of attribute", "[@name*=bla]", [] ); + * t( "Non-existing start of attribute", "[@name^=bla]", [] ); + * t( "Non-existing end of attribute", "[@name$=bla]", [] ); * * t( "Attribute Equals", "a[@rel='bookmark']", ["simon1"] ); * t( "Attribute Equals", 'a[@rel="bookmark"]', ["simon1"] ); -- 1.7.10.4