Initial commit
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
+114
@@ -0,0 +1,114 @@
|
||||
|
||||
/*
|
||||
Copyright © 2001-2004 World Wide Web Consortium,
|
||||
(Massachusetts Institute of Technology, European Research Consortium
|
||||
for Informatics and Mathematics, Keio University). All
|
||||
Rights Reserved. This work is distributed under the W3C® Software License [1] 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.
|
||||
|
||||
[1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
|
||||
*/
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets URI that identifies the test.
|
||||
* @return uri identifier of test
|
||||
*/
|
||||
function getTargetURI() {
|
||||
return "http://www.w3.org/2001/DOM-Test-Suite/level1/html/HTMLAnchorElement01";
|
||||
}
|
||||
|
||||
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", "anchor");
|
||||
|
||||
if (docsLoaded == 1) {
|
||||
setUpPageStatus = 'complete';
|
||||
}
|
||||
} catch(ex) {
|
||||
catchInitializationError(builder, ex);
|
||||
setUpPageStatus = '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 is a single character access key to give
|
||||
access to the form control.
|
||||
|
||||
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-89647724
|
||||
*/
|
||||
function HTMLAnchorElement01() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLAnchorElement01") != 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", "anchor");
|
||||
nodeList = doc.getElementsByTagName("a");
|
||||
assertSize("Asize",1,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
vaccesskey = testNode.accessKey;
|
||||
|
||||
assertEquals("accessKeyLink","g",vaccesskey);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLAnchorElement01();
|
||||
}
|
||||
+113
@@ -0,0 +1,113 @@
|
||||
|
||||
/*
|
||||
Copyright © 2001-2004 World Wide Web Consortium,
|
||||
(Massachusetts Institute of Technology, European Research Consortium
|
||||
for Informatics and Mathematics, Keio University). All
|
||||
Rights Reserved. This work is distributed under the W3C® Software License [1] 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.
|
||||
|
||||
[1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
|
||||
*/
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets URI that identifies the test.
|
||||
* @return uri identifier of test
|
||||
*/
|
||||
function getTargetURI() {
|
||||
return "http://www.w3.org/2001/DOM-Test-Suite/level1/html/HTMLAnchorElement04";
|
||||
}
|
||||
|
||||
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", "anchor");
|
||||
|
||||
if (docsLoaded == 1) {
|
||||
setUpPageStatus = 'complete';
|
||||
}
|
||||
} catch(ex) {
|
||||
catchInitializationError(builder, ex);
|
||||
setUpPageStatus = '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 contains the URL 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-88517319
|
||||
*/
|
||||
function HTMLAnchorElement04() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLAnchorElement04") != 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", "anchor");
|
||||
nodeList = doc.getElementsByTagName("a");
|
||||
assertSize("Asize",1,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
vhref = testNode.href;
|
||||
|
||||
assertURIEquals("hrefLink",null,null,null,"submit.gif",null,null,null,null,vhref);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLAnchorElement04();
|
||||
}
|
||||
+113
@@ -0,0 +1,113 @@
|
||||
|
||||
/*
|
||||
Copyright © 2001-2004 World Wide Web Consortium,
|
||||
(Massachusetts Institute of Technology, European Research Consortium
|
||||
for Informatics and Mathematics, Keio University). All
|
||||
Rights Reserved. This work is distributed under the W3C® Software License [1] 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.
|
||||
|
||||
[1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
|
||||
*/
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets URI that identifies the test.
|
||||
* @return uri identifier of test
|
||||
*/
|
||||
function getTargetURI() {
|
||||
return "http://www.w3.org/2001/DOM-Test-Suite/level1/html/HTMLAnchorElement05";
|
||||
}
|
||||
|
||||
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", "anchor");
|
||||
|
||||
if (docsLoaded == 1) {
|
||||
setUpPageStatus = 'complete';
|
||||
}
|
||||
} catch(ex) {
|
||||
catchInitializationError(builder, ex);
|
||||
setUpPageStatus = '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 hreflang attribute contains the language code of the linked resource.
|
||||
|
||||
Retrieve the hreflang 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-87358513
|
||||
*/
|
||||
function HTMLAnchorElement05() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLAnchorElement05") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var vhreflink;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "anchor");
|
||||
nodeList = doc.getElementsByTagName("a");
|
||||
assertSize("Asize",1,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
vhreflink = testNode.hreflang;
|
||||
|
||||
assertEquals("hreflangLink","en",vhreflink);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLAnchorElement05();
|
||||
}
|
||||
+113
@@ -0,0 +1,113 @@
|
||||
|
||||
/*
|
||||
Copyright © 2001-2004 World Wide Web Consortium,
|
||||
(Massachusetts Institute of Technology, European Research Consortium
|
||||
for Informatics and Mathematics, Keio University). All
|
||||
Rights Reserved. This work is distributed under the W3C® Software License [1] 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.
|
||||
|
||||
[1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
|
||||
*/
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets URI that identifies the test.
|
||||
* @return uri identifier of test
|
||||
*/
|
||||
function getTargetURI() {
|
||||
return "http://www.w3.org/2001/DOM-Test-Suite/level1/html/HTMLAnchorElement07";
|
||||
}
|
||||
|
||||
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", "anchor");
|
||||
|
||||
if (docsLoaded == 1) {
|
||||
setUpPageStatus = 'complete';
|
||||
}
|
||||
} catch(ex) {
|
||||
catchInitializationError(builder, ex);
|
||||
setUpPageStatus = '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 rel attribute contains the forward link type.
|
||||
|
||||
Retrieve the rel 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-3815891
|
||||
*/
|
||||
function HTMLAnchorElement07() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLAnchorElement07") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var vrel;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "anchor");
|
||||
nodeList = doc.getElementsByTagName("a");
|
||||
assertSize("Asize",1,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
vrel = testNode.rel;
|
||||
|
||||
assertEquals("relLink","GLOSSARY",vrel);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLAnchorElement07();
|
||||
}
|
||||
+114
@@ -0,0 +1,114 @@
|
||||
|
||||
/*
|
||||
Copyright © 2001-2004 World Wide Web Consortium,
|
||||
(Massachusetts Institute of Technology, European Research Consortium
|
||||
for Informatics and Mathematics, Keio University). All
|
||||
Rights Reserved. This work is distributed under the W3C® Software License [1] 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.
|
||||
|
||||
[1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
|
||||
*/
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets URI that identifies the test.
|
||||
* @return uri identifier of test
|
||||
*/
|
||||
function getTargetURI() {
|
||||
return "http://www.w3.org/2001/DOM-Test-Suite/level1/html/HTMLAnchorElement10";
|
||||
}
|
||||
|
||||
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", "anchor");
|
||||
|
||||
if (docsLoaded == 1) {
|
||||
setUpPageStatus = 'complete';
|
||||
}
|
||||
} catch(ex) {
|
||||
catchInitializationError(builder, ex);
|
||||
setUpPageStatus = '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 contains an index that represents the elements
|
||||
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-41586466
|
||||
*/
|
||||
function HTMLAnchorElement10() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLAnchorElement10") != 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", "anchor");
|
||||
nodeList = doc.getElementsByTagName("a");
|
||||
assertSize("Asize",1,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
vtabindex = testNode.tabIndex;
|
||||
|
||||
assertEquals("tabIndexLink",22,vtabindex);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLAnchorElement10();
|
||||
}
|
||||
+113
@@ -0,0 +1,113 @@
|
||||
|
||||
/*
|
||||
Copyright © 2001-2004 World Wide Web Consortium,
|
||||
(Massachusetts Institute of Technology, European Research Consortium
|
||||
for Informatics and Mathematics, Keio University). All
|
||||
Rights Reserved. This work is distributed under the W3C® Software License [1] 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.
|
||||
|
||||
[1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
|
||||
*/
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets URI that identifies the test.
|
||||
* @return uri identifier of test
|
||||
*/
|
||||
function getTargetURI() {
|
||||
return "http://www.w3.org/2001/DOM-Test-Suite/level1/html/HTMLAnchorElement11";
|
||||
}
|
||||
|
||||
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", "anchor2");
|
||||
|
||||
if (docsLoaded == 1) {
|
||||
setUpPageStatus = 'complete';
|
||||
}
|
||||
} catch(ex) {
|
||||
catchInitializationError(builder, ex);
|
||||
setUpPageStatus = '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 attribute specifies the frame to render the source 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-6414197
|
||||
*/
|
||||
function HTMLAnchorElement11() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLAnchorElement11") != 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", "anchor2");
|
||||
nodeList = doc.getElementsByTagName("a");
|
||||
assertSize("Asize",1,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
vtarget = testNode.target;
|
||||
|
||||
assertEquals("targetLink","dynamic",vtarget);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLAnchorElement11();
|
||||
}
|
||||
+113
@@ -0,0 +1,113 @@
|
||||
|
||||
/*
|
||||
Copyright © 2001-2004 World Wide Web Consortium,
|
||||
(Massachusetts Institute of Technology, European Research Consortium
|
||||
for Informatics and Mathematics, Keio University). All
|
||||
Rights Reserved. This work is distributed under the W3C® Software License [1] 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.
|
||||
|
||||
[1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
|
||||
*/
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets URI that identifies the test.
|
||||
* @return uri identifier of test
|
||||
*/
|
||||
function getTargetURI() {
|
||||
return "http://www.w3.org/2001/DOM-Test-Suite/level1/html/HTMLAnchorElement12";
|
||||
}
|
||||
|
||||
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", "anchor");
|
||||
|
||||
if (docsLoaded == 1) {
|
||||
setUpPageStatus = 'complete';
|
||||
}
|
||||
} catch(ex) {
|
||||
catchInitializationError(builder, ex);
|
||||
setUpPageStatus = '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 type attribute contains the advisory content model.
|
||||
|
||||
Retrieve the type 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-63938221
|
||||
*/
|
||||
function HTMLAnchorElement12() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLAnchorElement12") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var vtype;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "anchor");
|
||||
nodeList = doc.getElementsByTagName("a");
|
||||
assertSize("Asize",1,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
vtype = testNode.type;
|
||||
|
||||
assertEquals("typeLink","image/gif",vtype);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLAnchorElement12();
|
||||
}
|
||||
+107
@@ -0,0 +1,107 @@
|
||||
|
||||
/*
|
||||
Copyright © 2001-2004 World Wide Web Consortium,
|
||||
(Massachusetts Institute of Technology, European Research Consortium
|
||||
for Informatics and Mathematics, Keio University). All
|
||||
Rights Reserved. This work is distributed under the W3C® Software License [1] 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.
|
||||
|
||||
[1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
|
||||
*/
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets URI that identifies the test.
|
||||
* @return uri identifier of test
|
||||
*/
|
||||
function getTargetURI() {
|
||||
return "http://www.w3.org/2001/DOM-Test-Suite/level1/html/HTMLAnchorElement13";
|
||||
}
|
||||
|
||||
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", "anchor");
|
||||
|
||||
if (docsLoaded == 1) {
|
||||
setUpPageStatus = 'complete';
|
||||
}
|
||||
} catch(ex) {
|
||||
catchInitializationError(builder, ex);
|
||||
setUpPageStatus = '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';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
HTMLAnchorElement.blur should surrender input focus.
|
||||
|
||||
* @author Curt Arnold
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-65068939
|
||||
*/
|
||||
function HTMLAnchorElement13() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLAnchorElement13") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "anchor");
|
||||
nodeList = doc.getElementsByTagName("a");
|
||||
assertSize("Asize",1,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
testNode.blur();
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLAnchorElement13();
|
||||
}
|
||||
+107
@@ -0,0 +1,107 @@
|
||||
|
||||
/*
|
||||
Copyright © 2001-2004 World Wide Web Consortium,
|
||||
(Massachusetts Institute of Technology, European Research Consortium
|
||||
for Informatics and Mathematics, Keio University). All
|
||||
Rights Reserved. This work is distributed under the W3C® Software License [1] 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.
|
||||
|
||||
[1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
|
||||
*/
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets URI that identifies the test.
|
||||
* @return uri identifier of test
|
||||
*/
|
||||
function getTargetURI() {
|
||||
return "http://www.w3.org/2001/DOM-Test-Suite/level1/html/HTMLAnchorElement14";
|
||||
}
|
||||
|
||||
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", "anchor");
|
||||
|
||||
if (docsLoaded == 1) {
|
||||
setUpPageStatus = 'complete';
|
||||
}
|
||||
} catch(ex) {
|
||||
catchInitializationError(builder, ex);
|
||||
setUpPageStatus = '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';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
HTMLAnchorElement.focus should capture input focus.
|
||||
|
||||
* @author Curt Arnold
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-47150313
|
||||
*/
|
||||
function HTMLAnchorElement14() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLAnchorElement14") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "anchor");
|
||||
nodeList = doc.getElementsByTagName("a");
|
||||
assertSize("Asize",1,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
testNode.focus();
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLAnchorElement14();
|
||||
}
|
||||
+114
@@ -0,0 +1,114 @@
|
||||
|
||||
/*
|
||||
Copyright © 2001-2004 World Wide Web Consortium,
|
||||
(Massachusetts Institute of Technology, European Research Consortium
|
||||
for Informatics and Mathematics, Keio University). All
|
||||
Rights Reserved. This work is distributed under the W3C® Software License [1] 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.
|
||||
|
||||
[1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
|
||||
*/
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets URI that identifies the test.
|
||||
* @return uri identifier of test
|
||||
*/
|
||||
function getTargetURI() {
|
||||
return "http://www.w3.org/2001/DOM-Test-Suite/level1/html/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) {
|
||||
setUpPageStatus = 'complete';
|
||||
}
|
||||
} catch(ex) {
|
||||
catchInitializationError(builder, ex);
|
||||
setUpPageStatus = '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);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLAreaElement01();
|
||||
}
|
||||
+114
@@ -0,0 +1,114 @@
|
||||
|
||||
/*
|
||||
Copyright © 2001-2004 World Wide Web Consortium,
|
||||
(Massachusetts Institute of Technology, European Research Consortium
|
||||
for Informatics and Mathematics, Keio University). All
|
||||
Rights Reserved. This work is distributed under the W3C® Software License [1] 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.
|
||||
|
||||
[1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
|
||||
*/
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets URI that identifies the test.
|
||||
* @return uri identifier of test
|
||||
*/
|
||||
function getTargetURI() {
|
||||
return "http://www.w3.org/2001/DOM-Test-Suite/level1/html/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) {
|
||||
setUpPageStatus = 'complete';
|
||||
}
|
||||
} catch(ex) {
|
||||
catchInitializationError(builder, ex);
|
||||
setUpPageStatus = '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);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLAreaElement02();
|
||||
}
|
||||
+114
@@ -0,0 +1,114 @@
|
||||
|
||||
/*
|
||||
Copyright © 2001-2004 World Wide Web Consortium,
|
||||
(Massachusetts Institute of Technology, European Research Consortium
|
||||
for Informatics and Mathematics, Keio University). All
|
||||
Rights Reserved. This work is distributed under the W3C® Software License [1] 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.
|
||||
|
||||
[1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
|
||||
*/
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets URI that identifies the test.
|
||||
* @return uri identifier of test
|
||||
*/
|
||||
function getTargetURI() {
|
||||
return "http://www.w3.org/2001/DOM-Test-Suite/level1/html/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) {
|
||||
setUpPageStatus = 'complete';
|
||||
}
|
||||
} catch(ex) {
|
||||
catchInitializationError(builder, ex);
|
||||
setUpPageStatus = '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);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLAreaElement03();
|
||||
}
|
||||
+113
@@ -0,0 +1,113 @@
|
||||
|
||||
/*
|
||||
Copyright © 2001-2004 World Wide Web Consortium,
|
||||
(Massachusetts Institute of Technology, European Research Consortium
|
||||
for Informatics and Mathematics, Keio University). All
|
||||
Rights Reserved. This work is distributed under the W3C® Software License [1] 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.
|
||||
|
||||
[1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
|
||||
*/
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets URI that identifies the test.
|
||||
* @return uri identifier of test
|
||||
*/
|
||||
function getTargetURI() {
|
||||
return "http://www.w3.org/2001/DOM-Test-Suite/level1/html/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) {
|
||||
setUpPageStatus = 'complete';
|
||||
}
|
||||
} catch(ex) {
|
||||
catchInitializationError(builder, ex);
|
||||
setUpPageStatus = '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);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLAreaElement04();
|
||||
}
|
||||
+113
@@ -0,0 +1,113 @@
|
||||
|
||||
/*
|
||||
Copyright © 2001-2004 World Wide Web Consortium,
|
||||
(Massachusetts Institute of Technology, European Research Consortium
|
||||
for Informatics and Mathematics, Keio University). All
|
||||
Rights Reserved. This work is distributed under the W3C® Software License [1] 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.
|
||||
|
||||
[1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
|
||||
*/
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets URI that identifies the test.
|
||||
* @return uri identifier of test
|
||||
*/
|
||||
function getTargetURI() {
|
||||
return "http://www.w3.org/2001/DOM-Test-Suite/level1/html/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) {
|
||||
setUpPageStatus = 'complete';
|
||||
}
|
||||
} catch(ex) {
|
||||
catchInitializationError(builder, ex);
|
||||
setUpPageStatus = '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);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLAreaElement05();
|
||||
}
|
||||
+113
@@ -0,0 +1,113 @@
|
||||
|
||||
/*
|
||||
Copyright © 2001-2004 World Wide Web Consortium,
|
||||
(Massachusetts Institute of Technology, European Research Consortium
|
||||
for Informatics and Mathematics, Keio University). All
|
||||
Rights Reserved. This work is distributed under the W3C® Software License [1] 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.
|
||||
|
||||
[1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
|
||||
*/
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets URI that identifies the test.
|
||||
* @return uri identifier of test
|
||||
*/
|
||||
function getTargetURI() {
|
||||
return "http://www.w3.org/2001/DOM-Test-Suite/level1/html/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) {
|
||||
setUpPageStatus = 'complete';
|
||||
}
|
||||
} catch(ex) {
|
||||
catchInitializationError(builder, ex);
|
||||
setUpPageStatus = '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());
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLAreaElement06();
|
||||
}
|
||||
+114
@@ -0,0 +1,114 @@
|
||||
|
||||
/*
|
||||
Copyright © 2001-2004 World Wide Web Consortium,
|
||||
(Massachusetts Institute of Technology, European Research Consortium
|
||||
for Informatics and Mathematics, Keio University). All
|
||||
Rights Reserved. This work is distributed under the W3C® Software License [1] 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.
|
||||
|
||||
[1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
|
||||
*/
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets URI that identifies the test.
|
||||
* @return uri identifier of test
|
||||
*/
|
||||
function getTargetURI() {
|
||||
return "http://www.w3.org/2001/DOM-Test-Suite/level1/html/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) {
|
||||
setUpPageStatus = 'complete';
|
||||
}
|
||||
} catch(ex) {
|
||||
catchInitializationError(builder, ex);
|
||||
setUpPageStatus = '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);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLAreaElement07();
|
||||
}
|
||||
+113
@@ -0,0 +1,113 @@
|
||||
|
||||
/*
|
||||
Copyright © 2001-2004 World Wide Web Consortium,
|
||||
(Massachusetts Institute of Technology, European Research Consortium
|
||||
for Informatics and Mathematics, Keio University). All
|
||||
Rights Reserved. This work is distributed under the W3C® Software License [1] 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.
|
||||
|
||||
[1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
|
||||
*/
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets URI that identifies the test.
|
||||
* @return uri identifier of test
|
||||
*/
|
||||
function getTargetURI() {
|
||||
return "http://www.w3.org/2001/DOM-Test-Suite/level1/html/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) {
|
||||
setUpPageStatus = 'complete';
|
||||
}
|
||||
} catch(ex) {
|
||||
catchInitializationError(builder, ex);
|
||||
setUpPageStatus = '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);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLAreaElement08();
|
||||
}
|
||||
+116
@@ -0,0 +1,116 @@
|
||||
|
||||
/*
|
||||
Copyright © 2001-2004 World Wide Web Consortium,
|
||||
(Massachusetts Institute of Technology, European Research Consortium
|
||||
for Informatics and Mathematics, Keio University). All
|
||||
Rights Reserved. This work is distributed under the W3C® Software License [1] 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.
|
||||
|
||||
[1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
|
||||
*/
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets URI that identifies the test.
|
||||
* @return uri identifier of test
|
||||
*/
|
||||
function getTargetURI() {
|
||||
return "http://www.w3.org/2001/DOM-Test-Suite/level1/html/HTMLButtonElement01";
|
||||
}
|
||||
|
||||
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", "button");
|
||||
|
||||
if (docsLoaded == 1) {
|
||||
setUpPageStatus = 'complete';
|
||||
}
|
||||
} catch(ex) {
|
||||
catchInitializationError(builder, ex);
|
||||
setUpPageStatus = '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 form attribute returns the FORM element containing this control.
|
||||
|
||||
Retrieve the form 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-71254493
|
||||
*/
|
||||
function HTMLButtonElement01() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLButtonElement01") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var fNode;
|
||||
var vform;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "button");
|
||||
nodeList = doc.getElementsByTagName("button");
|
||||
assertSize("Asize",2,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
fNode = testNode.form;
|
||||
|
||||
vform = fNode.id;
|
||||
|
||||
assertEquals("formLink","form2",vform);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLButtonElement01();
|
||||
}
|
||||
+114
@@ -0,0 +1,114 @@
|
||||
|
||||
/*
|
||||
Copyright © 2001-2004 World Wide Web Consortium,
|
||||
(Massachusetts Institute of Technology, European Research Consortium
|
||||
for Informatics and Mathematics, Keio University). All
|
||||
Rights Reserved. This work is distributed under the W3C® Software License [1] 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.
|
||||
|
||||
[1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
|
||||
*/
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets URI that identifies the test.
|
||||
* @return uri identifier of test
|
||||
*/
|
||||
function getTargetURI() {
|
||||
return "http://www.w3.org/2001/DOM-Test-Suite/level1/html/HTMLButtonElement02";
|
||||
}
|
||||
|
||||
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", "button");
|
||||
|
||||
if (docsLoaded == 1) {
|
||||
setUpPageStatus = 'complete';
|
||||
}
|
||||
} catch(ex) {
|
||||
catchInitializationError(builder, ex);
|
||||
setUpPageStatus = '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 form attribute returns null if control in not within the context of
|
||||
form.
|
||||
|
||||
Retrieve the form 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-71254493
|
||||
*/
|
||||
function HTMLButtonElement02() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLButtonElement02") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var vform;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "button");
|
||||
nodeList = doc.getElementsByTagName("button");
|
||||
assertSize("Asize",2,nodeList);
|
||||
testNode = nodeList.item(1);
|
||||
vform = testNode.form;
|
||||
|
||||
assertNull("formNullLink",vform);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLButtonElement02();
|
||||
}
|
||||
+114
@@ -0,0 +1,114 @@
|
||||
|
||||
/*
|
||||
Copyright © 2001-2004 World Wide Web Consortium,
|
||||
(Massachusetts Institute of Technology, European Research Consortium
|
||||
for Informatics and Mathematics, Keio University). All
|
||||
Rights Reserved. This work is distributed under the W3C® Software License [1] 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.
|
||||
|
||||
[1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
|
||||
*/
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets URI that identifies the test.
|
||||
* @return uri identifier of test
|
||||
*/
|
||||
function getTargetURI() {
|
||||
return "http://www.w3.org/2001/DOM-Test-Suite/level1/html/HTMLButtonElement03";
|
||||
}
|
||||
|
||||
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", "button");
|
||||
|
||||
if (docsLoaded == 1) {
|
||||
setUpPageStatus = 'complete';
|
||||
}
|
||||
} catch(ex) {
|
||||
catchInitializationError(builder, ex);
|
||||
setUpPageStatus = '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 returns a single character access key to
|
||||
give access to the form control.
|
||||
|
||||
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-73169431
|
||||
*/
|
||||
function HTMLButtonElement03() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLButtonElement03") != 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", "button");
|
||||
nodeList = doc.getElementsByTagName("button");
|
||||
assertSize("Asize",2,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
vaccesskey = testNode.accessKey;
|
||||
|
||||
assertEquals("accessKeyLink","f",vaccesskey);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLButtonElement03();
|
||||
}
|
||||
+114
@@ -0,0 +1,114 @@
|
||||
|
||||
/*
|
||||
Copyright © 2001-2004 World Wide Web Consortium,
|
||||
(Massachusetts Institute of Technology, European Research Consortium
|
||||
for Informatics and Mathematics, Keio University). All
|
||||
Rights Reserved. This work is distributed under the W3C® Software License [1] 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.
|
||||
|
||||
[1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
|
||||
*/
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets URI that identifies the test.
|
||||
* @return uri identifier of test
|
||||
*/
|
||||
function getTargetURI() {
|
||||
return "http://www.w3.org/2001/DOM-Test-Suite/level1/html/HTMLButtonElement04";
|
||||
}
|
||||
|
||||
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", "button");
|
||||
|
||||
if (docsLoaded == 1) {
|
||||
setUpPageStatus = 'complete';
|
||||
}
|
||||
} catch(ex) {
|
||||
catchInitializationError(builder, ex);
|
||||
setUpPageStatus = '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 disabled attribute specifies whether the control is unavailable
|
||||
in this context.
|
||||
|
||||
Retrieve the disabled 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-92757155
|
||||
*/
|
||||
function HTMLButtonElement04() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLButtonElement04") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var vdisabled;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "button");
|
||||
nodeList = doc.getElementsByTagName("button");
|
||||
assertSize("Asize",2,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
vdisabled = testNode.disabled;
|
||||
|
||||
assertTrue("disabledLink",vdisabled);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLButtonElement04();
|
||||
}
|
||||
+114
@@ -0,0 +1,114 @@
|
||||
|
||||
/*
|
||||
Copyright © 2001-2004 World Wide Web Consortium,
|
||||
(Massachusetts Institute of Technology, European Research Consortium
|
||||
for Informatics and Mathematics, Keio University). All
|
||||
Rights Reserved. This work is distributed under the W3C® Software License [1] 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.
|
||||
|
||||
[1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
|
||||
*/
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets URI that identifies the test.
|
||||
* @return uri identifier of test
|
||||
*/
|
||||
function getTargetURI() {
|
||||
return "http://www.w3.org/2001/DOM-Test-Suite/level1/html/HTMLButtonElement05";
|
||||
}
|
||||
|
||||
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", "button");
|
||||
|
||||
if (docsLoaded == 1) {
|
||||
setUpPageStatus = 'complete';
|
||||
}
|
||||
} catch(ex) {
|
||||
catchInitializationError(builder, ex);
|
||||
setUpPageStatus = '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 name attribute is the form control or object name when submitted
|
||||
with a form.
|
||||
|
||||
Retrieve the name 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-11029910
|
||||
*/
|
||||
function HTMLButtonElement05() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLButtonElement05") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var vname;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "button");
|
||||
nodeList = doc.getElementsByTagName("button");
|
||||
assertSize("Asize",2,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
vname = testNode.name;
|
||||
|
||||
assertEquals("nameLink","disabledButton",vname);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLButtonElement05();
|
||||
}
|
||||
+114
@@ -0,0 +1,114 @@
|
||||
|
||||
/*
|
||||
Copyright © 2001-2004 World Wide Web Consortium,
|
||||
(Massachusetts Institute of Technology, European Research Consortium
|
||||
for Informatics and Mathematics, Keio University). All
|
||||
Rights Reserved. This work is distributed under the W3C® Software License [1] 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.
|
||||
|
||||
[1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
|
||||
*/
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets URI that identifies the test.
|
||||
* @return uri identifier of test
|
||||
*/
|
||||
function getTargetURI() {
|
||||
return "http://www.w3.org/2001/DOM-Test-Suite/level1/html/HTMLButtonElement06";
|
||||
}
|
||||
|
||||
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", "button");
|
||||
|
||||
if (docsLoaded == 1) {
|
||||
setUpPageStatus = 'complete';
|
||||
}
|
||||
} catch(ex) {
|
||||
catchInitializationError(builder, ex);
|
||||
setUpPageStatus = '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-39190908
|
||||
*/
|
||||
function HTMLButtonElement06() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLButtonElement06") != 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", "button");
|
||||
nodeList = doc.getElementsByTagName("button");
|
||||
assertSize("Asize",2,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
vtabindex = testNode.tabIndex;
|
||||
|
||||
assertEquals("tabIndexLink",20,vtabindex);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLButtonElement06();
|
||||
}
|
||||
+113
@@ -0,0 +1,113 @@
|
||||
|
||||
/*
|
||||
Copyright © 2001-2004 World Wide Web Consortium,
|
||||
(Massachusetts Institute of Technology, European Research Consortium
|
||||
for Informatics and Mathematics, Keio University). All
|
||||
Rights Reserved. This work is distributed under the W3C® Software License [1] 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.
|
||||
|
||||
[1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
|
||||
*/
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets URI that identifies the test.
|
||||
* @return uri identifier of test
|
||||
*/
|
||||
function getTargetURI() {
|
||||
return "http://www.w3.org/2001/DOM-Test-Suite/level1/html/HTMLButtonElement07";
|
||||
}
|
||||
|
||||
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", "button");
|
||||
|
||||
if (docsLoaded == 1) {
|
||||
setUpPageStatus = 'complete';
|
||||
}
|
||||
} catch(ex) {
|
||||
catchInitializationError(builder, ex);
|
||||
setUpPageStatus = '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 type attribute specifies the type of button.
|
||||
|
||||
Retrieve the type 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-27430092
|
||||
*/
|
||||
function HTMLButtonElement07() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLButtonElement07") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var vtype;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "button");
|
||||
nodeList = doc.getElementsByTagName("button");
|
||||
assertSize("Asize",2,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
vtype = testNode.type;
|
||||
|
||||
assertEquals("typeLink","reset",vtype);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLButtonElement07();
|
||||
}
|
||||
+113
@@ -0,0 +1,113 @@
|
||||
|
||||
/*
|
||||
Copyright © 2001-2004 World Wide Web Consortium,
|
||||
(Massachusetts Institute of Technology, European Research Consortium
|
||||
for Informatics and Mathematics, Keio University). All
|
||||
Rights Reserved. This work is distributed under the W3C® Software License [1] 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.
|
||||
|
||||
[1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
|
||||
*/
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets URI that identifies the test.
|
||||
* @return uri identifier of test
|
||||
*/
|
||||
function getTargetURI() {
|
||||
return "http://www.w3.org/2001/DOM-Test-Suite/level1/html/HTMLButtonElement08";
|
||||
}
|
||||
|
||||
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", "button");
|
||||
|
||||
if (docsLoaded == 1) {
|
||||
setUpPageStatus = 'complete';
|
||||
}
|
||||
} catch(ex) {
|
||||
catchInitializationError(builder, ex);
|
||||
setUpPageStatus = '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 value attribute specifies the current control value.
|
||||
|
||||
Retrieve the value 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-72856782
|
||||
*/
|
||||
function HTMLButtonElement08() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLButtonElement08") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var vvalue;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "button");
|
||||
nodeList = doc.getElementsByTagName("button");
|
||||
assertSize("Asize",2,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
vvalue = testNode.value;
|
||||
|
||||
assertEquals("valueLink","Reset Disabled Button",vvalue);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLButtonElement08();
|
||||
}
|
||||
+109
@@ -0,0 +1,109 @@
|
||||
|
||||
/*
|
||||
Copyright © 2001-2004 World Wide Web Consortium,
|
||||
(Massachusetts Institute of Technology, European Research Consortium
|
||||
for Informatics and Mathematics, Keio University). All
|
||||
Rights Reserved. This work is distributed under the W3C® Software License [1] 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.
|
||||
|
||||
[1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
|
||||
*/
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets URI that identifies the test.
|
||||
* @return uri identifier of test
|
||||
*/
|
||||
function getTargetURI() {
|
||||
return "http://www.w3.org/2001/DOM-Test-Suite/level1/html/HTMLDocument01";
|
||||
}
|
||||
|
||||
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", "document");
|
||||
|
||||
if (docsLoaded == 1) {
|
||||
setUpPageStatus = 'complete';
|
||||
}
|
||||
} catch(ex) {
|
||||
catchInitializationError(builder, ex);
|
||||
setUpPageStatus = '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 title attribute is the specified title as a string.
|
||||
|
||||
Retrieve the title 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-18446827
|
||||
*/
|
||||
function HTMLDocument01() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLDocument01") != null) return;
|
||||
var nodeList;
|
||||
var vtitle;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "document");
|
||||
vtitle = doc.title;
|
||||
|
||||
assertEquals("titleLink","NIST DOM HTML Test - DOCUMENT",vtitle);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLDocument01();
|
||||
}
|
||||
+114
@@ -0,0 +1,114 @@
|
||||
|
||||
/*
|
||||
Copyright © 2001-2004 World Wide Web Consortium,
|
||||
(Massachusetts Institute of Technology, European Research Consortium
|
||||
for Informatics and Mathematics, Keio University). All
|
||||
Rights Reserved. This work is distributed under the W3C® Software License [1] 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.
|
||||
|
||||
[1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
|
||||
*/
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets URI that identifies the test.
|
||||
* @return uri identifier of test
|
||||
*/
|
||||
function getTargetURI() {
|
||||
return "http://www.w3.org/2001/DOM-Test-Suite/level1/html/HTMLDocument05";
|
||||
}
|
||||
|
||||
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", "document");
|
||||
|
||||
if (docsLoaded == 1) {
|
||||
setUpPageStatus = 'complete';
|
||||
}
|
||||
} catch(ex) {
|
||||
catchInitializationError(builder, ex);
|
||||
setUpPageStatus = '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 body attribute is the element that contains the content for the
|
||||
document.
|
||||
|
||||
Retrieve the body attribute and examine its value for the id attribute.
|
||||
|
||||
* @author NIST
|
||||
* @author Mary Brady
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-56360201
|
||||
*/
|
||||
function HTMLDocument05() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLDocument05") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var vbody;
|
||||
var vid;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "document");
|
||||
vbody = doc.body;
|
||||
|
||||
vid = vbody.id;
|
||||
|
||||
assertEquals("idLink","TEST-BODY",vid);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLDocument05();
|
||||
}
|
||||
+115
@@ -0,0 +1,115 @@
|
||||
|
||||
/*
|
||||
Copyright © 2001-2004 World Wide Web Consortium,
|
||||
(Massachusetts Institute of Technology, European Research Consortium
|
||||
for Informatics and Mathematics, Keio University). All
|
||||
Rights Reserved. This work is distributed under the W3C® Software License [1] 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.
|
||||
|
||||
[1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
|
||||
*/
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets URI that identifies the test.
|
||||
* @return uri identifier of test
|
||||
*/
|
||||
function getTargetURI() {
|
||||
return "http://www.w3.org/2001/DOM-Test-Suite/level1/html/HTMLDocument15";
|
||||
}
|
||||
|
||||
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", "document");
|
||||
|
||||
if (docsLoaded == 1) {
|
||||
setUpPageStatus = 'complete';
|
||||
}
|
||||
} catch(ex) {
|
||||
catchInitializationError(builder, ex);
|
||||
setUpPageStatus = '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 getElementById method returns the Element whose id is given by
|
||||
elementId. If no such element exists, returns null.
|
||||
|
||||
Retrieve the element whose id is "mapid".
|
||||
Check the value of the element.
|
||||
|
||||
|
||||
* @author NIST
|
||||
* @author Rick Rivello
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-36113835
|
||||
* @see http://www.w3.org/TR/DOM-Level-2-HTML/html#ID-26809268
|
||||
* @see http://www.w3.org/TR/DOM-Level-2-Core/core#ID-getElBId
|
||||
*/
|
||||
function HTMLDocument15() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLDocument15") != null) return;
|
||||
var elementNode;
|
||||
var elementValue;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "document");
|
||||
elementNode = doc.getElementById("mapid");
|
||||
elementValue = elementNode.nodeName;
|
||||
|
||||
assertEqualsAutoCase("element", "elementId","map",elementValue);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLDocument15();
|
||||
}
|
||||
+114
@@ -0,0 +1,114 @@
|
||||
|
||||
/*
|
||||
Copyright © 2001-2004 World Wide Web Consortium,
|
||||
(Massachusetts Institute of Technology, European Research Consortium
|
||||
for Informatics and Mathematics, Keio University). All
|
||||
Rights Reserved. This work is distributed under the W3C® Software License [1] 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.
|
||||
|
||||
[1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
|
||||
*/
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets URI that identifies the test.
|
||||
* @return uri identifier of test
|
||||
*/
|
||||
function getTargetURI() {
|
||||
return "http://www.w3.org/2001/DOM-Test-Suite/level1/html/HTMLDocument16";
|
||||
}
|
||||
|
||||
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", "document");
|
||||
|
||||
if (docsLoaded == 1) {
|
||||
setUpPageStatus = 'complete';
|
||||
}
|
||||
} catch(ex) {
|
||||
catchInitializationError(builder, ex);
|
||||
setUpPageStatus = '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 getElementById method returns the Element whose id is given by
|
||||
elementId. If no such element exists, returns null.
|
||||
|
||||
Retrieve the element whose id is "noid".
|
||||
The value returned should be null since there are not any elements with
|
||||
an id of "noid".
|
||||
|
||||
|
||||
* @author NIST
|
||||
* @author Rick Rivello
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-36113835
|
||||
* @see http://www.w3.org/TR/DOM-Level-2-HTML/html#ID-26809268
|
||||
* @see http://www.w3.org/TR/DOM-Level-2-Core/core#ID-getElBId
|
||||
*/
|
||||
function HTMLDocument16() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLDocument16") != null) return;
|
||||
var elementNode;
|
||||
var elementValue;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "document");
|
||||
elementNode = doc.getElementById("noid");
|
||||
assertNull("elementId",elementNode);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLDocument16();
|
||||
}
|
||||
+119
@@ -0,0 +1,119 @@
|
||||
|
||||
/*
|
||||
Copyright © 2001-2004 World Wide Web Consortium,
|
||||
(Massachusetts Institute of Technology, European Research Consortium
|
||||
for Informatics and Mathematics, Keio University). All
|
||||
Rights Reserved. This work is distributed under the W3C® Software License [1] 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.
|
||||
|
||||
[1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
|
||||
*/
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets URI that identifies the test.
|
||||
* @return uri identifier of test
|
||||
*/
|
||||
function getTargetURI() {
|
||||
return "http://www.w3.org/2001/DOM-Test-Suite/level1/html/HTMLDocument17";
|
||||
}
|
||||
|
||||
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", "document");
|
||||
|
||||
if (docsLoaded == 1) {
|
||||
setUpPageStatus = 'complete';
|
||||
}
|
||||
} catch(ex) {
|
||||
catchInitializationError(builder, ex);
|
||||
setUpPageStatus = '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';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
Clears the current document using HTMLDocument.open immediately followed by close.
|
||||
|
||||
* @author Curt Arnold
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-72161170
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-98948567
|
||||
*/
|
||||
function HTMLDocument17() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLDocument17") != null) return;
|
||||
var doc;
|
||||
var bodyElem;
|
||||
var bodyChild;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "document");
|
||||
doc.open();
|
||||
doc.close();
|
||||
bodyElem = doc.body;
|
||||
|
||||
|
||||
if(
|
||||
|
||||
(bodyElem != null)
|
||||
|
||||
) {
|
||||
bodyChild = bodyElem.firstChild;
|
||||
|
||||
assertNull("bodyContainsChildren",bodyChild);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLDocument17();
|
||||
}
|
||||
+102
@@ -0,0 +1,102 @@
|
||||
|
||||
/*
|
||||
Copyright © 2001-2004 World Wide Web Consortium,
|
||||
(Massachusetts Institute of Technology, European Research Consortium
|
||||
for Informatics and Mathematics, Keio University). All
|
||||
Rights Reserved. This work is distributed under the W3C® Software License [1] 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.
|
||||
|
||||
[1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
|
||||
*/
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets URI that identifies the test.
|
||||
* @return uri identifier of test
|
||||
*/
|
||||
function getTargetURI() {
|
||||
return "http://www.w3.org/2001/DOM-Test-Suite/level1/html/HTMLDocument18";
|
||||
}
|
||||
|
||||
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", "document");
|
||||
|
||||
if (docsLoaded == 1) {
|
||||
setUpPageStatus = 'complete';
|
||||
}
|
||||
} catch(ex) {
|
||||
catchInitializationError(builder, ex);
|
||||
setUpPageStatus = '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';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
Calls HTMLDocument.close on a document that has not been opened for modification.
|
||||
|
||||
* @author Curt Arnold
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-98948567
|
||||
*/
|
||||
function HTMLDocument18() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLDocument18") != null) return;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "document");
|
||||
doc.close();
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLDocument18();
|
||||
}
|
||||
+129
@@ -0,0 +1,129 @@
|
||||
|
||||
/*
|
||||
Copyright © 2001-2004 World Wide Web Consortium,
|
||||
(Massachusetts Institute of Technology, European Research Consortium
|
||||
for Informatics and Mathematics, Keio University). All
|
||||
Rights Reserved. This work is distributed under the W3C® Software License [1] 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.
|
||||
|
||||
[1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
|
||||
*/
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets URI that identifies the test.
|
||||
* @return uri identifier of test
|
||||
*/
|
||||
function getTargetURI() {
|
||||
return "http://www.w3.org/2001/DOM-Test-Suite/level1/html/HTMLDocument19";
|
||||
}
|
||||
|
||||
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", "document");
|
||||
|
||||
if (docsLoaded == 1) {
|
||||
setUpPageStatus = 'complete';
|
||||
}
|
||||
} catch(ex) {
|
||||
catchInitializationError(builder, ex);
|
||||
setUpPageStatus = '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';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
Replaces the current document with a valid HTML document using HTMLDocument.open, write and close.
|
||||
|
||||
* @author Curt Arnold
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-72161170
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-98948567
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-75233634
|
||||
*/
|
||||
function HTMLDocument19() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLDocument19") != null) return;
|
||||
var doc;
|
||||
var docElem;
|
||||
var title;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "document");
|
||||
doc.open();
|
||||
|
||||
if(
|
||||
|
||||
(builder.contentType == "text/html")
|
||||
|
||||
) {
|
||||
doc.write("<html>");
|
||||
|
||||
}
|
||||
|
||||
else {
|
||||
doc.write("<html xmlns='http://www.w3.org/1999/xhtml'>");
|
||||
|
||||
}
|
||||
doc.write("<body>");
|
||||
doc.write("<title>Replacement</title>");
|
||||
doc.write("</body>");
|
||||
doc.write("<p>");
|
||||
doc.write("Hello, World.");
|
||||
doc.write("</p>");
|
||||
doc.write("</body>");
|
||||
doc.write("</html>");
|
||||
doc.close();
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLDocument19();
|
||||
}
|
||||
+129
@@ -0,0 +1,129 @@
|
||||
|
||||
/*
|
||||
Copyright © 2001-2004 World Wide Web Consortium,
|
||||
(Massachusetts Institute of Technology, European Research Consortium
|
||||
for Informatics and Mathematics, Keio University). All
|
||||
Rights Reserved. This work is distributed under the W3C® Software License [1] 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.
|
||||
|
||||
[1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
|
||||
*/
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets URI that identifies the test.
|
||||
* @return uri identifier of test
|
||||
*/
|
||||
function getTargetURI() {
|
||||
return "http://www.w3.org/2001/DOM-Test-Suite/level1/html/HTMLDocument20";
|
||||
}
|
||||
|
||||
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", "document");
|
||||
|
||||
if (docsLoaded == 1) {
|
||||
setUpPageStatus = 'complete';
|
||||
}
|
||||
} catch(ex) {
|
||||
catchInitializationError(builder, ex);
|
||||
setUpPageStatus = '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';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
Replaces the current document with a valid HTML document using HTMLDocument.open, writeln and close.
|
||||
|
||||
* @author Curt Arnold
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-72161170
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-98948567
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-35318390
|
||||
*/
|
||||
function HTMLDocument20() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLDocument20") != null) return;
|
||||
var doc;
|
||||
var docElem;
|
||||
var title;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "document");
|
||||
doc.open();
|
||||
|
||||
if(
|
||||
|
||||
(builder.contentType == "text/html")
|
||||
|
||||
) {
|
||||
doc.writeln("<html>");
|
||||
|
||||
}
|
||||
|
||||
else {
|
||||
doc.writeln("<html xmlns='http://www.w3.org/1999/xhtml'>");
|
||||
|
||||
}
|
||||
doc.writeln("<body>");
|
||||
doc.writeln("<title>Replacement</title>");
|
||||
doc.writeln("</body>");
|
||||
doc.writeln("<p>");
|
||||
doc.writeln("Hello, World.");
|
||||
doc.writeln("</p>");
|
||||
doc.writeln("</body>");
|
||||
doc.writeln("</html>");
|
||||
doc.close();
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLDocument20();
|
||||
}
|
||||
+138
@@ -0,0 +1,138 @@
|
||||
|
||||
/*
|
||||
Copyright © 2001-2004 World Wide Web Consortium,
|
||||
(Massachusetts Institute of Technology, European Research Consortium
|
||||
for Informatics and Mathematics, Keio University). All
|
||||
Rights Reserved. This work is distributed under the W3C® Software License [1] 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.
|
||||
|
||||
[1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
|
||||
*/
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets URI that identifies the test.
|
||||
* @return uri identifier of test
|
||||
*/
|
||||
function getTargetURI() {
|
||||
return "http://www.w3.org/2001/DOM-Test-Suite/level1/html/HTMLDocument21";
|
||||
}
|
||||
|
||||
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", "document");
|
||||
|
||||
if (docsLoaded == 1) {
|
||||
setUpPageStatus = 'complete';
|
||||
}
|
||||
} catch(ex) {
|
||||
catchInitializationError(builder, ex);
|
||||
setUpPageStatus = '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';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
Replaces the current document checks that writeln adds a new line.
|
||||
|
||||
* @author Curt Arnold
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-72161170
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-98948567
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-75233634
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-35318390
|
||||
*/
|
||||
function HTMLDocument21() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLDocument21") != null) return;
|
||||
var doc;
|
||||
var docElem;
|
||||
var preElems;
|
||||
var preElem;
|
||||
var preText;
|
||||
var preValue;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "document");
|
||||
doc.open();
|
||||
|
||||
if(
|
||||
|
||||
(builder.contentType == "text/html")
|
||||
|
||||
) {
|
||||
doc.writeln("<html>");
|
||||
|
||||
}
|
||||
|
||||
else {
|
||||
doc.writeln("<html xmlns='http://www.w3.org/1999/xhtml'>");
|
||||
|
||||
}
|
||||
doc.writeln("<body>");
|
||||
doc.writeln("<title>Replacement</title>");
|
||||
doc.writeln("</body>");
|
||||
doc.write("<pre>");
|
||||
doc.writeln("Hello, World.");
|
||||
doc.writeln("Hello, World.");
|
||||
doc.writeln("</pre>");
|
||||
doc.write("<pre>");
|
||||
doc.write("Hello, World.");
|
||||
doc.write("Hello, World.");
|
||||
doc.writeln("</pre>");
|
||||
doc.writeln("</body>");
|
||||
doc.writeln("</html>");
|
||||
doc.close();
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLDocument21();
|
||||
}
|
||||
+113
@@ -0,0 +1,113 @@
|
||||
|
||||
/*
|
||||
Copyright © 2001-2004 World Wide Web Consortium,
|
||||
(Massachusetts Institute of Technology, European Research Consortium
|
||||
for Informatics and Mathematics, Keio University). All
|
||||
Rights Reserved. This work is distributed under the W3C® Software License [1] 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.
|
||||
|
||||
[1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
|
||||
*/
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets URI that identifies the test.
|
||||
* @return uri identifier of test
|
||||
*/
|
||||
function getTargetURI() {
|
||||
return "http://www.w3.org/2001/DOM-Test-Suite/level1/html/HTMLElement01";
|
||||
}
|
||||
|
||||
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", "element");
|
||||
|
||||
if (docsLoaded == 1) {
|
||||
setUpPageStatus = 'complete';
|
||||
}
|
||||
} catch(ex) {
|
||||
catchInitializationError(builder, ex);
|
||||
setUpPageStatus = '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 id specifies the elements identifier.
|
||||
|
||||
Retrieve the id attribute of the HEAD element 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-63534901
|
||||
*/
|
||||
function HTMLElement01() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLElement01") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var vid;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "element");
|
||||
nodeList = doc.getElementsByTagName("head");
|
||||
assertSize("Asize",1,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
vid = testNode.id;
|
||||
|
||||
assertEquals("idLink","Test-HEAD",vid);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLElement01();
|
||||
}
|
||||
+113
@@ -0,0 +1,113 @@
|
||||
|
||||
/*
|
||||
Copyright © 2001-2004 World Wide Web Consortium,
|
||||
(Massachusetts Institute of Technology, European Research Consortium
|
||||
for Informatics and Mathematics, Keio University). All
|
||||
Rights Reserved. This work is distributed under the W3C® Software License [1] 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.
|
||||
|
||||
[1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
|
||||
*/
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets URI that identifies the test.
|
||||
* @return uri identifier of test
|
||||
*/
|
||||
function getTargetURI() {
|
||||
return "http://www.w3.org/2001/DOM-Test-Suite/level1/html/HTMLElement02";
|
||||
}
|
||||
|
||||
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", "element");
|
||||
|
||||
if (docsLoaded == 1) {
|
||||
setUpPageStatus = 'complete';
|
||||
}
|
||||
} catch(ex) {
|
||||
catchInitializationError(builder, ex);
|
||||
setUpPageStatus = '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 id specifies the elements identifier.
|
||||
|
||||
Retrieve the id attribute of the SUB element 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-63534901
|
||||
*/
|
||||
function HTMLElement02() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLElement02") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var vid;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "element");
|
||||
nodeList = doc.getElementsByTagName("sub");
|
||||
assertSize("Asize",1,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
vid = testNode.id;
|
||||
|
||||
assertEquals("idLink","Test-SUB",vid);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLElement02();
|
||||
}
|
||||
+113
@@ -0,0 +1,113 @@
|
||||
|
||||
/*
|
||||
Copyright © 2001-2004 World Wide Web Consortium,
|
||||
(Massachusetts Institute of Technology, European Research Consortium
|
||||
for Informatics and Mathematics, Keio University). All
|
||||
Rights Reserved. This work is distributed under the W3C® Software License [1] 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.
|
||||
|
||||
[1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
|
||||
*/
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets URI that identifies the test.
|
||||
* @return uri identifier of test
|
||||
*/
|
||||
function getTargetURI() {
|
||||
return "http://www.w3.org/2001/DOM-Test-Suite/level1/html/HTMLElement03";
|
||||
}
|
||||
|
||||
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", "element");
|
||||
|
||||
if (docsLoaded == 1) {
|
||||
setUpPageStatus = 'complete';
|
||||
}
|
||||
} catch(ex) {
|
||||
catchInitializationError(builder, ex);
|
||||
setUpPageStatus = '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 id specifies the elements identifier.
|
||||
|
||||
Retrieve the id attribute of the SUP element 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-63534901
|
||||
*/
|
||||
function HTMLElement03() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLElement03") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var vid;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "element");
|
||||
nodeList = doc.getElementsByTagName("sup");
|
||||
assertSize("Asize",1,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
vid = testNode.id;
|
||||
|
||||
assertEquals("idLink","Test-SUP",vid);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLElement03();
|
||||
}
|
||||
+113
@@ -0,0 +1,113 @@
|
||||
|
||||
/*
|
||||
Copyright © 2001-2004 World Wide Web Consortium,
|
||||
(Massachusetts Institute of Technology, European Research Consortium
|
||||
for Informatics and Mathematics, Keio University). All
|
||||
Rights Reserved. This work is distributed under the W3C® Software License [1] 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.
|
||||
|
||||
[1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
|
||||
*/
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets URI that identifies the test.
|
||||
* @return uri identifier of test
|
||||
*/
|
||||
function getTargetURI() {
|
||||
return "http://www.w3.org/2001/DOM-Test-Suite/level1/html/HTMLElement04";
|
||||
}
|
||||
|
||||
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", "element");
|
||||
|
||||
if (docsLoaded == 1) {
|
||||
setUpPageStatus = 'complete';
|
||||
}
|
||||
} catch(ex) {
|
||||
catchInitializationError(builder, ex);
|
||||
setUpPageStatus = '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 id specifies the elements identifier.
|
||||
|
||||
Retrieve the id attribute of the SPAN element 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-63534901
|
||||
*/
|
||||
function HTMLElement04() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLElement04") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var vid;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "element");
|
||||
nodeList = doc.getElementsByTagName("span");
|
||||
assertSize("Asize",1,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
vid = testNode.id;
|
||||
|
||||
assertEquals("idLink","Test-SPAN",vid);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLElement04();
|
||||
}
|
||||
+113
@@ -0,0 +1,113 @@
|
||||
|
||||
/*
|
||||
Copyright © 2001-2004 World Wide Web Consortium,
|
||||
(Massachusetts Institute of Technology, European Research Consortium
|
||||
for Informatics and Mathematics, Keio University). All
|
||||
Rights Reserved. This work is distributed under the W3C® Software License [1] 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.
|
||||
|
||||
[1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
|
||||
*/
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets URI that identifies the test.
|
||||
* @return uri identifier of test
|
||||
*/
|
||||
function getTargetURI() {
|
||||
return "http://www.w3.org/2001/DOM-Test-Suite/level1/html/HTMLElement05";
|
||||
}
|
||||
|
||||
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", "element");
|
||||
|
||||
if (docsLoaded == 1) {
|
||||
setUpPageStatus = 'complete';
|
||||
}
|
||||
} catch(ex) {
|
||||
catchInitializationError(builder, ex);
|
||||
setUpPageStatus = '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 id specifies the elements identifier.
|
||||
|
||||
Retrieve the id attribute of the BDO element 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-63534901
|
||||
*/
|
||||
function HTMLElement05() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLElement05") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var vid;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "element");
|
||||
nodeList = doc.getElementsByTagName("bdo");
|
||||
assertSize("Asize",1,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
vid = testNode.id;
|
||||
|
||||
assertEquals("idLink","Test-BDO",vid);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLElement05();
|
||||
}
|
||||
+113
@@ -0,0 +1,113 @@
|
||||
|
||||
/*
|
||||
Copyright © 2001-2004 World Wide Web Consortium,
|
||||
(Massachusetts Institute of Technology, European Research Consortium
|
||||
for Informatics and Mathematics, Keio University). All
|
||||
Rights Reserved. This work is distributed under the W3C® Software License [1] 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.
|
||||
|
||||
[1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
|
||||
*/
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets URI that identifies the test.
|
||||
* @return uri identifier of test
|
||||
*/
|
||||
function getTargetURI() {
|
||||
return "http://www.w3.org/2001/DOM-Test-Suite/level1/html/HTMLElement06";
|
||||
}
|
||||
|
||||
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", "element");
|
||||
|
||||
if (docsLoaded == 1) {
|
||||
setUpPageStatus = 'complete';
|
||||
}
|
||||
} catch(ex) {
|
||||
catchInitializationError(builder, ex);
|
||||
setUpPageStatus = '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 id specifies the elements identifier.
|
||||
|
||||
Retrieve the id attribute of the TT element 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-63534901
|
||||
*/
|
||||
function HTMLElement06() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLElement06") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var vid;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "element");
|
||||
nodeList = doc.getElementsByTagName("tt");
|
||||
assertSize("Asize",1,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
vid = testNode.id;
|
||||
|
||||
assertEquals("idLink","Test-TT",vid);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLElement06();
|
||||
}
|
||||
+113
@@ -0,0 +1,113 @@
|
||||
|
||||
/*
|
||||
Copyright © 2001-2004 World Wide Web Consortium,
|
||||
(Massachusetts Institute of Technology, European Research Consortium
|
||||
for Informatics and Mathematics, Keio University). All
|
||||
Rights Reserved. This work is distributed under the W3C® Software License [1] 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.
|
||||
|
||||
[1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
|
||||
*/
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets URI that identifies the test.
|
||||
* @return uri identifier of test
|
||||
*/
|
||||
function getTargetURI() {
|
||||
return "http://www.w3.org/2001/DOM-Test-Suite/level1/html/HTMLElement07";
|
||||
}
|
||||
|
||||
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", "element");
|
||||
|
||||
if (docsLoaded == 1) {
|
||||
setUpPageStatus = 'complete';
|
||||
}
|
||||
} catch(ex) {
|
||||
catchInitializationError(builder, ex);
|
||||
setUpPageStatus = '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 id specifies the elements identifier.
|
||||
|
||||
Retrieve the id attribute of the I element 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-63534901
|
||||
*/
|
||||
function HTMLElement07() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLElement07") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var vid;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "element");
|
||||
nodeList = doc.getElementsByTagName("i");
|
||||
assertSize("Asize",1,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
vid = testNode.id;
|
||||
|
||||
assertEquals("idLink","Test-I",vid);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLElement07();
|
||||
}
|
||||
+113
@@ -0,0 +1,113 @@
|
||||
|
||||
/*
|
||||
Copyright © 2001-2004 World Wide Web Consortium,
|
||||
(Massachusetts Institute of Technology, European Research Consortium
|
||||
for Informatics and Mathematics, Keio University). All
|
||||
Rights Reserved. This work is distributed under the W3C® Software License [1] 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.
|
||||
|
||||
[1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
|
||||
*/
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets URI that identifies the test.
|
||||
* @return uri identifier of test
|
||||
*/
|
||||
function getTargetURI() {
|
||||
return "http://www.w3.org/2001/DOM-Test-Suite/level1/html/HTMLElement08";
|
||||
}
|
||||
|
||||
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", "element");
|
||||
|
||||
if (docsLoaded == 1) {
|
||||
setUpPageStatus = 'complete';
|
||||
}
|
||||
} catch(ex) {
|
||||
catchInitializationError(builder, ex);
|
||||
setUpPageStatus = '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 id specifies the elements identifier.
|
||||
|
||||
Retrieve the id attribute of the B element 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-63534901
|
||||
*/
|
||||
function HTMLElement08() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLElement08") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var vid;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "element");
|
||||
nodeList = doc.getElementsByTagName("b");
|
||||
assertSize("Asize",1,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
vid = testNode.id;
|
||||
|
||||
assertEquals("idLink","Test-B",vid);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLElement08();
|
||||
}
|
||||
+113
@@ -0,0 +1,113 @@
|
||||
|
||||
/*
|
||||
Copyright © 2001-2004 World Wide Web Consortium,
|
||||
(Massachusetts Institute of Technology, European Research Consortium
|
||||
for Informatics and Mathematics, Keio University). All
|
||||
Rights Reserved. This work is distributed under the W3C® Software License [1] 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.
|
||||
|
||||
[1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
|
||||
*/
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets URI that identifies the test.
|
||||
* @return uri identifier of test
|
||||
*/
|
||||
function getTargetURI() {
|
||||
return "http://www.w3.org/2001/DOM-Test-Suite/level1/html/HTMLElement09";
|
||||
}
|
||||
|
||||
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", "element");
|
||||
|
||||
if (docsLoaded == 1) {
|
||||
setUpPageStatus = 'complete';
|
||||
}
|
||||
} catch(ex) {
|
||||
catchInitializationError(builder, ex);
|
||||
setUpPageStatus = '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 id specifies the elements identifier.
|
||||
|
||||
Retrieve the id attribute of the U element 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-63534901
|
||||
*/
|
||||
function HTMLElement09() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLElement09") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var vid;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "element");
|
||||
nodeList = doc.getElementsByTagName("u");
|
||||
assertSize("Asize",1,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
vid = testNode.id;
|
||||
|
||||
assertEquals("idLink","Test-U",vid);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLElement09();
|
||||
}
|
||||
+113
@@ -0,0 +1,113 @@
|
||||
|
||||
/*
|
||||
Copyright © 2001-2004 World Wide Web Consortium,
|
||||
(Massachusetts Institute of Technology, European Research Consortium
|
||||
for Informatics and Mathematics, Keio University). All
|
||||
Rights Reserved. This work is distributed under the W3C® Software License [1] 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.
|
||||
|
||||
[1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
|
||||
*/
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets URI that identifies the test.
|
||||
* @return uri identifier of test
|
||||
*/
|
||||
function getTargetURI() {
|
||||
return "http://www.w3.org/2001/DOM-Test-Suite/level1/html/HTMLElement10";
|
||||
}
|
||||
|
||||
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", "element");
|
||||
|
||||
if (docsLoaded == 1) {
|
||||
setUpPageStatus = 'complete';
|
||||
}
|
||||
} catch(ex) {
|
||||
catchInitializationError(builder, ex);
|
||||
setUpPageStatus = '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 id specifies the elements identifier.
|
||||
|
||||
Retrieve the id attribute of the S element 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-63534901
|
||||
*/
|
||||
function HTMLElement10() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLElement10") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var vid;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "element");
|
||||
nodeList = doc.getElementsByTagName("s");
|
||||
assertSize("Asize",1,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
vid = testNode.id;
|
||||
|
||||
assertEquals("idLink","Test-S",vid);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLElement10();
|
||||
}
|
||||
+113
@@ -0,0 +1,113 @@
|
||||
|
||||
/*
|
||||
Copyright © 2001-2004 World Wide Web Consortium,
|
||||
(Massachusetts Institute of Technology, European Research Consortium
|
||||
for Informatics and Mathematics, Keio University). All
|
||||
Rights Reserved. This work is distributed under the W3C® Software License [1] 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.
|
||||
|
||||
[1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
|
||||
*/
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets URI that identifies the test.
|
||||
* @return uri identifier of test
|
||||
*/
|
||||
function getTargetURI() {
|
||||
return "http://www.w3.org/2001/DOM-Test-Suite/level1/html/HTMLElement100";
|
||||
}
|
||||
|
||||
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", "element");
|
||||
|
||||
if (docsLoaded == 1) {
|
||||
setUpPageStatus = 'complete';
|
||||
}
|
||||
} catch(ex) {
|
||||
catchInitializationError(builder, ex);
|
||||
setUpPageStatus = '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 dir attribute specifies the base direction of directionally neutral text and the directionality of tables.
|
||||
|
||||
Retrieve the dir attribute of the SMALL element 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-52460740
|
||||
*/
|
||||
function HTMLElement100() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLElement100") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var vdir;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "element");
|
||||
nodeList = doc.getElementsByTagName("small");
|
||||
assertSize("Asize",1,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
vdir = testNode.dir;
|
||||
|
||||
assertEquals("dirLink","ltr",vdir);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLElement100();
|
||||
}
|
||||
+113
@@ -0,0 +1,113 @@
|
||||
|
||||
/*
|
||||
Copyright © 2001-2004 World Wide Web Consortium,
|
||||
(Massachusetts Institute of Technology, European Research Consortium
|
||||
for Informatics and Mathematics, Keio University). All
|
||||
Rights Reserved. This work is distributed under the W3C® Software License [1] 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.
|
||||
|
||||
[1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
|
||||
*/
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets URI that identifies the test.
|
||||
* @return uri identifier of test
|
||||
*/
|
||||
function getTargetURI() {
|
||||
return "http://www.w3.org/2001/DOM-Test-Suite/level1/html/HTMLElement101";
|
||||
}
|
||||
|
||||
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", "element");
|
||||
|
||||
if (docsLoaded == 1) {
|
||||
setUpPageStatus = 'complete';
|
||||
}
|
||||
} catch(ex) {
|
||||
catchInitializationError(builder, ex);
|
||||
setUpPageStatus = '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 dir attribute specifies the base direction of directionally neutral text and the directionality of tables.
|
||||
|
||||
Retrieve the dir attribute of the EM element 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-52460740
|
||||
*/
|
||||
function HTMLElement101() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLElement101") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var vdir;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "element");
|
||||
nodeList = doc.getElementsByTagName("em");
|
||||
assertSize("Asize",1,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
vdir = testNode.dir;
|
||||
|
||||
assertEquals("dirLink","ltr",vdir);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLElement101();
|
||||
}
|
||||
+113
@@ -0,0 +1,113 @@
|
||||
|
||||
/*
|
||||
Copyright © 2001-2004 World Wide Web Consortium,
|
||||
(Massachusetts Institute of Technology, European Research Consortium
|
||||
for Informatics and Mathematics, Keio University). All
|
||||
Rights Reserved. This work is distributed under the W3C® Software License [1] 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.
|
||||
|
||||
[1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
|
||||
*/
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets URI that identifies the test.
|
||||
* @return uri identifier of test
|
||||
*/
|
||||
function getTargetURI() {
|
||||
return "http://www.w3.org/2001/DOM-Test-Suite/level1/html/HTMLElement102";
|
||||
}
|
||||
|
||||
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", "element");
|
||||
|
||||
if (docsLoaded == 1) {
|
||||
setUpPageStatus = 'complete';
|
||||
}
|
||||
} catch(ex) {
|
||||
catchInitializationError(builder, ex);
|
||||
setUpPageStatus = '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 dir attribute specifies the base direction of directionally neutral text and the directionality of tables.
|
||||
|
||||
Retrieve the dir attribute of the STRONG element 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-52460740
|
||||
*/
|
||||
function HTMLElement102() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLElement102") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var vdir;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "element");
|
||||
nodeList = doc.getElementsByTagName("strong");
|
||||
assertSize("Asize",1,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
vdir = testNode.dir;
|
||||
|
||||
assertEquals("dirLink","ltr",vdir);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLElement102();
|
||||
}
|
||||
+113
@@ -0,0 +1,113 @@
|
||||
|
||||
/*
|
||||
Copyright © 2001-2004 World Wide Web Consortium,
|
||||
(Massachusetts Institute of Technology, European Research Consortium
|
||||
for Informatics and Mathematics, Keio University). All
|
||||
Rights Reserved. This work is distributed under the W3C® Software License [1] 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.
|
||||
|
||||
[1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
|
||||
*/
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets URI that identifies the test.
|
||||
* @return uri identifier of test
|
||||
*/
|
||||
function getTargetURI() {
|
||||
return "http://www.w3.org/2001/DOM-Test-Suite/level1/html/HTMLElement103";
|
||||
}
|
||||
|
||||
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", "element");
|
||||
|
||||
if (docsLoaded == 1) {
|
||||
setUpPageStatus = 'complete';
|
||||
}
|
||||
} catch(ex) {
|
||||
catchInitializationError(builder, ex);
|
||||
setUpPageStatus = '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 dir attribute specifies the base direction of directionally neutral text and the directionality of tables.
|
||||
|
||||
Retrieve the dir attribute of the DFN element 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-52460740
|
||||
*/
|
||||
function HTMLElement103() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLElement103") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var vdir;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "element");
|
||||
nodeList = doc.getElementsByTagName("dfn");
|
||||
assertSize("Asize",1,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
vdir = testNode.dir;
|
||||
|
||||
assertEquals("dirLink","ltr",vdir);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLElement103();
|
||||
}
|
||||
+113
@@ -0,0 +1,113 @@
|
||||
|
||||
/*
|
||||
Copyright © 2001-2004 World Wide Web Consortium,
|
||||
(Massachusetts Institute of Technology, European Research Consortium
|
||||
for Informatics and Mathematics, Keio University). All
|
||||
Rights Reserved. This work is distributed under the W3C® Software License [1] 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.
|
||||
|
||||
[1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
|
||||
*/
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets URI that identifies the test.
|
||||
* @return uri identifier of test
|
||||
*/
|
||||
function getTargetURI() {
|
||||
return "http://www.w3.org/2001/DOM-Test-Suite/level1/html/HTMLElement104";
|
||||
}
|
||||
|
||||
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", "element");
|
||||
|
||||
if (docsLoaded == 1) {
|
||||
setUpPageStatus = 'complete';
|
||||
}
|
||||
} catch(ex) {
|
||||
catchInitializationError(builder, ex);
|
||||
setUpPageStatus = '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 dir attribute specifies the base direction of directionally neutral text and the directionality of tables.
|
||||
|
||||
Retrieve the dir attribute of the CODE element 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-52460740
|
||||
*/
|
||||
function HTMLElement104() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLElement104") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var vdir;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "element");
|
||||
nodeList = doc.getElementsByTagName("code");
|
||||
assertSize("Asize",1,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
vdir = testNode.dir;
|
||||
|
||||
assertEquals("dirLink","ltr",vdir);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLElement104();
|
||||
}
|
||||
+113
@@ -0,0 +1,113 @@
|
||||
|
||||
/*
|
||||
Copyright © 2001-2004 World Wide Web Consortium,
|
||||
(Massachusetts Institute of Technology, European Research Consortium
|
||||
for Informatics and Mathematics, Keio University). All
|
||||
Rights Reserved. This work is distributed under the W3C® Software License [1] 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.
|
||||
|
||||
[1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
|
||||
*/
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets URI that identifies the test.
|
||||
* @return uri identifier of test
|
||||
*/
|
||||
function getTargetURI() {
|
||||
return "http://www.w3.org/2001/DOM-Test-Suite/level1/html/HTMLElement105";
|
||||
}
|
||||
|
||||
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", "element");
|
||||
|
||||
if (docsLoaded == 1) {
|
||||
setUpPageStatus = 'complete';
|
||||
}
|
||||
} catch(ex) {
|
||||
catchInitializationError(builder, ex);
|
||||
setUpPageStatus = '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 dir attribute specifies the base direction of directionally neutral text and the directionality of tables.
|
||||
|
||||
Retrieve the dir attribute of the SAMP element 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-52460740
|
||||
*/
|
||||
function HTMLElement105() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLElement105") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var vdir;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "element");
|
||||
nodeList = doc.getElementsByTagName("samp");
|
||||
assertSize("Asize",1,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
vdir = testNode.dir;
|
||||
|
||||
assertEquals("dirLink","ltr",vdir);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLElement105();
|
||||
}
|
||||
+113
@@ -0,0 +1,113 @@
|
||||
|
||||
/*
|
||||
Copyright © 2001-2004 World Wide Web Consortium,
|
||||
(Massachusetts Institute of Technology, European Research Consortium
|
||||
for Informatics and Mathematics, Keio University). All
|
||||
Rights Reserved. This work is distributed under the W3C® Software License [1] 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.
|
||||
|
||||
[1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
|
||||
*/
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets URI that identifies the test.
|
||||
* @return uri identifier of test
|
||||
*/
|
||||
function getTargetURI() {
|
||||
return "http://www.w3.org/2001/DOM-Test-Suite/level1/html/HTMLElement106";
|
||||
}
|
||||
|
||||
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", "element");
|
||||
|
||||
if (docsLoaded == 1) {
|
||||
setUpPageStatus = 'complete';
|
||||
}
|
||||
} catch(ex) {
|
||||
catchInitializationError(builder, ex);
|
||||
setUpPageStatus = '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 dir attribute specifies the base direction of directionally neutral text and the directionality of tables.
|
||||
|
||||
Retrieve the dir attribute of the KBD element 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-52460740
|
||||
*/
|
||||
function HTMLElement106() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLElement106") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var vdir;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "element");
|
||||
nodeList = doc.getElementsByTagName("kbd");
|
||||
assertSize("Asize",1,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
vdir = testNode.dir;
|
||||
|
||||
assertEquals("dirLink","ltr",vdir);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLElement106();
|
||||
}
|
||||
+113
@@ -0,0 +1,113 @@
|
||||
|
||||
/*
|
||||
Copyright © 2001-2004 World Wide Web Consortium,
|
||||
(Massachusetts Institute of Technology, European Research Consortium
|
||||
for Informatics and Mathematics, Keio University). All
|
||||
Rights Reserved. This work is distributed under the W3C® Software License [1] 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.
|
||||
|
||||
[1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
|
||||
*/
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets URI that identifies the test.
|
||||
* @return uri identifier of test
|
||||
*/
|
||||
function getTargetURI() {
|
||||
return "http://www.w3.org/2001/DOM-Test-Suite/level1/html/HTMLElement107";
|
||||
}
|
||||
|
||||
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", "element");
|
||||
|
||||
if (docsLoaded == 1) {
|
||||
setUpPageStatus = 'complete';
|
||||
}
|
||||
} catch(ex) {
|
||||
catchInitializationError(builder, ex);
|
||||
setUpPageStatus = '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 dir attribute specifies the base direction of directionally neutral text and the directionality of tables.
|
||||
|
||||
Retrieve the dir attribute of the VAR element 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-52460740
|
||||
*/
|
||||
function HTMLElement107() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLElement107") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var vdir;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "element");
|
||||
nodeList = doc.getElementsByTagName("var");
|
||||
assertSize("Asize",1,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
vdir = testNode.dir;
|
||||
|
||||
assertEquals("dirLink","ltr",vdir);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLElement107();
|
||||
}
|
||||
+113
@@ -0,0 +1,113 @@
|
||||
|
||||
/*
|
||||
Copyright © 2001-2004 World Wide Web Consortium,
|
||||
(Massachusetts Institute of Technology, European Research Consortium
|
||||
for Informatics and Mathematics, Keio University). All
|
||||
Rights Reserved. This work is distributed under the W3C® Software License [1] 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.
|
||||
|
||||
[1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
|
||||
*/
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets URI that identifies the test.
|
||||
* @return uri identifier of test
|
||||
*/
|
||||
function getTargetURI() {
|
||||
return "http://www.w3.org/2001/DOM-Test-Suite/level1/html/HTMLElement108";
|
||||
}
|
||||
|
||||
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", "element");
|
||||
|
||||
if (docsLoaded == 1) {
|
||||
setUpPageStatus = 'complete';
|
||||
}
|
||||
} catch(ex) {
|
||||
catchInitializationError(builder, ex);
|
||||
setUpPageStatus = '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 dir attribute specifies the base direction of directionally neutral text and the directionality of tables.
|
||||
|
||||
Retrieve the dir attribute of the CITE element 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-52460740
|
||||
*/
|
||||
function HTMLElement108() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLElement108") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var vdir;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "element");
|
||||
nodeList = doc.getElementsByTagName("cite");
|
||||
assertSize("Asize",1,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
vdir = testNode.dir;
|
||||
|
||||
assertEquals("dirLink","ltr",vdir);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLElement108();
|
||||
}
|
||||
+113
@@ -0,0 +1,113 @@
|
||||
|
||||
/*
|
||||
Copyright © 2001-2004 World Wide Web Consortium,
|
||||
(Massachusetts Institute of Technology, European Research Consortium
|
||||
for Informatics and Mathematics, Keio University). All
|
||||
Rights Reserved. This work is distributed under the W3C® Software License [1] 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.
|
||||
|
||||
[1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
|
||||
*/
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets URI that identifies the test.
|
||||
* @return uri identifier of test
|
||||
*/
|
||||
function getTargetURI() {
|
||||
return "http://www.w3.org/2001/DOM-Test-Suite/level1/html/HTMLElement109";
|
||||
}
|
||||
|
||||
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", "element");
|
||||
|
||||
if (docsLoaded == 1) {
|
||||
setUpPageStatus = 'complete';
|
||||
}
|
||||
} catch(ex) {
|
||||
catchInitializationError(builder, ex);
|
||||
setUpPageStatus = '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 dir attribute specifies the base direction of directionally neutral text and the directionality of tables.
|
||||
|
||||
Retrieve the dir attribute of the ACRONYM element 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-52460740
|
||||
*/
|
||||
function HTMLElement109() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLElement109") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var vdir;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "element");
|
||||
nodeList = doc.getElementsByTagName("acronym");
|
||||
assertSize("Asize",1,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
vdir = testNode.dir;
|
||||
|
||||
assertEquals("dirLink","ltr",vdir);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLElement109();
|
||||
}
|
||||
+113
@@ -0,0 +1,113 @@
|
||||
|
||||
/*
|
||||
Copyright © 2001-2004 World Wide Web Consortium,
|
||||
(Massachusetts Institute of Technology, European Research Consortium
|
||||
for Informatics and Mathematics, Keio University). All
|
||||
Rights Reserved. This work is distributed under the W3C® Software License [1] 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.
|
||||
|
||||
[1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
|
||||
*/
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets URI that identifies the test.
|
||||
* @return uri identifier of test
|
||||
*/
|
||||
function getTargetURI() {
|
||||
return "http://www.w3.org/2001/DOM-Test-Suite/level1/html/HTMLElement11";
|
||||
}
|
||||
|
||||
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", "element");
|
||||
|
||||
if (docsLoaded == 1) {
|
||||
setUpPageStatus = 'complete';
|
||||
}
|
||||
} catch(ex) {
|
||||
catchInitializationError(builder, ex);
|
||||
setUpPageStatus = '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 id specifies the elements identifier.
|
||||
|
||||
Retrieve the id attribute of the STRIKE element 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-63534901
|
||||
*/
|
||||
function HTMLElement11() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLElement11") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var vid;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "element");
|
||||
nodeList = doc.getElementsByTagName("strike");
|
||||
assertSize("Asize",1,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
vid = testNode.id;
|
||||
|
||||
assertEquals("idLink","Test-STRIKE",vid);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLElement11();
|
||||
}
|
||||
+113
@@ -0,0 +1,113 @@
|
||||
|
||||
/*
|
||||
Copyright © 2001-2004 World Wide Web Consortium,
|
||||
(Massachusetts Institute of Technology, European Research Consortium
|
||||
for Informatics and Mathematics, Keio University). All
|
||||
Rights Reserved. This work is distributed under the W3C® Software License [1] 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.
|
||||
|
||||
[1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
|
||||
*/
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets URI that identifies the test.
|
||||
* @return uri identifier of test
|
||||
*/
|
||||
function getTargetURI() {
|
||||
return "http://www.w3.org/2001/DOM-Test-Suite/level1/html/HTMLElement110";
|
||||
}
|
||||
|
||||
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", "element");
|
||||
|
||||
if (docsLoaded == 1) {
|
||||
setUpPageStatus = 'complete';
|
||||
}
|
||||
} catch(ex) {
|
||||
catchInitializationError(builder, ex);
|
||||
setUpPageStatus = '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 dir attribute specifies the base direction of directionally neutral text and the directionality of tables.
|
||||
|
||||
Retrieve the dir attribute of the ABBR element 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-52460740
|
||||
*/
|
||||
function HTMLElement110() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLElement110") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var vdir;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "element");
|
||||
nodeList = doc.getElementsByTagName("abbr");
|
||||
assertSize("Asize",1,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
vdir = testNode.dir;
|
||||
|
||||
assertEquals("dirLink","ltr",vdir);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLElement110();
|
||||
}
|
||||
+113
@@ -0,0 +1,113 @@
|
||||
|
||||
/*
|
||||
Copyright © 2001-2004 World Wide Web Consortium,
|
||||
(Massachusetts Institute of Technology, European Research Consortium
|
||||
for Informatics and Mathematics, Keio University). All
|
||||
Rights Reserved. This work is distributed under the W3C® Software License [1] 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.
|
||||
|
||||
[1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
|
||||
*/
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets URI that identifies the test.
|
||||
* @return uri identifier of test
|
||||
*/
|
||||
function getTargetURI() {
|
||||
return "http://www.w3.org/2001/DOM-Test-Suite/level1/html/HTMLElement111";
|
||||
}
|
||||
|
||||
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", "element");
|
||||
|
||||
if (docsLoaded == 1) {
|
||||
setUpPageStatus = 'complete';
|
||||
}
|
||||
} catch(ex) {
|
||||
catchInitializationError(builder, ex);
|
||||
setUpPageStatus = '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 dir attribute specifies the base direction of directionally neutral text and the directionality of tables.
|
||||
|
||||
Retrieve the dir attribute of the DD element 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-52460740
|
||||
*/
|
||||
function HTMLElement111() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLElement111") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var vdir;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "element");
|
||||
nodeList = doc.getElementsByTagName("dd");
|
||||
assertSize("Asize",4,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
vdir = testNode.dir;
|
||||
|
||||
assertEquals("dirLink","ltr",vdir);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLElement111();
|
||||
}
|
||||
+113
@@ -0,0 +1,113 @@
|
||||
|
||||
/*
|
||||
Copyright © 2001-2004 World Wide Web Consortium,
|
||||
(Massachusetts Institute of Technology, European Research Consortium
|
||||
for Informatics and Mathematics, Keio University). All
|
||||
Rights Reserved. This work is distributed under the W3C® Software License [1] 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.
|
||||
|
||||
[1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
|
||||
*/
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets URI that identifies the test.
|
||||
* @return uri identifier of test
|
||||
*/
|
||||
function getTargetURI() {
|
||||
return "http://www.w3.org/2001/DOM-Test-Suite/level1/html/HTMLElement112";
|
||||
}
|
||||
|
||||
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", "element");
|
||||
|
||||
if (docsLoaded == 1) {
|
||||
setUpPageStatus = 'complete';
|
||||
}
|
||||
} catch(ex) {
|
||||
catchInitializationError(builder, ex);
|
||||
setUpPageStatus = '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 dir attribute specifies the base direction of directionally neutral text and the directionality of tables.
|
||||
|
||||
Retrieve the dir attribute of the DT element 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-52460740
|
||||
*/
|
||||
function HTMLElement112() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLElement112") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var vdir;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "element");
|
||||
nodeList = doc.getElementsByTagName("dt");
|
||||
assertSize("Asize",1,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
vdir = testNode.dir;
|
||||
|
||||
assertEquals("dirLink","ltr",vdir);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLElement112();
|
||||
}
|
||||
+113
@@ -0,0 +1,113 @@
|
||||
|
||||
/*
|
||||
Copyright © 2001-2004 World Wide Web Consortium,
|
||||
(Massachusetts Institute of Technology, European Research Consortium
|
||||
for Informatics and Mathematics, Keio University). All
|
||||
Rights Reserved. This work is distributed under the W3C® Software License [1] 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.
|
||||
|
||||
[1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
|
||||
*/
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets URI that identifies the test.
|
||||
* @return uri identifier of test
|
||||
*/
|
||||
function getTargetURI() {
|
||||
return "http://www.w3.org/2001/DOM-Test-Suite/level1/html/HTMLElement113";
|
||||
}
|
||||
|
||||
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", "element");
|
||||
|
||||
if (docsLoaded == 1) {
|
||||
setUpPageStatus = 'complete';
|
||||
}
|
||||
} catch(ex) {
|
||||
catchInitializationError(builder, ex);
|
||||
setUpPageStatus = '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 dir attribute specifies the base direction of directionally neutral text and the directionality of tables.
|
||||
|
||||
Retrieve the dir attribute of the NOFRAMES element 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-52460740
|
||||
*/
|
||||
function HTMLElement113() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLElement113") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var vdir;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "element");
|
||||
nodeList = doc.getElementsByTagName("noframes");
|
||||
assertSize("Asize",1,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
vdir = testNode.dir;
|
||||
|
||||
assertEquals("dirLink","ltr",vdir);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLElement113();
|
||||
}
|
||||
+113
@@ -0,0 +1,113 @@
|
||||
|
||||
/*
|
||||
Copyright © 2001-2004 World Wide Web Consortium,
|
||||
(Massachusetts Institute of Technology, European Research Consortium
|
||||
for Informatics and Mathematics, Keio University). All
|
||||
Rights Reserved. This work is distributed under the W3C® Software License [1] 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.
|
||||
|
||||
[1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
|
||||
*/
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets URI that identifies the test.
|
||||
* @return uri identifier of test
|
||||
*/
|
||||
function getTargetURI() {
|
||||
return "http://www.w3.org/2001/DOM-Test-Suite/level1/html/HTMLElement114";
|
||||
}
|
||||
|
||||
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", "element");
|
||||
|
||||
if (docsLoaded == 1) {
|
||||
setUpPageStatus = 'complete';
|
||||
}
|
||||
} catch(ex) {
|
||||
catchInitializationError(builder, ex);
|
||||
setUpPageStatus = '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 dir attribute specifies the base direction of directionally neutral text and the directionality of tables.
|
||||
|
||||
Retrieve the dir attribute of the NOSCRIPT element 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-52460740
|
||||
*/
|
||||
function HTMLElement114() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLElement114") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var vdir;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "element");
|
||||
nodeList = doc.getElementsByTagName("noscript");
|
||||
assertSize("Asize",1,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
vdir = testNode.dir;
|
||||
|
||||
assertEquals("dirLink","ltr",vdir);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLElement114();
|
||||
}
|
||||
+113
@@ -0,0 +1,113 @@
|
||||
|
||||
/*
|
||||
Copyright © 2001-2004 World Wide Web Consortium,
|
||||
(Massachusetts Institute of Technology, European Research Consortium
|
||||
for Informatics and Mathematics, Keio University). All
|
||||
Rights Reserved. This work is distributed under the W3C® Software License [1] 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.
|
||||
|
||||
[1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
|
||||
*/
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets URI that identifies the test.
|
||||
* @return uri identifier of test
|
||||
*/
|
||||
function getTargetURI() {
|
||||
return "http://www.w3.org/2001/DOM-Test-Suite/level1/html/HTMLElement115";
|
||||
}
|
||||
|
||||
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", "element");
|
||||
|
||||
if (docsLoaded == 1) {
|
||||
setUpPageStatus = 'complete';
|
||||
}
|
||||
} catch(ex) {
|
||||
catchInitializationError(builder, ex);
|
||||
setUpPageStatus = '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 dir attribute specifies the base direction of directionally neutral text and the directionality of tables.
|
||||
|
||||
Retrieve the dir attribute of the ADDRESS element 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-52460740
|
||||
*/
|
||||
function HTMLElement115() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLElement115") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var vdir;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "element");
|
||||
nodeList = doc.getElementsByTagName("address");
|
||||
assertSize("Asize",1,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
vdir = testNode.dir;
|
||||
|
||||
assertEquals("dirLink","ltr",vdir);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLElement115();
|
||||
}
|
||||
+113
@@ -0,0 +1,113 @@
|
||||
|
||||
/*
|
||||
Copyright © 2001-2004 World Wide Web Consortium,
|
||||
(Massachusetts Institute of Technology, European Research Consortium
|
||||
for Informatics and Mathematics, Keio University). All
|
||||
Rights Reserved. This work is distributed under the W3C® Software License [1] 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.
|
||||
|
||||
[1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
|
||||
*/
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets URI that identifies the test.
|
||||
* @return uri identifier of test
|
||||
*/
|
||||
function getTargetURI() {
|
||||
return "http://www.w3.org/2001/DOM-Test-Suite/level1/html/HTMLElement116";
|
||||
}
|
||||
|
||||
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", "element");
|
||||
|
||||
if (docsLoaded == 1) {
|
||||
setUpPageStatus = 'complete';
|
||||
}
|
||||
} catch(ex) {
|
||||
catchInitializationError(builder, ex);
|
||||
setUpPageStatus = '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 dir attribute specifies the base direction of directionally neutral text and the directionality of tables.
|
||||
|
||||
Retrieve the dir attribute of the CENTER element 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-52460740
|
||||
*/
|
||||
function HTMLElement116() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLElement116") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var vdir;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "element");
|
||||
nodeList = doc.getElementsByTagName("center");
|
||||
assertSize("Asize",2,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
vdir = testNode.dir;
|
||||
|
||||
assertEquals("dirLink","ltr",vdir);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLElement116();
|
||||
}
|
||||
+113
@@ -0,0 +1,113 @@
|
||||
|
||||
/*
|
||||
Copyright © 2001-2004 World Wide Web Consortium,
|
||||
(Massachusetts Institute of Technology, European Research Consortium
|
||||
for Informatics and Mathematics, Keio University). All
|
||||
Rights Reserved. This work is distributed under the W3C® Software License [1] 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.
|
||||
|
||||
[1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
|
||||
*/
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets URI that identifies the test.
|
||||
* @return uri identifier of test
|
||||
*/
|
||||
function getTargetURI() {
|
||||
return "http://www.w3.org/2001/DOM-Test-Suite/level1/html/HTMLElement117";
|
||||
}
|
||||
|
||||
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", "element");
|
||||
|
||||
if (docsLoaded == 1) {
|
||||
setUpPageStatus = 'complete';
|
||||
}
|
||||
} catch(ex) {
|
||||
catchInitializationError(builder, ex);
|
||||
setUpPageStatus = '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 className attribute specifies the class attribute of the element.
|
||||
|
||||
Retrieve the class attribute of the HEAD element 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-95362176
|
||||
*/
|
||||
function HTMLElement117() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLElement117") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var vclassname;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "element");
|
||||
nodeList = doc.getElementsByTagName("head");
|
||||
assertSize("Asize",1,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
vclassname = testNode.className;
|
||||
|
||||
assertEquals("classNameLink","HEAD-class",vclassname);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLElement117();
|
||||
}
|
||||
+113
@@ -0,0 +1,113 @@
|
||||
|
||||
/*
|
||||
Copyright © 2001-2004 World Wide Web Consortium,
|
||||
(Massachusetts Institute of Technology, European Research Consortium
|
||||
for Informatics and Mathematics, Keio University). All
|
||||
Rights Reserved. This work is distributed under the W3C® Software License [1] 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.
|
||||
|
||||
[1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
|
||||
*/
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets URI that identifies the test.
|
||||
* @return uri identifier of test
|
||||
*/
|
||||
function getTargetURI() {
|
||||
return "http://www.w3.org/2001/DOM-Test-Suite/level1/html/HTMLElement118";
|
||||
}
|
||||
|
||||
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", "element");
|
||||
|
||||
if (docsLoaded == 1) {
|
||||
setUpPageStatus = 'complete';
|
||||
}
|
||||
} catch(ex) {
|
||||
catchInitializationError(builder, ex);
|
||||
setUpPageStatus = '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 className attribute specifies the class attribute of the element.
|
||||
|
||||
Retrieve the class attribute of the SUB element 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-95362176
|
||||
*/
|
||||
function HTMLElement118() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLElement118") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var vclassname;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "element");
|
||||
nodeList = doc.getElementsByTagName("sub");
|
||||
assertSize("Asize",1,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
vclassname = testNode.className;
|
||||
|
||||
assertEquals("classNameLink","SUB-class",vclassname);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLElement118();
|
||||
}
|
||||
+113
@@ -0,0 +1,113 @@
|
||||
|
||||
/*
|
||||
Copyright © 2001-2004 World Wide Web Consortium,
|
||||
(Massachusetts Institute of Technology, European Research Consortium
|
||||
for Informatics and Mathematics, Keio University). All
|
||||
Rights Reserved. This work is distributed under the W3C® Software License [1] 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.
|
||||
|
||||
[1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
|
||||
*/
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets URI that identifies the test.
|
||||
* @return uri identifier of test
|
||||
*/
|
||||
function getTargetURI() {
|
||||
return "http://www.w3.org/2001/DOM-Test-Suite/level1/html/HTMLElement119";
|
||||
}
|
||||
|
||||
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", "element");
|
||||
|
||||
if (docsLoaded == 1) {
|
||||
setUpPageStatus = 'complete';
|
||||
}
|
||||
} catch(ex) {
|
||||
catchInitializationError(builder, ex);
|
||||
setUpPageStatus = '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 className attribute specifies the class attribute of the element.
|
||||
|
||||
Retrieve the class attribute of the SUP element 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-95362176
|
||||
*/
|
||||
function HTMLElement119() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLElement119") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var vclassname;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "element");
|
||||
nodeList = doc.getElementsByTagName("sup");
|
||||
assertSize("Asize",1,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
vclassname = testNode.className;
|
||||
|
||||
assertEquals("classNameLink","SUP-class",vclassname);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLElement119();
|
||||
}
|
||||
+113
@@ -0,0 +1,113 @@
|
||||
|
||||
/*
|
||||
Copyright © 2001-2004 World Wide Web Consortium,
|
||||
(Massachusetts Institute of Technology, European Research Consortium
|
||||
for Informatics and Mathematics, Keio University). All
|
||||
Rights Reserved. This work is distributed under the W3C® Software License [1] 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.
|
||||
|
||||
[1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
|
||||
*/
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets URI that identifies the test.
|
||||
* @return uri identifier of test
|
||||
*/
|
||||
function getTargetURI() {
|
||||
return "http://www.w3.org/2001/DOM-Test-Suite/level1/html/HTMLElement12";
|
||||
}
|
||||
|
||||
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", "element");
|
||||
|
||||
if (docsLoaded == 1) {
|
||||
setUpPageStatus = 'complete';
|
||||
}
|
||||
} catch(ex) {
|
||||
catchInitializationError(builder, ex);
|
||||
setUpPageStatus = '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 id specifies the elements identifier.
|
||||
|
||||
Retrieve the id attribute of the BIG element 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-63534901
|
||||
*/
|
||||
function HTMLElement12() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLElement12") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var vid;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "element");
|
||||
nodeList = doc.getElementsByTagName("big");
|
||||
assertSize("Asize",1,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
vid = testNode.id;
|
||||
|
||||
assertEquals("idLink","Test-BIG",vid);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLElement12();
|
||||
}
|
||||
+113
@@ -0,0 +1,113 @@
|
||||
|
||||
/*
|
||||
Copyright © 2001-2004 World Wide Web Consortium,
|
||||
(Massachusetts Institute of Technology, European Research Consortium
|
||||
for Informatics and Mathematics, Keio University). All
|
||||
Rights Reserved. This work is distributed under the W3C® Software License [1] 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.
|
||||
|
||||
[1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
|
||||
*/
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets URI that identifies the test.
|
||||
* @return uri identifier of test
|
||||
*/
|
||||
function getTargetURI() {
|
||||
return "http://www.w3.org/2001/DOM-Test-Suite/level1/html/HTMLElement120";
|
||||
}
|
||||
|
||||
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", "element");
|
||||
|
||||
if (docsLoaded == 1) {
|
||||
setUpPageStatus = 'complete';
|
||||
}
|
||||
} catch(ex) {
|
||||
catchInitializationError(builder, ex);
|
||||
setUpPageStatus = '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 className attribute specifies the class attribute of the element.
|
||||
|
||||
Retrieve the class attribute of the SPAN element 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-95362176
|
||||
*/
|
||||
function HTMLElement120() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLElement120") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var vclassname;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "element");
|
||||
nodeList = doc.getElementsByTagName("span");
|
||||
assertSize("Asize",1,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
vclassname = testNode.className;
|
||||
|
||||
assertEquals("classNameLink","SPAN-class",vclassname);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLElement120();
|
||||
}
|
||||
+113
@@ -0,0 +1,113 @@
|
||||
|
||||
/*
|
||||
Copyright © 2001-2004 World Wide Web Consortium,
|
||||
(Massachusetts Institute of Technology, European Research Consortium
|
||||
for Informatics and Mathematics, Keio University). All
|
||||
Rights Reserved. This work is distributed under the W3C® Software License [1] 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.
|
||||
|
||||
[1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
|
||||
*/
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets URI that identifies the test.
|
||||
* @return uri identifier of test
|
||||
*/
|
||||
function getTargetURI() {
|
||||
return "http://www.w3.org/2001/DOM-Test-Suite/level1/html/HTMLElement121";
|
||||
}
|
||||
|
||||
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", "element");
|
||||
|
||||
if (docsLoaded == 1) {
|
||||
setUpPageStatus = 'complete';
|
||||
}
|
||||
} catch(ex) {
|
||||
catchInitializationError(builder, ex);
|
||||
setUpPageStatus = '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 className attribute specifies the class attribute of the element.
|
||||
|
||||
Retrieve the class attribute of the BDO element 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-95362176
|
||||
*/
|
||||
function HTMLElement121() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLElement121") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var vclassname;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "element");
|
||||
nodeList = doc.getElementsByTagName("bdo");
|
||||
assertSize("Asize",1,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
vclassname = testNode.className;
|
||||
|
||||
assertEquals("classNameLink","BDO-class",vclassname);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLElement121();
|
||||
}
|
||||
+113
@@ -0,0 +1,113 @@
|
||||
|
||||
/*
|
||||
Copyright © 2001-2004 World Wide Web Consortium,
|
||||
(Massachusetts Institute of Technology, European Research Consortium
|
||||
for Informatics and Mathematics, Keio University). All
|
||||
Rights Reserved. This work is distributed under the W3C® Software License [1] 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.
|
||||
|
||||
[1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
|
||||
*/
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets URI that identifies the test.
|
||||
* @return uri identifier of test
|
||||
*/
|
||||
function getTargetURI() {
|
||||
return "http://www.w3.org/2001/DOM-Test-Suite/level1/html/HTMLElement122";
|
||||
}
|
||||
|
||||
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", "element");
|
||||
|
||||
if (docsLoaded == 1) {
|
||||
setUpPageStatus = 'complete';
|
||||
}
|
||||
} catch(ex) {
|
||||
catchInitializationError(builder, ex);
|
||||
setUpPageStatus = '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 className attribute specifies the class attribute of the element.
|
||||
|
||||
Retrieve the class attribute of the TT element 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-95362176
|
||||
*/
|
||||
function HTMLElement122() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLElement122") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var vclassname;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "element");
|
||||
nodeList = doc.getElementsByTagName("tt");
|
||||
assertSize("Asize",1,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
vclassname = testNode.className;
|
||||
|
||||
assertEquals("classNameLink","TT-class",vclassname);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLElement122();
|
||||
}
|
||||
+113
@@ -0,0 +1,113 @@
|
||||
|
||||
/*
|
||||
Copyright © 2001-2004 World Wide Web Consortium,
|
||||
(Massachusetts Institute of Technology, European Research Consortium
|
||||
for Informatics and Mathematics, Keio University). All
|
||||
Rights Reserved. This work is distributed under the W3C® Software License [1] 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.
|
||||
|
||||
[1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
|
||||
*/
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets URI that identifies the test.
|
||||
* @return uri identifier of test
|
||||
*/
|
||||
function getTargetURI() {
|
||||
return "http://www.w3.org/2001/DOM-Test-Suite/level1/html/HTMLElement123";
|
||||
}
|
||||
|
||||
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", "element");
|
||||
|
||||
if (docsLoaded == 1) {
|
||||
setUpPageStatus = 'complete';
|
||||
}
|
||||
} catch(ex) {
|
||||
catchInitializationError(builder, ex);
|
||||
setUpPageStatus = '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 className attribute specifies the class attribute of the element.
|
||||
|
||||
Retrieve the class attribute of the I element 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-95362176
|
||||
*/
|
||||
function HTMLElement123() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLElement123") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var vclassname;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "element");
|
||||
nodeList = doc.getElementsByTagName("i");
|
||||
assertSize("Asize",1,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
vclassname = testNode.className;
|
||||
|
||||
assertEquals("classNameLink","I-class",vclassname);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLElement123();
|
||||
}
|
||||
+113
@@ -0,0 +1,113 @@
|
||||
|
||||
/*
|
||||
Copyright © 2001-2004 World Wide Web Consortium,
|
||||
(Massachusetts Institute of Technology, European Research Consortium
|
||||
for Informatics and Mathematics, Keio University). All
|
||||
Rights Reserved. This work is distributed under the W3C® Software License [1] 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.
|
||||
|
||||
[1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
|
||||
*/
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets URI that identifies the test.
|
||||
* @return uri identifier of test
|
||||
*/
|
||||
function getTargetURI() {
|
||||
return "http://www.w3.org/2001/DOM-Test-Suite/level1/html/HTMLElement124";
|
||||
}
|
||||
|
||||
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", "element");
|
||||
|
||||
if (docsLoaded == 1) {
|
||||
setUpPageStatus = 'complete';
|
||||
}
|
||||
} catch(ex) {
|
||||
catchInitializationError(builder, ex);
|
||||
setUpPageStatus = '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 className attribute specifies the class attribute of the element.
|
||||
|
||||
Retrieve the class attribute of the B element 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-95362176
|
||||
*/
|
||||
function HTMLElement124() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLElement124") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var vclassname;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "element");
|
||||
nodeList = doc.getElementsByTagName("b");
|
||||
assertSize("Asize",1,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
vclassname = testNode.className;
|
||||
|
||||
assertEquals("classNameLink","B-class",vclassname);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLElement124();
|
||||
}
|
||||
+113
@@ -0,0 +1,113 @@
|
||||
|
||||
/*
|
||||
Copyright © 2001-2004 World Wide Web Consortium,
|
||||
(Massachusetts Institute of Technology, European Research Consortium
|
||||
for Informatics and Mathematics, Keio University). All
|
||||
Rights Reserved. This work is distributed under the W3C® Software License [1] 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.
|
||||
|
||||
[1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
|
||||
*/
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets URI that identifies the test.
|
||||
* @return uri identifier of test
|
||||
*/
|
||||
function getTargetURI() {
|
||||
return "http://www.w3.org/2001/DOM-Test-Suite/level1/html/HTMLElement125";
|
||||
}
|
||||
|
||||
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", "element");
|
||||
|
||||
if (docsLoaded == 1) {
|
||||
setUpPageStatus = 'complete';
|
||||
}
|
||||
} catch(ex) {
|
||||
catchInitializationError(builder, ex);
|
||||
setUpPageStatus = '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 className attribute specifies the class attribute of the element.
|
||||
|
||||
Retrieve the class attribute of the U element 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-95362176
|
||||
*/
|
||||
function HTMLElement125() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLElement125") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var vclassname;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "element");
|
||||
nodeList = doc.getElementsByTagName("u");
|
||||
assertSize("Asize",1,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
vclassname = testNode.className;
|
||||
|
||||
assertEquals("classNameLink","U-class",vclassname);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLElement125();
|
||||
}
|
||||
+113
@@ -0,0 +1,113 @@
|
||||
|
||||
/*
|
||||
Copyright © 2001-2004 World Wide Web Consortium,
|
||||
(Massachusetts Institute of Technology, European Research Consortium
|
||||
for Informatics and Mathematics, Keio University). All
|
||||
Rights Reserved. This work is distributed under the W3C® Software License [1] 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.
|
||||
|
||||
[1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
|
||||
*/
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets URI that identifies the test.
|
||||
* @return uri identifier of test
|
||||
*/
|
||||
function getTargetURI() {
|
||||
return "http://www.w3.org/2001/DOM-Test-Suite/level1/html/HTMLElement126";
|
||||
}
|
||||
|
||||
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", "element");
|
||||
|
||||
if (docsLoaded == 1) {
|
||||
setUpPageStatus = 'complete';
|
||||
}
|
||||
} catch(ex) {
|
||||
catchInitializationError(builder, ex);
|
||||
setUpPageStatus = '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 className attribute specifies the class attribute of the element.
|
||||
|
||||
Retrieve the class attribute of the S element 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-95362176
|
||||
*/
|
||||
function HTMLElement126() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLElement126") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var vclassname;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "element");
|
||||
nodeList = doc.getElementsByTagName("s");
|
||||
assertSize("Asize",1,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
vclassname = testNode.className;
|
||||
|
||||
assertEquals("classNameLink","S-class",vclassname);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLElement126();
|
||||
}
|
||||
+113
@@ -0,0 +1,113 @@
|
||||
|
||||
/*
|
||||
Copyright © 2001-2004 World Wide Web Consortium,
|
||||
(Massachusetts Institute of Technology, European Research Consortium
|
||||
for Informatics and Mathematics, Keio University). All
|
||||
Rights Reserved. This work is distributed under the W3C® Software License [1] 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.
|
||||
|
||||
[1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
|
||||
*/
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets URI that identifies the test.
|
||||
* @return uri identifier of test
|
||||
*/
|
||||
function getTargetURI() {
|
||||
return "http://www.w3.org/2001/DOM-Test-Suite/level1/html/HTMLElement127";
|
||||
}
|
||||
|
||||
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", "element");
|
||||
|
||||
if (docsLoaded == 1) {
|
||||
setUpPageStatus = 'complete';
|
||||
}
|
||||
} catch(ex) {
|
||||
catchInitializationError(builder, ex);
|
||||
setUpPageStatus = '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 className attribute specifies the class attribute of the element.
|
||||
|
||||
Retrieve the class attribute of the STRIKE element 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-95362176
|
||||
*/
|
||||
function HTMLElement127() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLElement127") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var vclassname;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "element");
|
||||
nodeList = doc.getElementsByTagName("strike");
|
||||
assertSize("Asize",1,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
vclassname = testNode.className;
|
||||
|
||||
assertEquals("classNameLink","STRIKE-class",vclassname);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLElement127();
|
||||
}
|
||||
+113
@@ -0,0 +1,113 @@
|
||||
|
||||
/*
|
||||
Copyright © 2001-2004 World Wide Web Consortium,
|
||||
(Massachusetts Institute of Technology, European Research Consortium
|
||||
for Informatics and Mathematics, Keio University). All
|
||||
Rights Reserved. This work is distributed under the W3C® Software License [1] 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.
|
||||
|
||||
[1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
|
||||
*/
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets URI that identifies the test.
|
||||
* @return uri identifier of test
|
||||
*/
|
||||
function getTargetURI() {
|
||||
return "http://www.w3.org/2001/DOM-Test-Suite/level1/html/HTMLElement128";
|
||||
}
|
||||
|
||||
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", "element");
|
||||
|
||||
if (docsLoaded == 1) {
|
||||
setUpPageStatus = 'complete';
|
||||
}
|
||||
} catch(ex) {
|
||||
catchInitializationError(builder, ex);
|
||||
setUpPageStatus = '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 className attribute specifies the class attribute of the element.
|
||||
|
||||
Retrieve the class attribute of the BIG element 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-95362176
|
||||
*/
|
||||
function HTMLElement128() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLElement128") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var vclassname;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "element");
|
||||
nodeList = doc.getElementsByTagName("big");
|
||||
assertSize("Asize",1,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
vclassname = testNode.className;
|
||||
|
||||
assertEquals("classNameLink","BIG-class",vclassname);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLElement128();
|
||||
}
|
||||
+113
@@ -0,0 +1,113 @@
|
||||
|
||||
/*
|
||||
Copyright © 2001-2004 World Wide Web Consortium,
|
||||
(Massachusetts Institute of Technology, European Research Consortium
|
||||
for Informatics and Mathematics, Keio University). All
|
||||
Rights Reserved. This work is distributed under the W3C® Software License [1] 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.
|
||||
|
||||
[1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
|
||||
*/
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets URI that identifies the test.
|
||||
* @return uri identifier of test
|
||||
*/
|
||||
function getTargetURI() {
|
||||
return "http://www.w3.org/2001/DOM-Test-Suite/level1/html/HTMLElement129";
|
||||
}
|
||||
|
||||
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", "element");
|
||||
|
||||
if (docsLoaded == 1) {
|
||||
setUpPageStatus = 'complete';
|
||||
}
|
||||
} catch(ex) {
|
||||
catchInitializationError(builder, ex);
|
||||
setUpPageStatus = '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 className attribute specifies the class attribute of the element.
|
||||
|
||||
Retrieve the class attribute of the SMALL element 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-95362176
|
||||
*/
|
||||
function HTMLElement129() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLElement129") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var vclassname;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "element");
|
||||
nodeList = doc.getElementsByTagName("small");
|
||||
assertSize("Asize",1,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
vclassname = testNode.className;
|
||||
|
||||
assertEquals("classNameLink","SMALL-class",vclassname);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLElement129();
|
||||
}
|
||||
+113
@@ -0,0 +1,113 @@
|
||||
|
||||
/*
|
||||
Copyright © 2001-2004 World Wide Web Consortium,
|
||||
(Massachusetts Institute of Technology, European Research Consortium
|
||||
for Informatics and Mathematics, Keio University). All
|
||||
Rights Reserved. This work is distributed under the W3C® Software License [1] 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.
|
||||
|
||||
[1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
|
||||
*/
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets URI that identifies the test.
|
||||
* @return uri identifier of test
|
||||
*/
|
||||
function getTargetURI() {
|
||||
return "http://www.w3.org/2001/DOM-Test-Suite/level1/html/HTMLElement13";
|
||||
}
|
||||
|
||||
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", "element");
|
||||
|
||||
if (docsLoaded == 1) {
|
||||
setUpPageStatus = 'complete';
|
||||
}
|
||||
} catch(ex) {
|
||||
catchInitializationError(builder, ex);
|
||||
setUpPageStatus = '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 id specifies the elements identifier.
|
||||
|
||||
Retrieve the id attribute of the SMALL element 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-63534901
|
||||
*/
|
||||
function HTMLElement13() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLElement13") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var vid;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "element");
|
||||
nodeList = doc.getElementsByTagName("small");
|
||||
assertSize("Asize",1,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
vid = testNode.id;
|
||||
|
||||
assertEquals("idLink","Test-SMALL",vid);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLElement13();
|
||||
}
|
||||
+113
@@ -0,0 +1,113 @@
|
||||
|
||||
/*
|
||||
Copyright © 2001-2004 World Wide Web Consortium,
|
||||
(Massachusetts Institute of Technology, European Research Consortium
|
||||
for Informatics and Mathematics, Keio University). All
|
||||
Rights Reserved. This work is distributed under the W3C® Software License [1] 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.
|
||||
|
||||
[1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
|
||||
*/
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets URI that identifies the test.
|
||||
* @return uri identifier of test
|
||||
*/
|
||||
function getTargetURI() {
|
||||
return "http://www.w3.org/2001/DOM-Test-Suite/level1/html/HTMLElement130";
|
||||
}
|
||||
|
||||
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", "element");
|
||||
|
||||
if (docsLoaded == 1) {
|
||||
setUpPageStatus = 'complete';
|
||||
}
|
||||
} catch(ex) {
|
||||
catchInitializationError(builder, ex);
|
||||
setUpPageStatus = '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 className attribute specifies the class attribute of the element.
|
||||
|
||||
Retrieve the class attribute of the EM element 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-95362176
|
||||
*/
|
||||
function HTMLElement130() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLElement130") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var vclassname;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "element");
|
||||
nodeList = doc.getElementsByTagName("em");
|
||||
assertSize("Asize",1,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
vclassname = testNode.className;
|
||||
|
||||
assertEquals("classNameLink","EM-class",vclassname);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLElement130();
|
||||
}
|
||||
+113
@@ -0,0 +1,113 @@
|
||||
|
||||
/*
|
||||
Copyright © 2001-2004 World Wide Web Consortium,
|
||||
(Massachusetts Institute of Technology, European Research Consortium
|
||||
for Informatics and Mathematics, Keio University). All
|
||||
Rights Reserved. This work is distributed under the W3C® Software License [1] 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.
|
||||
|
||||
[1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
|
||||
*/
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets URI that identifies the test.
|
||||
* @return uri identifier of test
|
||||
*/
|
||||
function getTargetURI() {
|
||||
return "http://www.w3.org/2001/DOM-Test-Suite/level1/html/HTMLElement131";
|
||||
}
|
||||
|
||||
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", "element");
|
||||
|
||||
if (docsLoaded == 1) {
|
||||
setUpPageStatus = 'complete';
|
||||
}
|
||||
} catch(ex) {
|
||||
catchInitializationError(builder, ex);
|
||||
setUpPageStatus = '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 className attribute specifies the class attribute of the element.
|
||||
|
||||
Retrieve the class attribute of the STRONG element 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-95362176
|
||||
*/
|
||||
function HTMLElement131() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLElement131") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var vclassname;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "element");
|
||||
nodeList = doc.getElementsByTagName("strong");
|
||||
assertSize("Asize",1,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
vclassname = testNode.className;
|
||||
|
||||
assertEquals("classNameLink","STRONG-class",vclassname);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLElement131();
|
||||
}
|
||||
+113
@@ -0,0 +1,113 @@
|
||||
|
||||
/*
|
||||
Copyright © 2001-2004 World Wide Web Consortium,
|
||||
(Massachusetts Institute of Technology, European Research Consortium
|
||||
for Informatics and Mathematics, Keio University). All
|
||||
Rights Reserved. This work is distributed under the W3C® Software License [1] 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.
|
||||
|
||||
[1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
|
||||
*/
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets URI that identifies the test.
|
||||
* @return uri identifier of test
|
||||
*/
|
||||
function getTargetURI() {
|
||||
return "http://www.w3.org/2001/DOM-Test-Suite/level1/html/HTMLElement132";
|
||||
}
|
||||
|
||||
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", "element");
|
||||
|
||||
if (docsLoaded == 1) {
|
||||
setUpPageStatus = 'complete';
|
||||
}
|
||||
} catch(ex) {
|
||||
catchInitializationError(builder, ex);
|
||||
setUpPageStatus = '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 className attribute specifies the class attribute of the element.
|
||||
|
||||
Retrieve the class attribute of the DFN element 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-95362176
|
||||
*/
|
||||
function HTMLElement132() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLElement132") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var vclassname;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "element");
|
||||
nodeList = doc.getElementsByTagName("dfn");
|
||||
assertSize("Asize",1,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
vclassname = testNode.className;
|
||||
|
||||
assertEquals("classNameLink","DFN-class",vclassname);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLElement132();
|
||||
}
|
||||
+113
@@ -0,0 +1,113 @@
|
||||
|
||||
/*
|
||||
Copyright © 2001-2004 World Wide Web Consortium,
|
||||
(Massachusetts Institute of Technology, European Research Consortium
|
||||
for Informatics and Mathematics, Keio University). All
|
||||
Rights Reserved. This work is distributed under the W3C® Software License [1] 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.
|
||||
|
||||
[1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
|
||||
*/
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets URI that identifies the test.
|
||||
* @return uri identifier of test
|
||||
*/
|
||||
function getTargetURI() {
|
||||
return "http://www.w3.org/2001/DOM-Test-Suite/level1/html/HTMLElement133";
|
||||
}
|
||||
|
||||
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", "element");
|
||||
|
||||
if (docsLoaded == 1) {
|
||||
setUpPageStatus = 'complete';
|
||||
}
|
||||
} catch(ex) {
|
||||
catchInitializationError(builder, ex);
|
||||
setUpPageStatus = '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 className attribute specifies the class attribute of the element.
|
||||
|
||||
Retrieve the class attribute of the CODE element 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-95362176
|
||||
*/
|
||||
function HTMLElement133() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLElement133") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var vclassname;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "element");
|
||||
nodeList = doc.getElementsByTagName("code");
|
||||
assertSize("Asize",1,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
vclassname = testNode.className;
|
||||
|
||||
assertEquals("classNameLink","CODE-class",vclassname);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLElement133();
|
||||
}
|
||||
+113
@@ -0,0 +1,113 @@
|
||||
|
||||
/*
|
||||
Copyright © 2001-2004 World Wide Web Consortium,
|
||||
(Massachusetts Institute of Technology, European Research Consortium
|
||||
for Informatics and Mathematics, Keio University). All
|
||||
Rights Reserved. This work is distributed under the W3C® Software License [1] 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.
|
||||
|
||||
[1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
|
||||
*/
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets URI that identifies the test.
|
||||
* @return uri identifier of test
|
||||
*/
|
||||
function getTargetURI() {
|
||||
return "http://www.w3.org/2001/DOM-Test-Suite/level1/html/HTMLElement134";
|
||||
}
|
||||
|
||||
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", "element");
|
||||
|
||||
if (docsLoaded == 1) {
|
||||
setUpPageStatus = 'complete';
|
||||
}
|
||||
} catch(ex) {
|
||||
catchInitializationError(builder, ex);
|
||||
setUpPageStatus = '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 className attribute specifies the class attribute of the element.
|
||||
|
||||
Retrieve the class attribute of the SAMP element 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-95362176
|
||||
*/
|
||||
function HTMLElement134() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLElement134") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var vclassname;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "element");
|
||||
nodeList = doc.getElementsByTagName("samp");
|
||||
assertSize("Asize",1,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
vclassname = testNode.className;
|
||||
|
||||
assertEquals("classNameLink","SAMP-class",vclassname);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLElement134();
|
||||
}
|
||||
+113
@@ -0,0 +1,113 @@
|
||||
|
||||
/*
|
||||
Copyright © 2001-2004 World Wide Web Consortium,
|
||||
(Massachusetts Institute of Technology, European Research Consortium
|
||||
for Informatics and Mathematics, Keio University). All
|
||||
Rights Reserved. This work is distributed under the W3C® Software License [1] 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.
|
||||
|
||||
[1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
|
||||
*/
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets URI that identifies the test.
|
||||
* @return uri identifier of test
|
||||
*/
|
||||
function getTargetURI() {
|
||||
return "http://www.w3.org/2001/DOM-Test-Suite/level1/html/HTMLElement135";
|
||||
}
|
||||
|
||||
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", "element");
|
||||
|
||||
if (docsLoaded == 1) {
|
||||
setUpPageStatus = 'complete';
|
||||
}
|
||||
} catch(ex) {
|
||||
catchInitializationError(builder, ex);
|
||||
setUpPageStatus = '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 className attribute specifies the class attribute of the element.
|
||||
|
||||
Retrieve the class attribute of the KBD element 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-95362176
|
||||
*/
|
||||
function HTMLElement135() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLElement135") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var vclassname;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "element");
|
||||
nodeList = doc.getElementsByTagName("kbd");
|
||||
assertSize("Asize",1,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
vclassname = testNode.className;
|
||||
|
||||
assertEquals("classNameLink","KBD-class",vclassname);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLElement135();
|
||||
}
|
||||
+113
@@ -0,0 +1,113 @@
|
||||
|
||||
/*
|
||||
Copyright © 2001-2004 World Wide Web Consortium,
|
||||
(Massachusetts Institute of Technology, European Research Consortium
|
||||
for Informatics and Mathematics, Keio University). All
|
||||
Rights Reserved. This work is distributed under the W3C® Software License [1] 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.
|
||||
|
||||
[1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
|
||||
*/
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets URI that identifies the test.
|
||||
* @return uri identifier of test
|
||||
*/
|
||||
function getTargetURI() {
|
||||
return "http://www.w3.org/2001/DOM-Test-Suite/level1/html/HTMLElement136";
|
||||
}
|
||||
|
||||
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", "element");
|
||||
|
||||
if (docsLoaded == 1) {
|
||||
setUpPageStatus = 'complete';
|
||||
}
|
||||
} catch(ex) {
|
||||
catchInitializationError(builder, ex);
|
||||
setUpPageStatus = '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 className attribute specifies the class attribute of the element.
|
||||
|
||||
Retrieve the class attribute of the VAR element 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-95362176
|
||||
*/
|
||||
function HTMLElement136() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLElement136") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var vclassname;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "element");
|
||||
nodeList = doc.getElementsByTagName("var");
|
||||
assertSize("Asize",1,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
vclassname = testNode.className;
|
||||
|
||||
assertEquals("classNameLink","VAR-class",vclassname);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLElement136();
|
||||
}
|
||||
+113
@@ -0,0 +1,113 @@
|
||||
|
||||
/*
|
||||
Copyright © 2001-2004 World Wide Web Consortium,
|
||||
(Massachusetts Institute of Technology, European Research Consortium
|
||||
for Informatics and Mathematics, Keio University). All
|
||||
Rights Reserved. This work is distributed under the W3C® Software License [1] 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.
|
||||
|
||||
[1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
|
||||
*/
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets URI that identifies the test.
|
||||
* @return uri identifier of test
|
||||
*/
|
||||
function getTargetURI() {
|
||||
return "http://www.w3.org/2001/DOM-Test-Suite/level1/html/HTMLElement137";
|
||||
}
|
||||
|
||||
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", "element");
|
||||
|
||||
if (docsLoaded == 1) {
|
||||
setUpPageStatus = 'complete';
|
||||
}
|
||||
} catch(ex) {
|
||||
catchInitializationError(builder, ex);
|
||||
setUpPageStatus = '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 className attribute specifies the class attribute of the element.
|
||||
|
||||
Retrieve the class attribute of the CITE element 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-95362176
|
||||
*/
|
||||
function HTMLElement137() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLElement137") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var vclassname;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "element");
|
||||
nodeList = doc.getElementsByTagName("cite");
|
||||
assertSize("Asize",1,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
vclassname = testNode.className;
|
||||
|
||||
assertEquals("classNameLink","CITE-class",vclassname);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLElement137();
|
||||
}
|
||||
+113
@@ -0,0 +1,113 @@
|
||||
|
||||
/*
|
||||
Copyright © 2001-2004 World Wide Web Consortium,
|
||||
(Massachusetts Institute of Technology, European Research Consortium
|
||||
for Informatics and Mathematics, Keio University). All
|
||||
Rights Reserved. This work is distributed under the W3C® Software License [1] 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.
|
||||
|
||||
[1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
|
||||
*/
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets URI that identifies the test.
|
||||
* @return uri identifier of test
|
||||
*/
|
||||
function getTargetURI() {
|
||||
return "http://www.w3.org/2001/DOM-Test-Suite/level1/html/HTMLElement138";
|
||||
}
|
||||
|
||||
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", "element");
|
||||
|
||||
if (docsLoaded == 1) {
|
||||
setUpPageStatus = 'complete';
|
||||
}
|
||||
} catch(ex) {
|
||||
catchInitializationError(builder, ex);
|
||||
setUpPageStatus = '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 className attribute specifies the class attribute of the element.
|
||||
|
||||
Retrieve the class attribute of the ACRONYM element 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-95362176
|
||||
*/
|
||||
function HTMLElement138() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLElement138") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var vclassname;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "element");
|
||||
nodeList = doc.getElementsByTagName("acronym");
|
||||
assertSize("Asize",1,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
vclassname = testNode.className;
|
||||
|
||||
assertEquals("classNameLink","ACRONYM-class",vclassname);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLElement138();
|
||||
}
|
||||
+113
@@ -0,0 +1,113 @@
|
||||
|
||||
/*
|
||||
Copyright © 2001-2004 World Wide Web Consortium,
|
||||
(Massachusetts Institute of Technology, European Research Consortium
|
||||
for Informatics and Mathematics, Keio University). All
|
||||
Rights Reserved. This work is distributed under the W3C® Software License [1] 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.
|
||||
|
||||
[1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
|
||||
*/
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets URI that identifies the test.
|
||||
* @return uri identifier of test
|
||||
*/
|
||||
function getTargetURI() {
|
||||
return "http://www.w3.org/2001/DOM-Test-Suite/level1/html/HTMLElement139";
|
||||
}
|
||||
|
||||
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", "element");
|
||||
|
||||
if (docsLoaded == 1) {
|
||||
setUpPageStatus = 'complete';
|
||||
}
|
||||
} catch(ex) {
|
||||
catchInitializationError(builder, ex);
|
||||
setUpPageStatus = '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 className attribute specifies the class attribute of the element.
|
||||
|
||||
Retrieve the class attribute of the ABBR element 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-95362176
|
||||
*/
|
||||
function HTMLElement139() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLElement139") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var vclassname;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "element");
|
||||
nodeList = doc.getElementsByTagName("abbr");
|
||||
assertSize("Asize",1,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
vclassname = testNode.className;
|
||||
|
||||
assertEquals("classNameLink","ABBR-class",vclassname);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLElement139();
|
||||
}
|
||||
+113
@@ -0,0 +1,113 @@
|
||||
|
||||
/*
|
||||
Copyright © 2001-2004 World Wide Web Consortium,
|
||||
(Massachusetts Institute of Technology, European Research Consortium
|
||||
for Informatics and Mathematics, Keio University). All
|
||||
Rights Reserved. This work is distributed under the W3C® Software License [1] 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.
|
||||
|
||||
[1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
|
||||
*/
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets URI that identifies the test.
|
||||
* @return uri identifier of test
|
||||
*/
|
||||
function getTargetURI() {
|
||||
return "http://www.w3.org/2001/DOM-Test-Suite/level1/html/HTMLElement14";
|
||||
}
|
||||
|
||||
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", "element");
|
||||
|
||||
if (docsLoaded == 1) {
|
||||
setUpPageStatus = 'complete';
|
||||
}
|
||||
} catch(ex) {
|
||||
catchInitializationError(builder, ex);
|
||||
setUpPageStatus = '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 id specifies the elements identifier.
|
||||
|
||||
Retrieve the id attribute of the EM element 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-63534901
|
||||
*/
|
||||
function HTMLElement14() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLElement14") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var vid;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "element");
|
||||
nodeList = doc.getElementsByTagName("em");
|
||||
assertSize("Asize",1,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
vid = testNode.id;
|
||||
|
||||
assertEquals("idLink","Test-EM",vid);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLElement14();
|
||||
}
|
||||
+113
@@ -0,0 +1,113 @@
|
||||
|
||||
/*
|
||||
Copyright © 2001-2004 World Wide Web Consortium,
|
||||
(Massachusetts Institute of Technology, European Research Consortium
|
||||
for Informatics and Mathematics, Keio University). All
|
||||
Rights Reserved. This work is distributed under the W3C® Software License [1] 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.
|
||||
|
||||
[1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
|
||||
*/
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets URI that identifies the test.
|
||||
* @return uri identifier of test
|
||||
*/
|
||||
function getTargetURI() {
|
||||
return "http://www.w3.org/2001/DOM-Test-Suite/level1/html/HTMLElement140";
|
||||
}
|
||||
|
||||
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", "element");
|
||||
|
||||
if (docsLoaded == 1) {
|
||||
setUpPageStatus = 'complete';
|
||||
}
|
||||
} catch(ex) {
|
||||
catchInitializationError(builder, ex);
|
||||
setUpPageStatus = '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 className attribute specifies the class attribute of the element.
|
||||
|
||||
Retrieve the class attribute of the DD element 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-95362176
|
||||
*/
|
||||
function HTMLElement140() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLElement140") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var vclassname;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "element");
|
||||
nodeList = doc.getElementsByTagName("dd");
|
||||
assertSize("Asize",4,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
vclassname = testNode.className;
|
||||
|
||||
assertEquals("classNameLink","DD-class",vclassname);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLElement140();
|
||||
}
|
||||
+113
@@ -0,0 +1,113 @@
|
||||
|
||||
/*
|
||||
Copyright © 2001-2004 World Wide Web Consortium,
|
||||
(Massachusetts Institute of Technology, European Research Consortium
|
||||
for Informatics and Mathematics, Keio University). All
|
||||
Rights Reserved. This work is distributed under the W3C® Software License [1] 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.
|
||||
|
||||
[1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
|
||||
*/
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets URI that identifies the test.
|
||||
* @return uri identifier of test
|
||||
*/
|
||||
function getTargetURI() {
|
||||
return "http://www.w3.org/2001/DOM-Test-Suite/level1/html/HTMLElement141";
|
||||
}
|
||||
|
||||
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", "element");
|
||||
|
||||
if (docsLoaded == 1) {
|
||||
setUpPageStatus = 'complete';
|
||||
}
|
||||
} catch(ex) {
|
||||
catchInitializationError(builder, ex);
|
||||
setUpPageStatus = '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 className attribute specifies the class attribute of the element.
|
||||
|
||||
Retrieve the class attribute of the DT element 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-95362176
|
||||
*/
|
||||
function HTMLElement141() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLElement141") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var vclassname;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "element");
|
||||
nodeList = doc.getElementsByTagName("dt");
|
||||
assertSize("Asize",1,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
vclassname = testNode.className;
|
||||
|
||||
assertEquals("classNameLink","DT-class",vclassname);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLElement141();
|
||||
}
|
||||
+113
@@ -0,0 +1,113 @@
|
||||
|
||||
/*
|
||||
Copyright © 2001-2004 World Wide Web Consortium,
|
||||
(Massachusetts Institute of Technology, European Research Consortium
|
||||
for Informatics and Mathematics, Keio University). All
|
||||
Rights Reserved. This work is distributed under the W3C® Software License [1] 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.
|
||||
|
||||
[1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
|
||||
*/
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets URI that identifies the test.
|
||||
* @return uri identifier of test
|
||||
*/
|
||||
function getTargetURI() {
|
||||
return "http://www.w3.org/2001/DOM-Test-Suite/level1/html/HTMLElement142";
|
||||
}
|
||||
|
||||
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", "element");
|
||||
|
||||
if (docsLoaded == 1) {
|
||||
setUpPageStatus = 'complete';
|
||||
}
|
||||
} catch(ex) {
|
||||
catchInitializationError(builder, ex);
|
||||
setUpPageStatus = '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 className attribute specifies the class attribute of the element.
|
||||
|
||||
Retrieve the class attribute of the NOFRAMES element 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-95362176
|
||||
*/
|
||||
function HTMLElement142() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLElement142") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var vclassname;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "element");
|
||||
nodeList = doc.getElementsByTagName("noframes");
|
||||
assertSize("Asize",1,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
vclassname = testNode.className;
|
||||
|
||||
assertEquals("classNameLink","NOFRAMES-class",vclassname);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLElement142();
|
||||
}
|
||||
+113
@@ -0,0 +1,113 @@
|
||||
|
||||
/*
|
||||
Copyright © 2001-2004 World Wide Web Consortium,
|
||||
(Massachusetts Institute of Technology, European Research Consortium
|
||||
for Informatics and Mathematics, Keio University). All
|
||||
Rights Reserved. This work is distributed under the W3C® Software License [1] 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.
|
||||
|
||||
[1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
|
||||
*/
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets URI that identifies the test.
|
||||
* @return uri identifier of test
|
||||
*/
|
||||
function getTargetURI() {
|
||||
return "http://www.w3.org/2001/DOM-Test-Suite/level1/html/HTMLElement143";
|
||||
}
|
||||
|
||||
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", "element");
|
||||
|
||||
if (docsLoaded == 1) {
|
||||
setUpPageStatus = 'complete';
|
||||
}
|
||||
} catch(ex) {
|
||||
catchInitializationError(builder, ex);
|
||||
setUpPageStatus = '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 className attribute specifies the class attribute of the element.
|
||||
|
||||
Retrieve the class attribute of the NOSCRIPT element 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-95362176
|
||||
*/
|
||||
function HTMLElement143() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLElement143") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var vclassname;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "element");
|
||||
nodeList = doc.getElementsByTagName("noscript");
|
||||
assertSize("Asize",1,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
vclassname = testNode.className;
|
||||
|
||||
assertEquals("classNameLink","NOSCRIPT-class",vclassname);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLElement143();
|
||||
}
|
||||
+113
@@ -0,0 +1,113 @@
|
||||
|
||||
/*
|
||||
Copyright © 2001-2004 World Wide Web Consortium,
|
||||
(Massachusetts Institute of Technology, European Research Consortium
|
||||
for Informatics and Mathematics, Keio University). All
|
||||
Rights Reserved. This work is distributed under the W3C® Software License [1] 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.
|
||||
|
||||
[1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
|
||||
*/
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets URI that identifies the test.
|
||||
* @return uri identifier of test
|
||||
*/
|
||||
function getTargetURI() {
|
||||
return "http://www.w3.org/2001/DOM-Test-Suite/level1/html/HTMLElement144";
|
||||
}
|
||||
|
||||
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", "element");
|
||||
|
||||
if (docsLoaded == 1) {
|
||||
setUpPageStatus = 'complete';
|
||||
}
|
||||
} catch(ex) {
|
||||
catchInitializationError(builder, ex);
|
||||
setUpPageStatus = '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 className attribute specifies the class attribute of the element.
|
||||
|
||||
Retrieve the class attribute of the ADDRESS element 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-95362176
|
||||
*/
|
||||
function HTMLElement144() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLElement144") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var vclassname;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "element");
|
||||
nodeList = doc.getElementsByTagName("address");
|
||||
assertSize("Asize",1,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
vclassname = testNode.className;
|
||||
|
||||
assertEquals("classNameLink","ADDRESS-class",vclassname);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLElement144();
|
||||
}
|
||||
+113
@@ -0,0 +1,113 @@
|
||||
|
||||
/*
|
||||
Copyright © 2001-2004 World Wide Web Consortium,
|
||||
(Massachusetts Institute of Technology, European Research Consortium
|
||||
for Informatics and Mathematics, Keio University). All
|
||||
Rights Reserved. This work is distributed under the W3C® Software License [1] 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.
|
||||
|
||||
[1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
|
||||
*/
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets URI that identifies the test.
|
||||
* @return uri identifier of test
|
||||
*/
|
||||
function getTargetURI() {
|
||||
return "http://www.w3.org/2001/DOM-Test-Suite/level1/html/HTMLElement145";
|
||||
}
|
||||
|
||||
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", "element");
|
||||
|
||||
if (docsLoaded == 1) {
|
||||
setUpPageStatus = 'complete';
|
||||
}
|
||||
} catch(ex) {
|
||||
catchInitializationError(builder, ex);
|
||||
setUpPageStatus = '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 className attribute specifies the class attribute of the element.
|
||||
|
||||
Retrieve the class attribute of the CENTER element 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-95362176
|
||||
*/
|
||||
function HTMLElement145() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLElement145") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var vclassname;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "element");
|
||||
nodeList = doc.getElementsByTagName("center");
|
||||
assertSize("Asize",2,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
vclassname = testNode.className;
|
||||
|
||||
assertEquals("classNameLink","CENTER-class",vclassname);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLElement145();
|
||||
}
|
||||
+113
@@ -0,0 +1,113 @@
|
||||
|
||||
/*
|
||||
Copyright © 2001-2004 World Wide Web Consortium,
|
||||
(Massachusetts Institute of Technology, European Research Consortium
|
||||
for Informatics and Mathematics, Keio University). All
|
||||
Rights Reserved. This work is distributed under the W3C® Software License [1] 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.
|
||||
|
||||
[1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
|
||||
*/
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets URI that identifies the test.
|
||||
* @return uri identifier of test
|
||||
*/
|
||||
function getTargetURI() {
|
||||
return "http://www.w3.org/2001/DOM-Test-Suite/level1/html/HTMLElement15";
|
||||
}
|
||||
|
||||
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", "element");
|
||||
|
||||
if (docsLoaded == 1) {
|
||||
setUpPageStatus = 'complete';
|
||||
}
|
||||
} catch(ex) {
|
||||
catchInitializationError(builder, ex);
|
||||
setUpPageStatus = '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 id specifies the elements identifier.
|
||||
|
||||
Retrieve the id attribute of the STRONG element 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-63534901
|
||||
*/
|
||||
function HTMLElement15() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLElement15") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var vid;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "element");
|
||||
nodeList = doc.getElementsByTagName("strong");
|
||||
assertSize("Asize",1,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
vid = testNode.id;
|
||||
|
||||
assertEquals("idLink","Test-STRONG",vid);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLElement15();
|
||||
}
|
||||
+113
@@ -0,0 +1,113 @@
|
||||
|
||||
/*
|
||||
Copyright © 2001-2004 World Wide Web Consortium,
|
||||
(Massachusetts Institute of Technology, European Research Consortium
|
||||
for Informatics and Mathematics, Keio University). All
|
||||
Rights Reserved. This work is distributed under the W3C® Software License [1] 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.
|
||||
|
||||
[1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
|
||||
*/
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets URI that identifies the test.
|
||||
* @return uri identifier of test
|
||||
*/
|
||||
function getTargetURI() {
|
||||
return "http://www.w3.org/2001/DOM-Test-Suite/level1/html/HTMLElement16";
|
||||
}
|
||||
|
||||
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", "element");
|
||||
|
||||
if (docsLoaded == 1) {
|
||||
setUpPageStatus = 'complete';
|
||||
}
|
||||
} catch(ex) {
|
||||
catchInitializationError(builder, ex);
|
||||
setUpPageStatus = '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 id specifies the elements identifier.
|
||||
|
||||
Retrieve the id attribute of the DFN element 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-63534901
|
||||
*/
|
||||
function HTMLElement16() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLElement16") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var vid;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "element");
|
||||
nodeList = doc.getElementsByTagName("dfn");
|
||||
assertSize("Asize",1,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
vid = testNode.id;
|
||||
|
||||
assertEquals("idLink","Test-DFN",vid);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLElement16();
|
||||
}
|
||||
+113
@@ -0,0 +1,113 @@
|
||||
|
||||
/*
|
||||
Copyright © 2001-2004 World Wide Web Consortium,
|
||||
(Massachusetts Institute of Technology, European Research Consortium
|
||||
for Informatics and Mathematics, Keio University). All
|
||||
Rights Reserved. This work is distributed under the W3C® Software License [1] 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.
|
||||
|
||||
[1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
|
||||
*/
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets URI that identifies the test.
|
||||
* @return uri identifier of test
|
||||
*/
|
||||
function getTargetURI() {
|
||||
return "http://www.w3.org/2001/DOM-Test-Suite/level1/html/HTMLElement17";
|
||||
}
|
||||
|
||||
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", "element");
|
||||
|
||||
if (docsLoaded == 1) {
|
||||
setUpPageStatus = 'complete';
|
||||
}
|
||||
} catch(ex) {
|
||||
catchInitializationError(builder, ex);
|
||||
setUpPageStatus = '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 id specifies the elements identifier.
|
||||
|
||||
Retrieve the id attribute of the CODE element 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-63534901
|
||||
*/
|
||||
function HTMLElement17() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLElement17") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var vid;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "element");
|
||||
nodeList = doc.getElementsByTagName("code");
|
||||
assertSize("Asize",1,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
vid = testNode.id;
|
||||
|
||||
assertEquals("idLink","Test-CODE",vid);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLElement17();
|
||||
}
|
||||
+113
@@ -0,0 +1,113 @@
|
||||
|
||||
/*
|
||||
Copyright © 2001-2004 World Wide Web Consortium,
|
||||
(Massachusetts Institute of Technology, European Research Consortium
|
||||
for Informatics and Mathematics, Keio University). All
|
||||
Rights Reserved. This work is distributed under the W3C® Software License [1] 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.
|
||||
|
||||
[1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
|
||||
*/
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets URI that identifies the test.
|
||||
* @return uri identifier of test
|
||||
*/
|
||||
function getTargetURI() {
|
||||
return "http://www.w3.org/2001/DOM-Test-Suite/level1/html/HTMLElement18";
|
||||
}
|
||||
|
||||
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", "element");
|
||||
|
||||
if (docsLoaded == 1) {
|
||||
setUpPageStatus = 'complete';
|
||||
}
|
||||
} catch(ex) {
|
||||
catchInitializationError(builder, ex);
|
||||
setUpPageStatus = '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 id specifies the elements identifier.
|
||||
|
||||
Retrieve the id attribute of the SAMP element 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-63534901
|
||||
*/
|
||||
function HTMLElement18() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLElement18") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var vid;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "element");
|
||||
nodeList = doc.getElementsByTagName("samp");
|
||||
assertSize("Asize",1,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
vid = testNode.id;
|
||||
|
||||
assertEquals("idLink","Test-SAMP",vid);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLElement18();
|
||||
}
|
||||
+113
@@ -0,0 +1,113 @@
|
||||
|
||||
/*
|
||||
Copyright © 2001-2004 World Wide Web Consortium,
|
||||
(Massachusetts Institute of Technology, European Research Consortium
|
||||
for Informatics and Mathematics, Keio University). All
|
||||
Rights Reserved. This work is distributed under the W3C® Software License [1] 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.
|
||||
|
||||
[1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
|
||||
*/
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets URI that identifies the test.
|
||||
* @return uri identifier of test
|
||||
*/
|
||||
function getTargetURI() {
|
||||
return "http://www.w3.org/2001/DOM-Test-Suite/level1/html/HTMLElement19";
|
||||
}
|
||||
|
||||
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", "element");
|
||||
|
||||
if (docsLoaded == 1) {
|
||||
setUpPageStatus = 'complete';
|
||||
}
|
||||
} catch(ex) {
|
||||
catchInitializationError(builder, ex);
|
||||
setUpPageStatus = '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 id specifies the elements identifier.
|
||||
|
||||
Retrieve the id attribute of the KBD element 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-63534901
|
||||
*/
|
||||
function HTMLElement19() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLElement19") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var vid;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "element");
|
||||
nodeList = doc.getElementsByTagName("kbd");
|
||||
assertSize("Asize",1,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
vid = testNode.id;
|
||||
|
||||
assertEquals("idLink","Test-KBD",vid);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLElement19();
|
||||
}
|
||||
+113
@@ -0,0 +1,113 @@
|
||||
|
||||
/*
|
||||
Copyright © 2001-2004 World Wide Web Consortium,
|
||||
(Massachusetts Institute of Technology, European Research Consortium
|
||||
for Informatics and Mathematics, Keio University). All
|
||||
Rights Reserved. This work is distributed under the W3C® Software License [1] 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.
|
||||
|
||||
[1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
|
||||
*/
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets URI that identifies the test.
|
||||
* @return uri identifier of test
|
||||
*/
|
||||
function getTargetURI() {
|
||||
return "http://www.w3.org/2001/DOM-Test-Suite/level1/html/HTMLElement20";
|
||||
}
|
||||
|
||||
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", "element");
|
||||
|
||||
if (docsLoaded == 1) {
|
||||
setUpPageStatus = 'complete';
|
||||
}
|
||||
} catch(ex) {
|
||||
catchInitializationError(builder, ex);
|
||||
setUpPageStatus = '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 id specifies the elements identifier.
|
||||
|
||||
Retrieve the id attribute of the VAR element 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-63534901
|
||||
*/
|
||||
function HTMLElement20() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLElement20") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var vid;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "element");
|
||||
nodeList = doc.getElementsByTagName("var");
|
||||
assertSize("Asize",1,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
vid = testNode.id;
|
||||
|
||||
assertEquals("idLink","Test-VAR",vid);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLElement20();
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user