- From: Kris Krueger via cvs-syncmail <cvsmail@w3.org>
- Date: Thu, 25 Feb 2010 15:58:39 +0000
- To: public-html-commits@w3.org
Update of /sources/public/html5/tests/submission/Microsoft/htmldom In directory hutz:/tmp/cvs-serv23801/submission/Microsoft/htmldom Added Files: HTMLAreaElement01.html HTMLAreaElement02.html HTMLAreaElement03.html HTMLAreaElement04.html HTMLAreaElement05.html HTMLAreaElement06.html HTMLAreaElement07.html HTMLAreaElement08.html Log Message: Initial add of the HTMLAreaElementXX.html files. These are a direct copy from www.w3.org/2004/04/ecmascript/level2/html/ --- NEW FILE: HTMLAreaElement05.html --- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <META http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta content="text/html; charset=UTF-8" http-equiv="Content-Type"> <title>http://www.w3.org/2001/DOM-Test-Suite/level2/html/HTMLAreaElement05</title> <link type="text/css" rel="stylesheet" href="http://www.w3.org/StyleSheets/activity-home.css"> <script src="../../jsunit/app/jsUnitCore.js" type="text/javascript"></script><script src="DOMTestCase.js" type="text/javascript"></script><script type="text/javascript"> // expose test function names function exposeTestFunctionNames() { return ['HTMLAreaElement05']; } var docsLoaded = -1000000; var builder = null; // // This function is called by the testing framework before // running the test suite. // // If there are no configuration exceptions, asynchronous // document loading is started. Otherwise, the status // is set to complete and the exception is immediately // raised when entering the body of the test. // function setUpPage() { setUpPageStatus = 'running'; try { // // creates test document builder, may throw exception // builder = createConfiguredBuilder(); docsLoaded = 0; var docRef = null; if (typeof(this.doc) != 'undefined') { docRef = this.doc; } docsLoaded += preload(docRef, "doc", "area"); if (docsLoaded == 1) { setUpPage = 'complete'; } } catch(ex) { catchInitializationError(builder, ex); setUpPage = 'complete'; } } // // This method is called on the completion of // each asychronous load started in setUpTests. // // When every synchronous loaded document has completed, // the page status is changed which allows the // body of the test to be executed. function loadComplete() { if (++docsLoaded == 1) { setUpPageStatus = 'complete'; } } /** * The noHref attribute specifies that this area is inactive. Retrieve the noHref attribute and examine its value. * @author NIST * @author Mary Brady * @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-61826871 */ function HTMLAreaElement05() { var success; if(checkInitialization(builder, "HTMLAreaElement05") != null) return; var nodeList; var testNode; var vnohref; var doc; var docRef = null; if (typeof(this.doc) != 'undefined') { docRef = this.doc; } doc = load(docRef, "doc", "area"); nodeList = doc.getElementsByTagName("area"); assertSize("Asize",1,nodeList); testNode = nodeList.item(0); vnohref = testNode.noHref; assertFalse("noHrefLink",vnohref); } </script> </head> <body> <h2>Test http://www.w3.org/2001/DOM-Test-Suite/level2/html/HTMLAreaElement05</h2> <p><test name='HTMLAreaElement05' schemaLocation='http://www.w3.org/2001/DOM-Test-Suite/Level-1 dom1.xsd'><br> <metadata><br> <title>HTMLAreaElement05</title> <br> <creator>NIST</creator> <br> <description> The noHref attribute specifies that this area is inactive. Retrieve the noHref attribute and examine its value. </description> <br> <contributor>Mary Brady</contributor> <br> <date qualifier='created'>2002-02-22</date> <br> <subject resource='<a href="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-61826871">http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-61826871</a>'/> <br></metadata><br> <var name='nodeList' type='NodeList'/><br> <var name='testNode' type='Node'/><br> <var name='vnohref' type='boolean'/><br> <var name='doc' type='Document'/><br> <load var='doc' href='area' willBeModified='false'/><br> <getElementsByTagName interface='Document' obj='doc' var='nodeList' tagname='"area"'/><br> <assertSize collection='nodeList' size='1' <a id="Asize">id='Asize'</a>/><br> <item interface='NodeList' obj='nodeList' var='testNode' index='0'/><br> <noHref interface='HTMLAreaElement' obj='testNode' var='vnohref'/><br> <assertFalse actual='vnohref' <a id="noHrefLink">id='noHrefLink'</a>/><br></test><br> </p> <p> 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. </p> <p>See W3C License <a href="http://www.w3.org/Consortium/Legal/">http://www.w3.org/Consortium/Legal/</a> for more details.</p> <iframe name="doc" src="files/area.html"></iframe> <br> </body> </html> --- NEW FILE: HTMLAreaElement03.html --- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <META http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta content="text/html; charset=UTF-8" http-equiv="Content-Type"> <title>http://www.w3.org/2001/DOM-Test-Suite/level2/html/HTMLAreaElement03</title> <link type="text/css" rel="stylesheet" href="http://www.w3.org/StyleSheets/activity-home.css"> <script src="../../jsunit/app/jsUnitCore.js" type="text/javascript"></script><script src="DOMTestCase.js" type="text/javascript"></script><script type="text/javascript"> // expose test function names function exposeTestFunctionNames() { return ['HTMLAreaElement03']; } var docsLoaded = -1000000; var builder = null; // // This function is called by the testing framework before // running the test suite. // // If there are no configuration exceptions, asynchronous // document loading is started. Otherwise, the status // is set to complete and the exception is immediately // raised when entering the body of the test. // function setUpPage() { setUpPageStatus = 'running'; try { // // creates test document builder, may throw exception // builder = createConfiguredBuilder(); docsLoaded = 0; var docRef = null; if (typeof(this.doc) != 'undefined') { docRef = this.doc; } docsLoaded += preload(docRef, "doc", "area"); if (docsLoaded == 1) { setUpPage = 'complete'; } } catch(ex) { catchInitializationError(builder, ex); setUpPage = 'complete'; } } // // This method is called on the completion of // each asychronous load started in setUpTests. // // When every synchronous loaded document has completed, // the page status is changed which allows the // body of the test to be executed. function loadComplete() { if (++docsLoaded == 1) { setUpPageStatus = 'complete'; } } /** * The coords attribute specifies a comma-seperated list of lengths, defining an active region geometry. Retrieve the coords attribute and examine its value. * @author NIST * @author Mary Brady * @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-66021476 */ function HTMLAreaElement03() { var success; if(checkInitialization(builder, "HTMLAreaElement03") != null) return; var nodeList; var testNode; var vcoords; var doc; var docRef = null; if (typeof(this.doc) != 'undefined') { docRef = this.doc; } doc = load(docRef, "doc", "area"); nodeList = doc.getElementsByTagName("area"); assertSize("Asize",1,nodeList); testNode = nodeList.item(0); vcoords = testNode.coords; assertEquals("coordsLink","0,2,45,45",vcoords); } </script> </head> <body> <h2>Test http://www.w3.org/2001/DOM-Test-Suite/level2/html/HTMLAreaElement03</h2> <p><test name='HTMLAreaElement03' schemaLocation='http://www.w3.org/2001/DOM-Test-Suite/Level-1 dom1.xsd'><br> <metadata><br> <title>HTMLAreaElement03</title> <br> <creator>NIST</creator> <br> <description> The coords attribute specifies a comma-seperated list of lengths, defining an active region geometry. Retrieve the coords attribute and examine its value. </description> <br> <contributor>Mary Brady</contributor> <br> <date qualifier='created'>2002-02-22</date> <br> <subject resource='<a href="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-66021476">http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-66021476</a>'/> <br></metadata><br> <var name='nodeList' type='NodeList'/><br> <var name='testNode' type='Node'/><br> <var name='vcoords' type='DOMString'/><br> <var name='doc' type='Document'/><br> <load var='doc' href='area' willBeModified='false'/><br> <getElementsByTagName interface='Document' obj='doc' var='nodeList' tagname='"area"'/><br> <assertSize collection='nodeList' size='1' <a id="Asize">id='Asize'</a>/><br> <item interface='NodeList' obj='nodeList' var='testNode' index='0'/><br> <coords interface='HTMLAreaElement' obj='testNode' var='vcoords'/><br> <assertEquals actual='vcoords' expected='"0,2,45,45"' <a id="coordsLink">id='coordsLink'</a> ignoreCase='false'/>br></test><br> </p> <p> 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. </p> <p>See W3C License <a href="http://www.w3.org/Consortium/Legal/">http://www.w3.org/Consortium/Legal/</a> for more details.</p> <iframe name="doc" src="files/area.html"></iframe> <br> </body> </html> --- NEW FILE: HTMLAreaElement04.html --- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <META http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta content="text/html; charset=UTF-8" http-equiv="Content-Type"> <title>http://www.w3.org/2001/DOM-Test-Suite/level2/html/HTMLAreaElement04</title> <link type="text/css" rel="stylesheet" href="http://www.w3.org/StyleSheets/activity-home.css"> <script src="../../jsunit/app/jsUnitCore.js" type="text/javascript"></script><script src="DOMTestCase.js" type="text/javascript"></script><script type="text/javascript"> // expose test function names function exposeTestFunctionNames() { return ['HTMLAreaElement04']; } var docsLoaded = -1000000; var builder = null; // // This function is called by the testing framework before // running the test suite. // // If there are no configuration exceptions, asynchronous // document loading is started. Otherwise, the status // is set to complete and the exception is immediately // raised when entering the body of the test. // function setUpPage() { setUpPageStatus = 'running'; try { // // creates test document builder, may throw exception // builder = createConfiguredBuilder(); docsLoaded = 0; var docRef = null; if (typeof(this.doc) != 'undefined') { docRef = this.doc; } docsLoaded += preload(docRef, "doc", "area"); if (docsLoaded == 1) { setUpPage = 'complete'; } } catch(ex) { catchInitializationError(builder, ex); setUpPage = 'complete'; } } // // This method is called on the completion of // each asychronous load started in setUpTests. // // When every synchronous loaded document has completed, // the page status is changed which allows the // body of the test to be executed. function loadComplete() { if (++docsLoaded == 1) { setUpPageStatus = 'complete'; } } /** * The href attribute specifies the URI of the linked resource. Retrieve the href attribute and examine its value. * @author NIST * @author Mary Brady * @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-34672936 */ function HTMLAreaElement04() { var success; if(checkInitialization(builder, "HTMLAreaElement04") != null) return; var nodeList; var testNode; var vhref; var doc; var docRef = null; if (typeof(this.doc) != 'undefined') { docRef = this.doc; } doc = load(docRef, "doc", "area"); nodeList = doc.getElementsByTagName("area"); assertSize("Asize",1,nodeList); testNode = nodeList.item(0); vhref = testNode.href; assertURIEquals("hrefLink",null,null,null,"dletter.html",null,null,null,null,vhref); } </script> </head> <body> <h2>Test http://www.w3.org/2001/DOM-Test-Suite/level2/html/HTMLAreaElement04</h2> <p><test name='HTMLAreaElement04' schemaLocation='http://www.w3.org/2001/DOM-Test-Suite/Level-1 dom1.xsd'><br> <metadata><br> <title>HTMLAreaElement04</title> <br> <creator>NIST</creator> <br> <description> The href attribute specifies the URI of the linked resource. Retrieve the href attribute and examine its value. </description> <br> <contributor>Mary Brady</contributor> <br> <date qualifier='created'>2002-02-22</date> <br> <subject resource='<a href="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-34672936">http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-34672936</a>'/> <br></metadata><br> <var name='nodeList' type='NodeList'/><br> <var name='testNode' type='Node'/><br> <var name='vhref' type='DOMString'/><br> <var name='doc' type='Document'/><br> <load var='doc' href='area' willBeModified='false'/><br> <getElementsByTagName interface='Document' obj='doc' var='nodeList' tagname='"area"'/><br> <assertSize collection='nodeList' size='1' <a id="Asize">id='Asize'</a>/><br> <item interface='NodeList' obj='nodeList' var='testNode' index='0'/><br> <href interface='HTMLAreaElement' obj='testNode' var='vhref'/><br> <assertURIEquals actual='vhref' file='"dletter.html"' <a id="hrefLink">id='hrefLink'</a>/><br></test><br> </p> <p> 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. </p> <p>See W3C License <a href="http://www.w3.org/Consortium/Legal/">http://www.w3.org/Consortium/Legal/</a> for more details.</p> <iframe name="doc" src="files/area.html"></iframe> <br> </body> </html> --- NEW FILE: HTMLAreaElement01.html --- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <META http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta content="text/html; charset=UTF-8" http-equiv="Content-Type"> <title>http://www.w3.org/2001/DOM-Test-Suite/level2/html/HTMLAreaElement01</title> <link type="text/css" rel="stylesheet" href="http://www.w3.org/StyleSheets/activity-home.css"> <script src="../../jsunit/app/jsUnitCore.js" type="text/javascript"></script><script src="DOMTestCase.js" type="text/javascript"></script><script type="text/javascript"> // expose test function names function exposeTestFunctionNames() { return ['HTMLAreaElement01']; } var docsLoaded = -1000000; var builder = null; // // This function is called by the testing framework before // running the test suite. // // If there are no configuration exceptions, asynchronous // document loading is started. Otherwise, the status // is set to complete and the exception is immediately // raised when entering the body of the test. // function setUpPage() { setUpPageStatus = 'running'; try { // // creates test document builder, may throw exception // builder = createConfiguredBuilder(); docsLoaded = 0; var docRef = null; if (typeof(this.doc) != 'undefined') { docRef = this.doc; } docsLoaded += preload(docRef, "doc", "area"); if (docsLoaded == 1) { setUpPage = 'complete'; } } catch(ex) { catchInitializationError(builder, ex); setUpPage = 'complete'; } } // // This method is called on the completion of // each asychronous load started in setUpTests. // // When every synchronous loaded document has completed, // the page status is changed which allows the // body of the test to be executed. function loadComplete() { if (++docsLoaded == 1) { setUpPageStatus = 'complete'; } } /** * The accessKey attribute specifies a single character access key to give access to the control form. Retrieve the accessKey attribute and examine its value. * @author NIST * @author Mary Brady * @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-57944457 */ function HTMLAreaElement01() { var success; if(checkInitialization(builder, "HTMLAreaElement01") != null) return; var nodeList; var testNode; var vaccesskey; var doc; var docRef = null; if (typeof(this.doc) != 'undefined') { docRef = this.doc; } doc = load(docRef, "doc", "area"); nodeList = doc.getElementsByTagName("area"); assertSize("Asize",1,nodeList); testNode = nodeList.item(0); vaccesskey = testNode.accessKey; assertEquals("alignLink","a",vaccesskey); } </script> </head> <body> <h2>Test http://www.w3.org/2001/DOM-Test-Suite/level2/html/HTMLAreaElement01</h2> <p><test name='HTMLAreaElement01' schemaLocation='http://www.w3.org/2001/DOM-Test-Suite/Level-1 dom1.xsd'><br> <metadata><br> <title>HTMLAreaElement01</title> <br> <creator>NIST</creator> <br> <description> The accessKey attribute specifies a single character access key to give access to the control form. Retrieve the accessKey attribute and examine its value. </description> <br> <contributor>Mary Brady</contributor> <br> <date qualifier='created'>2002-02-22</date> <br> <subject resource='<a href="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-57944457">http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-57944457</a>'/> <br></metadata><br> <var name='nodeList' type='NodeList'/><br> <var name='testNode' type='Node'/><br> <var name='vaccesskey' type='DOMString'/><br> <var name='doc' type='Document'/><br> <load var='doc' href='area' willBeModified='false'/><br> <getElementsByTagName interface='Document' obj='doc' var='nodeList' tagname='"area"'/><br> <assertSize collection='nodeList' size='1' <a id="Asize">id='Asize'</a>/><br> <item interface='NodeList' obj='nodeList' var='testNode' index='0'/><br> <accessKey interface='HTMLAreaElement' obj='testNode' var='vaccesskey'/><br> <assertEquals actual='vaccesskey' expected='"a"' <a id="alignLink">id='alignLink'</a> ignoreCase='false'/&g;<br></test><br> </p> <p> 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. </p> <p>See W3C License <a href="http://www.w3.org/Consortium/Legal/">http://www.w3.org/Consortium/Legal/</a> for more details.</p> <iframe name="doc" src="files/area.html"></iframe> <br> </body> </html> --- NEW FILE: HTMLAreaElement07.html --- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <META http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta content="text/html; charset=UTF-8" http-equiv="Content-Type"> <title>http://www.w3.org/2001/DOM-Test-Suite/level2/html/HTMLAreaElement07</title> <link type="text/css" rel="stylesheet" href="http://www.w3.org/StyleSheets/activity-home.css"> <script src="../../jsunit/app/jsUnitCore.js" type="text/javascript"></script><script src="DOMTestCase.js" type="text/javascript"></script><script type="text/javascript"> // expose test function names function exposeTestFunctionNames() { return ['HTMLAreaElement07']; } var docsLoaded = -1000000; var builder = null; // // This function is called by the testing framework before // running the test suite. // // If there are no configuration exceptions, asynchronous // document loading is started. Otherwise, the status // is set to complete and the exception is immediately // raised when entering the body of the test. // function setUpPage() { setUpPageStatus = 'running'; try { // // creates test document builder, may throw exception // builder = createConfiguredBuilder(); docsLoaded = 0; var docRef = null; if (typeof(this.doc) != 'undefined') { docRef = this.doc; } docsLoaded += preload(docRef, "doc", "area"); if (docsLoaded == 1) { setUpPage = 'complete'; } } catch(ex) { catchInitializationError(builder, ex); setUpPage = 'complete'; } } // // This method is called on the completion of // each asychronous load started in setUpTests. // // When every synchronous loaded document has completed, // the page status is changed which allows the // body of the test to be executed. function loadComplete() { if (++docsLoaded == 1) { setUpPageStatus = 'complete'; } } /** * The tabIndex attribute specifies an index that represents the element's position in the tabbing order. Retrieve the tabIndex attribute and examine its value. * @author NIST * @author Mary Brady * @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-8722121 */ function HTMLAreaElement07() { var success; if(checkInitialization(builder, "HTMLAreaElement07") != null) return; var nodeList; var testNode; var vtabindex; var doc; var docRef = null; if (typeof(this.doc) != 'undefined') { docRef = this.doc; } doc = load(docRef, "doc", "area"); nodeList = doc.getElementsByTagName("area"); assertSize("Asize",1,nodeList); testNode = nodeList.item(0); vtabindex = testNode.tabIndex; assertEquals("tabIndexLink",10,vtabindex); } </script> </head> <body> <h2>Test http://www.w3.org/2001/DOM-Test-Suite/level2/html/HTMLAreaElement07</h2> <p><test name='HTMLAreaElement07' schemaLocation='http://www.w3.org/2001/DOM-Test-Suite/Level-1 dom1.xsd'><br> <metadata><br> <title>HTMLAreaElement07</title> <br> <creator>NIST</creator> <br> <description> The tabIndex attribute specifies an index that represents the element's position in the tabbing order. Retrieve the tabIndex attribute and examine its value. </description> <br> <contributor>Mary Brady</contributor> <br> <date qualifier='created'>2002-02-22</date> <br> <subject resource='<a href="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-8722121">http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-8722121</a>'/> <br></metadata><br> <var name='nodeList' type='NodeList'/><br> <var name='testNode' type='Node'/><br> <var name='vtabindex' type='int'/><br> <var name='doc' type='Document'/><br> <load var='doc' href='area' willBeModified='false'/><br> <getElementsByTagName interface='Document' obj='doc' var='nodeList' tagname='"area"'/><br> <assertSize collection='nodeList' size='1' <a id="Asize">id='Asize'</a>/><br> <item interface='NodeList' obj='nodeList' var='testNode' index='0'/><br> <tabIndex interface='HTMLAreaElement' obj='testNode' var='vtabindex'/><br> <assertEquals actual='vtabindex' expected='10' <a id="tabIndexLink">id='tabIndexLink'</a> ignoreCase='false'/><br</test><br> </p> <p> 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. </p> <p>See W3C License <a href="http://www.w3.org/Consortium/Legal/">http://www.w3.org/Consortium/Legal/</a> for more details.</p> <iframe name="doc" src="files/area.html"></iframe> <br> </body> </html> --- NEW FILE: HTMLAreaElement08.html --- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <META http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta content="text/html; charset=UTF-8" http-equiv="Content-Type"> <title>http://www.w3.org/2001/DOM-Test-Suite/level2/html/HTMLAreaElement08</title> <link type="text/css" rel="stylesheet" href="http://www.w3.org/StyleSheets/activity-home.css"> <script src="../../jsunit/app/jsUnitCore.js" type="text/javascript"></script><script src="DOMTestCase.js" type="text/javascript"></script><script type="text/javascript"> // expose test function names function exposeTestFunctionNames() { return ['HTMLAreaElement08']; } var docsLoaded = -1000000; var builder = null; // // This function is called by the testing framework before // running the test suite. // // If there are no configuration exceptions, asynchronous // document loading is started. Otherwise, the status // is set to complete and the exception is immediately // raised when entering the body of the test. // function setUpPage() { setUpPageStatus = 'running'; try { // // creates test document builder, may throw exception // builder = createConfiguredBuilder(); docsLoaded = 0; var docRef = null; if (typeof(this.doc) != 'undefined') { docRef = this.doc; } docsLoaded += preload(docRef, "doc", "area2"); if (docsLoaded == 1) { setUpPage = 'complete'; } } catch(ex) { catchInitializationError(builder, ex); setUpPage = 'complete'; } } // // This method is called on the completion of // each asychronous load started in setUpTests. // // When every synchronous loaded document has completed, // the page status is changed which allows the // body of the test to be executed. function loadComplete() { if (++docsLoaded == 1) { setUpPageStatus = 'complete'; } } /** * The target specifies the frame to render the resource in. Retrieve the target attribute and examine it's value. * @author NIST * @author Rick Rivello * @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-46054682 */ function HTMLAreaElement08() { var success; if(checkInitialization(builder, "HTMLAreaElement08") != null) return; var nodeList; var testNode; var vtarget; var doc; var docRef = null; if (typeof(this.doc) != 'undefined') { docRef = this.doc; } doc = load(docRef, "doc", "area2"); nodeList = doc.getElementsByTagName("area"); assertSize("Asize",1,nodeList); testNode = nodeList.item(0); vtarget = testNode.target; assertEquals("targetLink","dynamic",vtarget); } </script> </head> <body> <h2>Test http://www.w3.org/2001/DOM-Test-Suite/level2/html/HTMLAreaElement08</h2> <p><test name='HTMLAreaElement08' schemaLocation='http://www.w3.org/2001/DOM-Test-Suite/Level-1 dom1.xsd'><br> <metadata><br> <title>HTMLAreaElement08</title> <br> <creator>NIST</creator> <br> <description> The target specifies the frame to render the resource in. Retrieve the target attribute and examine it's value. </description> <br> <contributor>Rick Rivello</contributor> <br> <date qualifier='created'>2002-05-09</date> <br> <subject resource='<a href="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-46054682">http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-46054682</a>'/> <br></metadata><br> <var name='nodeList' type='NodeList'/><br> <var name='testNode' type='Node'/><br> <var name='vtarget' type='DOMString'/><br> <var name='doc' type='Document'/><br> <load var='doc' href='area2' willBeModified='false'/><br> <getElementsByTagName interface='Document' obj='doc' var='nodeList' tagname='"area"'/><br> <assertSize collection='nodeList' size='1' <a id="Asize">id='Asize'</a>/><br> <item interface='NodeList' obj='nodeList' var='testNode' index='0'/><br> <target interface='HTMLAreaElement' obj='testNode' var='vtarget'/><br> <assertEquals actual='vtarget' expected='"dynamic"' <a id="targetLink">id='targetLink'</a> ignoreCase='false'/><r></test><br> </p> <p> 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. </p> <p>See W3C License <a href="http://www.w3.org/Consortium/Legal/">http://www.w3.org/Consortium/Legal/</a> for more details.</p> <iframe name="doc" src="files/area2.html"></iframe> <br> </body> </html> --- NEW FILE: HTMLAreaElement06.html --- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <META http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta content="text/html; charset=UTF-8" http-equiv="Content-Type"> <title>http://www.w3.org/2001/DOM-Test-Suite/level2/html/HTMLAreaElement06</title> <link type="text/css" rel="stylesheet" href="http://www.w3.org/StyleSheets/activity-home.css"> <script src="../../jsunit/app/jsUnitCore.js" type="text/javascript"></script><script src="DOMTestCase.js" type="text/javascript"></script><script type="text/javascript"> // expose test function names function exposeTestFunctionNames() { return ['HTMLAreaElement06']; } var docsLoaded = -1000000; var builder = null; // // This function is called by the testing framework before // running the test suite. // // If there are no configuration exceptions, asynchronous // document loading is started. Otherwise, the status // is set to complete and the exception is immediately // raised when entering the body of the test. // function setUpPage() { setUpPageStatus = 'running'; try { // // creates test document builder, may throw exception // builder = createConfiguredBuilder(); docsLoaded = 0; var docRef = null; if (typeof(this.doc) != 'undefined') { docRef = this.doc; } docsLoaded += preload(docRef, "doc", "area"); if (docsLoaded == 1) { setUpPage = 'complete'; } } catch(ex) { catchInitializationError(builder, ex); setUpPage = 'complete'; } } // // This method is called on the completion of // each asychronous load started in setUpTests. // // When every synchronous loaded document has completed, // the page status is changed which allows the // body of the test to be executed. function loadComplete() { if (++docsLoaded == 1) { setUpPageStatus = 'complete'; } } /** * The shape attribute specifies the shape of the active area. Retrieve the shape attribute and examine its value. * @author NIST * @author Mary Brady * @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-85683271 */ function HTMLAreaElement06() { var success; if(checkInitialization(builder, "HTMLAreaElement06") != null) return; var nodeList; var testNode; var vshape; var doc; var docRef = null; if (typeof(this.doc) != 'undefined') { docRef = this.doc; } doc = load(docRef, "doc", "area"); nodeList = doc.getElementsByTagName("area"); assertSize("Asize",1,nodeList); testNode = nodeList.item(0); vshape = testNode.shape; assertEquals("shapeLink","rect".toLowerCase(),vshape.toLowerCase()); } </script> </head> <body> <h2>Test http://www.w3.org/2001/DOM-Test-Suite/level2/html/HTMLAreaElement06</h2> <p><test name='HTMLAreaElement06' schemaLocation='http://www.w3.org/2001/DOM-Test-Suite/Level-1 dom1.xsd'><br> <metadata><br> <title>HTMLAreaElement06</title> <br> <creator>NIST</creator> <br> <description> The shape attribute specifies the shape of the active area. Retrieve the shape attribute and examine its value. </description> <br> <contributor>Mary Brady</contributor> <br> <date qualifier='created'>2002-02-22</date> <br> <subject resource='<a href="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-85683271">http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-85683271</a>'/> <br></metadata><br> <var name='nodeList' type='NodeList'/><br> <var name='testNode' type='Node'/><br> <var name='vshape' type='DOMString'/><br> <var name='doc' type='Document'/><br> <load var='doc' href='area' willBeModified='false'/><br> <getElementsByTagName interface='Document' obj='doc' var='nodeList' tagname='"area"'/><br> <assertSize collection='nodeList' size='1' <a id="Asize">id='Asize'</a>/><br> <item interface='NodeList' obj='nodeList' var='testNode' index='0'/><br> <shape interface='HTMLAreaElement' obj='testNode' var='vshape'/><br> <assertEquals actual='vshape' expected='"rect"' <a id="shapeLink">id='shapeLink'</a> ignoreCase='true'/><br></tes><br> </p> <p> 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. </p> <p>See W3C License <a href="http://www.w3.org/Consortium/Legal/">http://www.w3.org/Consortium/Legal/</a> for more details.</p> <iframe name="doc" src="files/area.html"></iframe> <br> </body> </html> --- NEW FILE: HTMLAreaElement02.html --- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <META http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta content="text/html; charset=UTF-8" http-equiv="Content-Type"> <title>http://www.w3.org/2001/DOM-Test-Suite/level2/html/HTMLAreaElement02</title> <link type="text/css" rel="stylesheet" href="http://www.w3.org/StyleSheets/activity-home.css"> <script src="../../jsunit/app/jsUnitCore.js" type="text/javascript"></script><script src="DOMTestCase.js" type="text/javascript"></script><script type="text/javascript"> // expose test function names function exposeTestFunctionNames() { return ['HTMLAreaElement02']; } var docsLoaded = -1000000; var builder = null; // // This function is called by the testing framework before // running the test suite. // // If there are no configuration exceptions, asynchronous // document loading is started. Otherwise, the status // is set to complete and the exception is immediately // raised when entering the body of the test. // function setUpPage() { setUpPageStatus = 'running'; try { // // creates test document builder, may throw exception // builder = createConfiguredBuilder(); docsLoaded = 0; var docRef = null; if (typeof(this.doc) != 'undefined') { docRef = this.doc; } docsLoaded += preload(docRef, "doc", "area"); if (docsLoaded == 1) { setUpPage = 'complete'; } } catch(ex) { catchInitializationError(builder, ex); setUpPage = 'complete'; } } // // This method is called on the completion of // each asychronous load started in setUpTests. // // When every synchronous loaded document has completed, // the page status is changed which allows the // body of the test to be executed. function loadComplete() { if (++docsLoaded == 1) { setUpPageStatus = 'complete'; } } /** * The alt attribute specifies an alternate text for user agents not rendering the normal content of this element. Retrieve the alt attribute and examine its value. * @author NIST * @author Mary Brady * @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-39775416 */ function HTMLAreaElement02() { var success; if(checkInitialization(builder, "HTMLAreaElement02") != null) return; var nodeList; var testNode; var valt; var doc; var docRef = null; if (typeof(this.doc) != 'undefined') { docRef = this.doc; } doc = load(docRef, "doc", "area"); nodeList = doc.getElementsByTagName("area"); assertSize("Asize",1,nodeList); testNode = nodeList.item(0); valt = testNode.alt; assertEquals("altLink","Domain",valt); } </script> </head> <body> <h2>Test http://www.w3.org/2001/DOM-Test-Suite/level2/html/HTMLAreaElement02</h2> <p><test name='HTMLAreaElement02' schemaLocation='http://www.w3.org/2001/DOM-Test-Suite/Level-1 dom1.xsd'><br> <metadata><br> <title>HTMLAreaElement02</title> <br> <creator>NIST</creator> <br> <description> The alt attribute specifies an alternate text for user agents not rendering the normal content of this element. Retrieve the alt attribute and examine its value. </description> <br> <contributor>Mary Brady</contributor> <br> <date qualifier='created'>2002-02-22</date> <br> <subject resource='<a href="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-39775416">http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-39775416</a>'/> <br></metadata><br> <var name='nodeList' type='NodeList'/><br> <var name='testNode' type='Node'/><br> <var name='valt' type='DOMString'/><br> <var name='doc' type='Document'/><br> <load var='doc' href='area' willBeModified='false'/><br> <getElementsByTagName interface='Document' obj='doc' var='nodeList' tagname='"area"'/><br> <assertSize collection='nodeList' size='1' <a id="Asize">id='Asize'</a>/><br> <item interface='NodeList' obj='nodeList' var='testNode' index='0'/><br> <alt interface='HTMLAreaElement' obj='testNode' var='valt'/><br> <assertEquals actual='valt' expected='"Domain"' <a id="altLink">id='altLink'</a> ignoreCase='false'/><br></test><br></p> <p> 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. </p> <p>See W3C License <a href="http://www.w3.org/Consortium/Legal/">http://www.w3.org/Consortium/Legal/</a> for more details.</p> <iframe name="doc" src="files/area.html"></iframe> <br> </body> </html>
Received on Thursday, 25 February 2010 15:58:42 UTC