|
1 <?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet href="test-to-html.xsl" type="text/xml"?> |
|
2 |
|
3 <!-- |
|
4 Copyright (c) 2001-2004 World Wide Web Consortium, |
|
5 (Massachusetts Institute of Technology, Institut National de |
|
6 Recherche en Informatique et en Automatique, Keio University). All |
|
7 Rights Reserved. This program is distributed under the W3C's Software |
|
8 Intellectual Property License. This program is distributed in the |
|
9 hope that it will be useful, but WITHOUT ANY WARRANTY; without even |
|
10 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR |
|
11 PURPOSE. |
|
12 |
|
13 See W3C License http://www.w3.org/Consortium/Legal/ for more details. |
|
14 --> |
|
15 |
|
16 |
|
17 <test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-3" name="attrgetschematypeinfo08"> |
|
18 <metadata> |
|
19 <title>attrgetschematypeinfo08</title> |
|
20 <creator>IBM</creator> |
|
21 <description> |
|
22 The getSchemaTypeInfo method retrieves the type information associated with this attribute. |
|
23 |
|
24 Load a valid document with an XML Schema. |
|
25 Invoke getSchemaTypeInfo method on an attribute having [type definition] property. Expose {name} and {target namespace} |
|
26 properties of the [type definition] property. Verity that the typeName and typeNamespace of the 'title' attribute's (of first 'acronym' element) |
|
27 schemaTypeInfo are correct. |
|
28 </description> |
|
29 <contributor>Jenny Hsu</contributor> |
|
30 <date qualifier="created">2003-10-27</date> |
|
31 <subject resource="http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/core#Attr-schemaTypeInfo"/> |
|
32 </metadata> |
|
33 <implementationAttribute name="schemaValidating" value="true"/> |
|
34 <var name="doc" type="Document"/> |
|
35 <var name="elemList" type="NodeList"/> |
|
36 <var name="acElem" type="Element"/> |
|
37 <var name="attr" type="Attr"/> |
|
38 <var name="attrTypeInfo" type="TypeInfo"/> |
|
39 <var name="typeName" type="DOMString"/> |
|
40 <var name="typeNamespace" type="DOMString"/> |
|
41 <load var="doc" href="hc_staff" willBeModified="false"/> |
|
42 <getElementsByTagName var="elemList" obj="doc" tagname='"acronym"' interface="Document"/> |
|
43 <item var="acElem" obj="elemList" index="0" interface="NodeList"/> |
|
44 <getAttributeNode var="attr" obj="acElem" name='"title"'/> |
|
45 <schemaTypeInfo var="attrTypeInfo" obj="attr" interface="Attr"/> |
|
46 <typeName var="typeName" obj="attrTypeInfo"/> |
|
47 <typeNamespace var="typeNamespace" obj="attrTypeInfo"/> |
|
48 <assertEquals expected='"string"' actual="typeName" id="attrgetschematypeinfo08_typeName" ignoreCase="false"/> |
|
49 <assertEquals actual="typeNamespace" expected='"http://www.w3.org/2001/XMLSchema"' id="attrgetschematypeinfo08_typeNamespace" ignoreCase="false"/> |
|
50 </test> |