/libcore/luni/src/test/java/libcore/xml/ |
H A D | SaxTest.java | 42 String qName, Attributes attributes) { 46 assertEquals(1, attributes.getLength()); 47 assertEquals("", attributes.getURI(0)); 48 assertOneOf("bar", "", attributes.getLocalName(0)); 49 assertEquals("bar", attributes.getQName(0)); 55 String qName, Attributes attributes) { 59 assertEquals(1, attributes.getLength()); 60 assertEquals("", attributes.getURI(0)); 61 assertOneOf("a:bar", "", attributes.getLocalName(0)); 62 assertEquals("a:bar", attributes 247 startElement( String uri, String localName, String qName, Attributes attributes) argument [all...] |
/libcore/dom/src/test/java/org/w3c/domts/level1/core/ |
H A D | namednodemapchildnoderange.java | 33 * Create a NamedNodeMap object from the attributes of the 68 NamedNodeMap attributes; 74 attributes = testEmployee.getAttributes(); 75 length = (int) attributes.getLength(); 77 child = attributes.item(0); 78 child = attributes.item(1);
|
H A D | hc_namednodemapchildnoderange.java | 31 * Create a NamedNodeMap object from the attributes of the 66 NamedNodeMap attributes; 73 attributes = testEmployee.getAttributes(); 74 length = (int) attributes.getLength(); 80 child = attributes.item(2); 84 child = attributes.item(0); 86 child = attributes.item(1); 88 child = attributes.item(3);
|
H A D | hc_namednodemapremovenameditem.java | 35 * object of the attributes of the last child. Once the 70 NamedNodeMap attributes; 77 attributes = testAddress.getAttributes(); 78 removedNode = attributes.removeNamedItem("class"); 79 streetAttr = (Attr) attributes.getNamedItem("class");
|
H A D | namednodemapremovenameditem.java | 35 * object of the attributes of the last child. Once the 77 NamedNodeMap attributes; 84 attributes = testAddress.getAttributes(); 85 assertNotNull("attributesNotNull", attributes); 86 removedNode = attributes.removeNamedItem("street"); 87 streetAttr = (Attr) attributes.getNamedItem("street");
|
H A D | namednodemapremovenameditemgetvalue.java | 36 * object of the attributes of the last child. Once the 41 * immediately be the attributes value. 79 NamedNodeMap attributes; 86 attributes = testEmployee.getAttributes(); 87 assertNotNull("attributesNotNull", attributes); 88 removedNode = attributes.removeNamedItem("street"); 89 streetAttr = (Attr) attributes.getNamedItem("street");
|
H A D | attreffectivevalue.java | 31 * If an Attr is explicitly assigned any value, then that value is the attributes effective value. 65 NamedNodeMap attributes; 71 attributes = testNode.getAttributes(); 72 domesticAttr = (Attr) attributes.getNamedItem("domestic");
|
H A D | attrentityreplacement.java | 70 NamedNodeMap attributes; 76 attributes = testNode.getAttributes(); 77 streetAttr = (Attr) attributes.getNamedItem("street");
|
H A D | attrname.java | 66 NamedNodeMap attributes; 72 attributes = testNode.getAttributes(); 73 streetAttr = (Attr) attributes.getNamedItem("street");
|
H A D | attrnextsiblingnull.java | 65 NamedNodeMap attributes; 71 attributes = testNode.getAttributes(); 72 domesticAttr = (Attr) attributes.getNamedItem("domestic");
|
H A D | attrparentnodenull.java | 65 NamedNodeMap attributes; 71 attributes = testNode.getAttributes(); 72 domesticAttr = (Attr) attributes.getNamedItem("domestic");
|
H A D | attrprevioussiblingnull.java | 65 NamedNodeMap attributes; 71 attributes = testNode.getAttributes(); 72 domesticAttr = (Attr) attributes.getNamedItem("domestic");
|
H A D | attrspecifiedvalue.java | 68 NamedNodeMap attributes; 74 attributes = testNode.getAttributes(); 75 domesticAttr = (Attr) attributes.getNamedItem("domestic");
|
H A D | attrspecifiedvaluechanged.java | 69 NamedNodeMap attributes; 76 attributes = testNode.getAttributes(); 77 streetAttr = (Attr) attributes.getNamedItem("street");
|
H A D | elementassociatedattribute.java | 31 * Elements may have attributes associated with them. 36 * Elements can actually have attributes. This test uses 68 NamedNodeMap attributes; 74 attributes = testEmployee.getAttributes(); 75 domesticAttr = (Attr) attributes.getNamedItem("domestic");
|
H A D | hc_attreffectivevalue.java | 31 * If an Attr is explicitly assigned any value, then that value is the attributes effective value. 64 NamedNodeMap attributes; 70 attributes = testNode.getAttributes(); 71 domesticAttr = (Attr) attributes.getNamedItem("title");
|
H A D | hc_attrgetvalue1.java | 60 NamedNodeMap attributes; 69 attributes = testNode.getAttributes(); 70 titleAttr = (Attr) attributes.getNamedItem("class");
|
/libcore/luni/src/test/java/tests/org/w3c/dom/ |
H A D | NamedNodeMapSetNamedItemNS.java | 42 * http://www.nist.gov", and put its attributes into a named node map. Create a 85 NamedNodeMap attributes; 96 attributes = element.getAttributes(); 99 attribute = (Attr) attributes.getNamedItemNS( 106 NamedNodeMap attributes; 116 attributes = element.getAttributes(); 117 attributes.setNamedItemNS(attribute1); 118 attribute = (Attr) attributes.getNamedItemNS( 127 NamedNodeMap attributes; 140 attributes [all...] |
H A D | NamedNodeMapGetNamedItemNS.java | 102 NamedNodeMap attributes; 111 attributes = element.getAttributes(); 112 attribute = (Attr) attributes.getNamedItemNS("http://www.nist.gov", 119 NamedNodeMap attributes; 132 attributes = element.getAttributes(); 133 attribute = (Attr) attributes.getNamedItemNS( 140 NamedNodeMap attributes; 151 attributes = element.getAttributes(); 152 attribute = (Attr) attributes.getNamedItemNS( 159 NamedNodeMap attributes; [all...] |
H A D | NamedNodeMapRemoveNamedItemNS.java | 77 NamedNodeMap attributes; 85 attributes = element.getAttributes(); 86 attribute = (Attr) attributes.removeNamedItemNS("http://www.nist.gov", 88 attribute = (Attr) attributes.getNamedItemNS("http://www.nist.gov", 96 // NamedNodeMap attributes; 107 // attributes = element.getAttributes(); 108 // attribute = (Attr) attributes.removeNamedItemNS(nullNS, "defaultAttr"); 109 // attribute = (Attr) attributes.getNamedItemNS(nullNS, "defaultAttr"); 117 NamedNodeMap attributes; 132 attributes [all...] |
H A D | RemoveNamedItemNS.java | 38 * element from the list and get its attributes. Try to remove the attribute 81 NamedNodeMap attributes; 87 attributes = testAddress.getAttributes(); 88 removedNode = attributes.removeNamedItemNS("http://www.usa.com", 91 newAttr = (Attr) attributes.getNamedItem("dmstc:domestic"); 100 NamedNodeMap attributes; 105 attributes = testAddress.getAttributes(); 110 attributes.removeNamedItemNS(namespaceURI, 130 // NamedNodeMap attributes; 147 // attributes [all...] |
/libcore/dom/src/test/java/org/w3c/domts/level2/core/ |
H A D | namednodemapremovenameditemns04.java | 36 * Attempt to remove the xmlns and dmstc attributes of the first element node with the localName 37 * employee. Verify if the 2 attributes were successfully removed. 71 NamedNodeMap attributes; 79 attributes = element.getAttributes(); 80 attributeRemoved = (Attr) attributes.removeNamedItemNS("http://www.w3.org/2000/xmlns/", "xmlns"); 81 attribute = (Attr) attributes.getNamedItemNS("http://www.w3.org/2000/xmlns/", "xmlns"); 83 attributeRemoved = (Attr) attributes.removeNamedItemNS("http://www.w3.org/2000/xmlns/", "dmstc"); 84 attribute = (Attr) attributes.getNamedItemNS("http://www.w3.org/2000/xmlns/", "dmstc");
|
H A D | namednodemapsetnameditemns06.java | 34 * Retreieve the first element whose localName is address and its attributes into a named node map. 36 * Retreieve the second element whose localName is address and its attributes into a named node map. 72 NamedNodeMap attributes; 80 attributes = element.getAttributes(); 81 attr = (Attr) attributes.getNamedItemNS("http://www.usa.com", "domestic"); 83 attributes = element.getAttributes(); 88 newNode = attributes.setNamedItemNS(attr);
|
H A D | namednodemapsetnameditemns07.java | 38 * Retreieve the attributes of first element whose localName is address into a named node map. 40 * from the NamedNodeMap. Retreieve the attributes of second element whose localName is address 78 NamedNodeMap attributes; 86 attributes = element.getAttributes(); 87 attr = (Attr) attributes.getNamedItemNS("http://www.usa.com", "domestic"); 89 attributes = element.getAttributes(); 94 newNode = attributes.setNamedItemNS(attr);
|
H A D | namednodemapsetnameditemns08.java | 36 * Retreieve the first element whose localName is address and its attributes into a named node map. 38 * localName is address and its attributes into a named node map. Invoke setNamedItemNS on the 74 NamedNodeMap attributes; 82 attributes = element.getAttributes(); 83 attr = (Attr) attributes.getNamedItemNS("http://www.usa.com", "domestic"); 85 attributes = element.getAttributes(); 90 newNode = attributes.setNamedItemNS(attr);
|