aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJörn Zaefferer <joern.zaefferer@gmail.com>2006-10-13 14:56:14 +0000
committerJörn Zaefferer <joern.zaefferer@gmail.com>2006-10-13 14:56:14 +0000
commite7669f64d88612884df27c5744558191f8e6c8b1 (patch)
treefbff6601628dd830ed8ca85f6f513ab0b94ed56a
parentbfa8306633da9c2500e4f3e190c81a9827a8f95a (diff)
downloadjquery-e7669f64d88612884df27c5744558191f8e6c8b1.tar.gz
jquery-e7669f64d88612884df27c5744558191f8e6c8b1.zip
Added test for #174; Modified failing (IE) tests for find
-rw-r--r--build/test/data/with_fries.xml24
-rw-r--r--src/ajax/ajax.js10
-rw-r--r--src/jquery/jquery.js6
3 files changed, 37 insertions, 3 deletions
diff --git a/build/test/data/with_fries.xml b/build/test/data/with_fries.xml
new file mode 100644
index 000000000..30ae2073a
--- /dev/null
+++ b/build/test/data/with_fries.xml
@@ -0,0 +1,24 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+ <soap:Body>
+ <jsconf xmlns="http://www.example.com/ns1">
+ <response xmlns:ab="http://www.example.com/ns2">
+ <meta>
+ <component id="seite1">
+ <properties xmlns:cd="http://www.example.com/ns3">
+ <property name="prop1">
+ <thing />
+ <value>1</value>
+ </property>
+ <property name="prop2">
+ <thing att="something" />
+ </property>
+ </properties>
+ </component>
+ </meta>
+ </response>
+ </jsconf>
+ </soap:Body>
+</soap:Envelope>
diff --git a/src/ajax/ajax.js b/src/ajax/ajax.js
index 1b1e274db..4ade2e846 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 1535fb5d4..7a59a4ea6 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"] );