Added test for #174; Modified failing (IE) tests for find
authorJörn Zaefferer <joern.zaefferer@gmail.com>
Fri, 13 Oct 2006 14:56:14 +0000 (14:56 +0000)
committerJörn Zaefferer <joern.zaefferer@gmail.com>
Fri, 13 Oct 2006 14:56:14 +0000 (14:56 +0000)
build/test/data/with_fries.xml [new file with mode: 0644]
src/ajax/ajax.js
src/jquery/jquery.js

diff --git a/build/test/data/with_fries.xml b/build/test/data/with_fries.xml
new file mode 100644 (file)
index 0000000..30ae207
--- /dev/null
@@ -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>
index 1b1e274..4ade2e8 100644 (file)
@@ -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.
index 1535fb5..7a59a4e 100644 (file)
@@ -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"] );