diff options
Diffstat (limited to 'test/testcases/tests/level1/core/documentcreateelementcasesensitive.xml')
-rw-r--r-- | test/testcases/tests/level1/core/documentcreateelementcasesensitive.xml | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/test/testcases/tests/level1/core/documentcreateelementcasesensitive.xml b/test/testcases/tests/level1/core/documentcreateelementcasesensitive.xml new file mode 100644 index 0000000..b87e4e9 --- /dev/null +++ b/test/testcases/tests/level1/core/documentcreateelementcasesensitive.xml @@ -0,0 +1,46 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +Copyright (c) 2001 World Wide Web Consortium, +(Massachusetts Institute of Technology, Institut National de +Recherche en Informatique et en Automatique, Keio University). All +Rights Reserved. This program is distributed under the W3C's Software +Intellectual Property License. This program is distributed in the +hope that it will be useful, but WITHOUT ANY WARRANTY; without even +the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR +PURPOSE. +See W3C License http://www.w3.org/Consortium/Legal/ for more details. +--><!DOCTYPE test SYSTEM "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="documentcreateelementcasesensitive"> +<metadata> +<title>documentCreateElementCaseSensitive</title> +<creator>NIST</creator> +<description> + The tagName parameter in the "createElement(tagName)" + method is case-sensitive for XML documents. + Retrieve the entire DOM document and invoke its + "createElement(tagName)" method twice. Once for tagName + equal to "address" and once for tagName equal to "ADDRESS" + Each call should create a distinct Element node. The + newly created Elements are then assigned attributes + that are retrieved. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-2141741547"/> +</metadata> +<var name="doc" type="Document"/> +<var name="newElement1" type="Element"/> +<var name="newElement2" type="Element"/> +<var name="attribute1" type="DOMString"/> +<var name="attribute2" type="DOMString"/> +<load var="doc" href="staff" willBeModified="true"/> +<createElement obj="doc" var="newElement1" tagName=""ADDRESS""/> +<createElement obj="doc" var="newElement2" tagName=""address""/> +<setAttribute obj="newElement1" name=""district"" value=""Fort Worth""/> +<setAttribute obj="newElement2" name=""county"" value=""Dallas""/> +<getAttribute obj="newElement1" var="attribute1" name=""district""/> +<getAttribute obj="newElement2" var="attribute2" name=""county""/> +<assertEquals actual="attribute1" expected='"Fort Worth"' ignoreCase="false" id="attrib1"/> +<assertEquals actual="attribute2" expected='"Dallas"' ignoreCase="false" id="attrib2"/> +</test> |