summaryrefslogtreecommitdiff
path: root/test/testcases/tests/level1
diff options
context:
space:
mode:
authorrsk1994 <rsk1coder99@gmail.com>2014-05-14 20:14:31 +0530
committerRupinder Singh Khokhar <rsk1coder99@gmail.com>2014-06-21 17:35:17 +0530
commit2eebfe9785e83b882dfac17c037bfd490cb0bb6a (patch)
tree5ab39891c87a12de5a4eb3ed7176d3cb667f7216 /test/testcases/tests/level1
parentead52d37920d6c0286b3d9004f41aed4592f18f3 (diff)
downloadlibdom-2eebfe9785e83b882dfac17c037bfd490cb0bb6a.tar.gz
libdom-2eebfe9785e83b882dfac17c037bfd490cb0bb6a.tar.bz2
Including Level2 tests & the Basefont Element , also a minor change in level2 basefontElement test
Diffstat (limited to 'test/testcases/tests/level1')
-rw-r--r--test/testcases/tests/level1/html/HTMLBaseFontElement01.xml (renamed from test/testcases/tests/level1/html/HTMLBaseFontElement01.xml.kfail)0
-rw-r--r--test/testcases/tests/level1/html/HTMLBaseFontElement02.xml (renamed from test/testcases/tests/level1/html/HTMLBaseFontElement02.xml.kfail)0
-rw-r--r--test/testcases/tests/level1/html/HTMLBaseFontElement03.xml (renamed from test/testcases/tests/level1/html/HTMLBaseFontElement03.xml.kfail)0
-rw-r--r--test/testcases/tests/level1/html/HTMLBaseFontElement03.xml.notimpl49
-rw-r--r--test/testcases/tests/level1/html/HTMLFontElement01.xml (renamed from test/testcases/tests/level1/html/HTMLBaseFontElement01.xml.notimpl)14
-rw-r--r--test/testcases/tests/level1/html/HTMLFontElement02.xml (renamed from test/testcases/tests/level1/html/HTMLBaseFontElement02.xml.notimpl)85
-rw-r--r--test/testcases/tests/level1/html/HTMLFontElement03.xml42
7 files changed, 92 insertions, 98 deletions
diff --git a/test/testcases/tests/level1/html/HTMLBaseFontElement01.xml.kfail b/test/testcases/tests/level1/html/HTMLBaseFontElement01.xml
index 525438f..525438f 100644
--- a/test/testcases/tests/level1/html/HTMLBaseFontElement01.xml.kfail
+++ b/test/testcases/tests/level1/html/HTMLBaseFontElement01.xml
diff --git a/test/testcases/tests/level1/html/HTMLBaseFontElement02.xml.kfail b/test/testcases/tests/level1/html/HTMLBaseFontElement02.xml
index 94894d6..94894d6 100644
--- a/test/testcases/tests/level1/html/HTMLBaseFontElement02.xml.kfail
+++ b/test/testcases/tests/level1/html/HTMLBaseFontElement02.xml
diff --git a/test/testcases/tests/level1/html/HTMLBaseFontElement03.xml.kfail b/test/testcases/tests/level1/html/HTMLBaseFontElement03.xml
index e63b16f..e63b16f 100644
--- a/test/testcases/tests/level1/html/HTMLBaseFontElement03.xml.kfail
+++ b/test/testcases/tests/level1/html/HTMLBaseFontElement03.xml
diff --git a/test/testcases/tests/level1/html/HTMLBaseFontElement03.xml.notimpl b/test/testcases/tests/level1/html/HTMLBaseFontElement03.xml.notimpl
deleted file mode 100644
index e63b16f..0000000
--- a/test/testcases/tests/level1/html/HTMLBaseFontElement03.xml.notimpl
+++ /dev/null
@@ -1,49 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
-
-<!--
-
-Copyright (c) 2001-2004 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="HTMLBaseFontElement03">
-<metadata>
-<title>HTMLBaseFontElement03</title>
-<creator>NIST</creator>
-<description>
- The size attribute specifies the base font's size. Retrieve the size attribute and examine its value.
-
- This test is incompatible with L2 HTML implementations due to a change in the type of the attribute.
-</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-38930424"/>
-<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=504"/>
-</metadata>
-<var name="nodeList" type="NodeList"/>
-<var name="testNode" type="Node"/>
-<var name="vsize" type="DOMString" />
-<var name="doc" type="Document"/>
-<var name="domImpl" type="DOMImplementation"/>
-<var name="hasHTML2" type="boolean"/>
-<load var="doc" href="basefont" willBeModified="false"/>
-<implementation var="domImpl" obj="doc"/>
-<hasFeature var="hasHTML2" obj="domImpl" feature='"HTML"' version='"2.0"'/>
-<if><isFalse value="hasHTML2"/>
-<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"basefont"'/>
-<assertSize collection="nodeList" size="1" id="Asize"/>
-<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
-<size interface="HTMLBaseFontElement" obj="testNode" var="vsize"/>
-<assertEquals actual="vsize" expected='"4"' id="sizeLink" ignoreCase="false"/>
-</if>
-</test>
diff --git a/test/testcases/tests/level1/html/HTMLBaseFontElement01.xml.notimpl b/test/testcases/tests/level1/html/HTMLFontElement01.xml
index 525438f..48f0994 100644
--- a/test/testcases/tests/level1/html/HTMLBaseFontElement01.xml.notimpl
+++ b/test/testcases/tests/level1/html/HTMLFontElement01.xml
@@ -16,27 +16,27 @@ 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="HTMLBaseFontElement01">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLFontElement01">
<metadata>
-<title>HTMLBaseFontElement01</title>
+<title>HTMLFontElement01</title>
<creator>NIST</creator>
<description>
- The color attribute specifies the base font's color.
+ The color attribute specifies the font's color.
Retrieve the color attribute 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-87502302"/>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-53532975"/>
</metadata>
<var name="nodeList" type="NodeList"/>
<var name="testNode" type="Node"/>
<var name="vcolor" type="DOMString" />
<var name="doc" type="Document"/>
-<load var="doc" href="basefont" willBeModified="false"/>
-<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"basefont"'/>
+<load var="doc" href="font" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"font"'/>
<assertSize collection="nodeList" size="1" id="Asize"/>
<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
-<color interface="HTMLBaseFontElement" obj="testNode" var="vcolor"/>
+<color interface="HTMLFontElement" obj="testNode" var="vcolor"/>
<assertEquals actual="vcolor" expected='"#000000"' id="colorLink" ignoreCase="false"/>
</test>
diff --git a/test/testcases/tests/level1/html/HTMLBaseFontElement02.xml.notimpl b/test/testcases/tests/level1/html/HTMLFontElement02.xml
index 94894d6..48e405e 100644
--- a/test/testcases/tests/level1/html/HTMLBaseFontElement02.xml.notimpl
+++ b/test/testcases/tests/level1/html/HTMLFontElement02.xml
@@ -1,42 +1,43 @@
-<?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="HTMLBaseFontElement02">
-<metadata>
-<title>HTMLBaseFontElement02</title>
-<creator>NIST</creator>
-<description>
- The face attribute specifies the base font's face identifier.
-
- Retrieve the face attribute 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-88128969"/>
-</metadata>
-<var name="nodeList" type="NodeList"/>
-<var name="testNode" type="Node"/>
-<var name="vface" type="DOMString" />
-<var name="doc" type="Document"/>
-<load var="doc" href="basefont" willBeModified="false"/>
-<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"basefont"'/>
-<assertSize collection="nodeList" size="1" id="Asize"/>
-<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
-<face interface="HTMLBaseFontElement" obj="testNode" var="vface"/>
-<assertEquals actual="vface" expected='"arial,helvitica"' id="faceLink" ignoreCase="false"/>
-</test>
+<?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="HTMLFontElement02">
+<metadata>
+<title>HTMLFontElement02</title>
+<creator>NIST</creator>
+<description>
+ The face attribute specifies the font's face identifier.
+
+ Retrieve the face attribute 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-55715655"/>
+<subject resource="http://www.w3.org/TR/DOM-Level-2-HTML/html#HTML-HTMLFormElement-length"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vface" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="font" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"font"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<face interface="HTMLFontElement" obj="testNode" var="vface"/>
+<assertEquals actual="vface" expected='"arial,helvetica"' id="faceLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLFontElement03.xml b/test/testcases/tests/level1/html/HTMLFontElement03.xml
new file mode 100644
index 0000000..82ced1a
--- /dev/null
+++ b/test/testcases/tests/level1/html/HTMLFontElement03.xml
@@ -0,0 +1,42 @@
+<?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="HTMLFontElement03">
+<metadata>
+<title>HTMLFontElement03</title>
+<creator>NIST</creator>
+<description>
+ The size attribute specifies the font's size.
+
+ Retrieve the size attribute 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-90127284"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vsize" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="font" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"font"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<size interface="HTMLFontElement" obj="testNode" var="vsize"/>
+<assertEquals actual="vsize" expected='"4"' id="sizeLink" ignoreCase="false"/>
+</test>