diff options
author | Daniel Silverstone <dsilvers@digital-scurf.org> | 2012-07-18 16:06:56 +0100 |
---|---|---|
committer | Daniel Silverstone <dsilvers@digital-scurf.org> | 2012-07-18 16:06:56 +0100 |
commit | a39e9bba071975fd6f81e5a4382f37e1f07db214 (patch) | |
tree | e362445dce8ec5855d709ea702da371006e976d7 /test/testcases/tests/level1/html/HTMLTextAreaElement10.xml | |
parent | 57bee28b15d3f8b878e3ebfe8aaa7aeb0fd7addf (diff) | |
download | libdom-a39e9bba071975fd6f81e5a4382f37e1f07db214.tar.gz libdom-a39e9bba071975fd6f81e5a4382f37e1f07db214.tar.bz2 |
TEST: Pre-enable the textarea tests ready
Diffstat (limited to 'test/testcases/tests/level1/html/HTMLTextAreaElement10.xml')
-rw-r--r-- | test/testcases/tests/level1/html/HTMLTextAreaElement10.xml | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/test/testcases/tests/level1/html/HTMLTextAreaElement10.xml b/test/testcases/tests/level1/html/HTMLTextAreaElement10.xml new file mode 100644 index 0000000..1cedcb0 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLTextAreaElement10.xml @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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="HTMLTextAreaElement10">
+<metadata>
+<title>HTMLTextAreaElement10</title>
+<creator>NIST</creator>
+<description>
+ The tabIndex attribute is an index that represents the element's position
+ in the tabbing order.
+
+ Retrieve the tabIndex attribute of the 1st TEXTAREA element and examine
+ its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-60363303"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vtabindex" type="int" />
+<var name="doc" type="Document"/>
+<load var="doc" href="textarea" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"textarea"'/>
+<assertSize collection="nodeList" size="3" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<tabIndex interface="HTMLTextAreaElement" obj="testNode" var="vtabindex"/>
+<assertEquals actual="vtabindex" expected="5" id="tabIndexLink" ignoreCase="false"/>
+</test>
|