Initial commit
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
Generated
Vendored
+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/HTMLAnchorElement02";
|
||||
}
|
||||
|
||||
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 charset attribute indicates the character encoding of the linked
|
||||
resource.
|
||||
|
||||
Retrieve the charset 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-67619266
|
||||
*/
|
||||
function HTMLAnchorElement02() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLAnchorElement02") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var vcharset;
|
||||
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);
|
||||
vcharset = testNode.charset;
|
||||
|
||||
assertEquals("charsetLink","US-ASCII",vcharset);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLAnchorElement02();
|
||||
}
|
||||
Generated
Vendored
+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/HTMLAnchorElement03";
|
||||
}
|
||||
|
||||
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 coords attribute is 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-92079539
|
||||
*/
|
||||
function HTMLAnchorElement03() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLAnchorElement03") != 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", "anchor");
|
||||
nodeList = doc.getElementsByTagName("a");
|
||||
assertSize("Asize",1,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
vcoords = testNode.coords;
|
||||
|
||||
assertEquals("coordsLink","0,0,100,100",vcoords);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLAnchorElement03();
|
||||
}
|
||||
Generated
Vendored
+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/HTMLAnchorElement06";
|
||||
}
|
||||
|
||||
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 name attribute contains the anchor name.
|
||||
|
||||
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-32783304
|
||||
*/
|
||||
function HTMLAnchorElement06() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLAnchorElement06") != 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", "anchor");
|
||||
nodeList = doc.getElementsByTagName("a");
|
||||
assertSize("Asize",1,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
vname = testNode.name;
|
||||
|
||||
assertEquals("nameLink","Anchor",vname);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLAnchorElement06();
|
||||
}
|
||||
Generated
Vendored
+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/HTMLAnchorElement08";
|
||||
}
|
||||
|
||||
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 rev attribute contains the reverse link type
|
||||
|
||||
Retrieve the rev 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-58259771
|
||||
*/
|
||||
function HTMLAnchorElement08() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLAnchorElement08") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var vrev;
|
||||
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);
|
||||
vrev = testNode.rev;
|
||||
|
||||
assertEquals("revLink","STYLESHEET",vrev);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLAnchorElement08();
|
||||
}
|
||||
Generated
Vendored
+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/HTMLAnchorElement09";
|
||||
}
|
||||
|
||||
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 shape attribute contains 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-49899808
|
||||
*/
|
||||
function HTMLAnchorElement09() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLAnchorElement09") != 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", "anchor");
|
||||
nodeList = doc.getElementsByTagName("a");
|
||||
assertSize("Asize",1,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
vshape = testNode.shape;
|
||||
|
||||
assertEquals("shapeLink","rect",vshape);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLAnchorElement09();
|
||||
}
|
||||
Generated
Vendored
+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/HTMLAppletElement01";
|
||||
}
|
||||
|
||||
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", "applet");
|
||||
|
||||
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 align attribute specifies the alignment of the object(Vertically
|
||||
or Horizontally) with respect to its surrounding text.
|
||||
|
||||
Retrieve the align 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-8049912
|
||||
*/
|
||||
function HTMLAppletElement01() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLAppletElement01") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var valign;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "applet");
|
||||
nodeList = doc.getElementsByTagName("applet");
|
||||
assertSize("Asize",1,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
valign = testNode.align;
|
||||
|
||||
assertEquals("alignLink","bottom".toLowerCase(),valign.toLowerCase());
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLAppletElement01();
|
||||
}
|
||||
Generated
Vendored
+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/HTMLAppletElement02";
|
||||
}
|
||||
|
||||
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", "applet");
|
||||
|
||||
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 the alternate text for user agents not
|
||||
rendering the normal context 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-58610064
|
||||
*/
|
||||
function HTMLAppletElement02() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLAppletElement02") != 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", "applet");
|
||||
nodeList = doc.getElementsByTagName("applet");
|
||||
assertSize("Asize",1,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
valt = testNode.alt;
|
||||
|
||||
assertEquals("altLink","Applet Number 1",valt);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLAppletElement02();
|
||||
}
|
||||
Generated
Vendored
+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/HTMLAppletElement03";
|
||||
}
|
||||
|
||||
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", "applet");
|
||||
|
||||
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 archive attribute specifies a comma-seperated archive list.
|
||||
|
||||
Retrieve the archive 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-14476360
|
||||
*/
|
||||
function HTMLAppletElement03() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLAppletElement03") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var varchive;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "applet");
|
||||
nodeList = doc.getElementsByTagName("applet");
|
||||
assertSize("Asize",1,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
varchive = testNode.archive;
|
||||
|
||||
assertEquals("archiveLink","",varchive);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLAppletElement03();
|
||||
}
|
||||
Generated
Vendored
+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/HTMLAppletElement04";
|
||||
}
|
||||
|
||||
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", "applet");
|
||||
|
||||
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 code attribute specifies the applet class file.
|
||||
|
||||
Retrieve the code 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-61509645
|
||||
*/
|
||||
function HTMLAppletElement04() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLAppletElement04") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var vcode;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "applet");
|
||||
nodeList = doc.getElementsByTagName("applet");
|
||||
assertSize("Asize",1,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
vcode = testNode.code;
|
||||
|
||||
assertEquals("codeLink","org/w3c/domts/DOMTSApplet.class",vcode);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLAppletElement04();
|
||||
}
|
||||
Generated
Vendored
+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/HTMLAppletElement05";
|
||||
}
|
||||
|
||||
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", "applet");
|
||||
|
||||
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 codeBase attribute specifies an optional base URI for the applet.
|
||||
|
||||
Retrieve the codeBase 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-6581160
|
||||
*/
|
||||
function HTMLAppletElement05() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLAppletElement05") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var vcodebase;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "applet");
|
||||
nodeList = doc.getElementsByTagName("applet");
|
||||
assertSize("Asize",1,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
vcodebase = testNode.codeBase;
|
||||
|
||||
assertEquals("codebase","applets",vcodebase);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLAppletElement05();
|
||||
}
|
||||
Generated
Vendored
+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/HTMLAppletElement06";
|
||||
}
|
||||
|
||||
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", "applet");
|
||||
|
||||
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 height attribute overrides the height.
|
||||
|
||||
Retrieve the height 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-90184867
|
||||
*/
|
||||
function HTMLAppletElement06() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLAppletElement06") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var vheight;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "applet");
|
||||
nodeList = doc.getElementsByTagName("applet");
|
||||
assertSize("Asize",1,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
vheight = testNode.height;
|
||||
|
||||
assertEquals("heightLink","306",vheight);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLAppletElement06();
|
||||
}
|
||||
Generated
Vendored
+126
@@ -0,0 +1,126 @@
|
||||
|
||||
/*
|
||||
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/HTMLAppletElement07";
|
||||
}
|
||||
|
||||
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", "applet");
|
||||
|
||||
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 hspace attribute specifies the horizontal space to the left
|
||||
and right of this image, applet, or object. Retrieve the hspace attribute and examine its value.
|
||||
|
||||
This test is incompatible with L2 HTML implementations due to a change in the type of the attribute.
|
||||
|
||||
* @author NIST
|
||||
* @author Mary Brady
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-1567197
|
||||
* @see http://www.w3.org/Bugs/Public/show_bug.cgi?id=504
|
||||
*/
|
||||
function HTMLAppletElement07() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLAppletElement07") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var vhspace;
|
||||
var doc;
|
||||
var domImpl;
|
||||
var hasHTML2;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "applet");
|
||||
domImpl = doc.implementation;
|
||||
hasHTML2 = domImpl.hasFeature("HTML","2.0");
|
||||
|
||||
if(
|
||||
|
||||
!hasHTML2
|
||||
) {
|
||||
nodeList = doc.getElementsByTagName("applet");
|
||||
assertSize("Asize",1,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
vhspace = testNode.hspace;
|
||||
|
||||
assertEquals("hspaceLink","0",vhspace);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLAppletElement07();
|
||||
}
|
||||
Generated
Vendored
+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/HTMLAppletElement08";
|
||||
}
|
||||
|
||||
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", "applet");
|
||||
|
||||
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 specifies the name of the applet.
|
||||
|
||||
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-39843695
|
||||
*/
|
||||
function HTMLAppletElement08() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLAppletElement08") != 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", "applet");
|
||||
nodeList = doc.getElementsByTagName("applet");
|
||||
assertSize("Asize",1,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
vname = testNode.name;
|
||||
|
||||
assertEquals("nameLink","applet1",vname);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLAppletElement08();
|
||||
}
|
||||
Generated
Vendored
+127
@@ -0,0 +1,127 @@
|
||||
|
||||
/*
|
||||
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/HTMLAppletElement09";
|
||||
}
|
||||
|
||||
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", "applet");
|
||||
|
||||
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 vspace attribute specifies the vertical space above and below
|
||||
this image, applet or object. Retrieve the vspace attribute and examine its value.
|
||||
|
||||
This test is incompatible with L2 HTML implementations due to a change in the type of the attribute.
|
||||
|
||||
|
||||
* @author NIST
|
||||
* @author Mary Brady
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-22637173
|
||||
* @see http://www.w3.org/Bugs/Public/show_bug.cgi?id=504
|
||||
*/
|
||||
function HTMLAppletElement09() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLAppletElement09") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var vvspace;
|
||||
var doc;
|
||||
var domImpl;
|
||||
var hasHTML2;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "applet");
|
||||
domImpl = doc.implementation;
|
||||
hasHTML2 = domImpl.hasFeature("HTML","2.0");
|
||||
|
||||
if(
|
||||
|
||||
!hasHTML2
|
||||
) {
|
||||
nodeList = doc.getElementsByTagName("applet");
|
||||
assertSize("Asize",1,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
vvspace = testNode.vspace;
|
||||
|
||||
assertEquals("vspaceLink","0",vvspace);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLAppletElement09();
|
||||
}
|
||||
Generated
Vendored
+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/HTMLAppletElement10";
|
||||
}
|
||||
|
||||
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", "applet");
|
||||
|
||||
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 width attribute overrides the regular width.
|
||||
|
||||
Retrieve the width 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-16526327
|
||||
*/
|
||||
function HTMLAppletElement10() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLAppletElement10") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var vwidth;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "applet");
|
||||
nodeList = doc.getElementsByTagName("applet");
|
||||
assertSize("Asize",1,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
vwidth = testNode.width;
|
||||
|
||||
assertEquals("widthLink","301",vwidth);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLAppletElement10();
|
||||
}
|
||||
Generated
Vendored
+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/HTMLAppletElement11";
|
||||
}
|
||||
|
||||
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", "applet2");
|
||||
|
||||
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 object attribute specifies the serialized applet file.
|
||||
|
||||
Retrieve the object attribute and examine its value.
|
||||
|
||||
* @author NIST
|
||||
* @author Rick Rivello
|
||||
* @author Curt Arnold
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-93681523
|
||||
*/
|
||||
function HTMLAppletElement11() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLAppletElement11") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var vobject;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "applet2");
|
||||
nodeList = doc.getElementsByTagName("applet");
|
||||
assertSize("Asize",1,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
vobject = testNode.object;
|
||||
|
||||
assertEquals("object","DOMTSApplet.dat",vobject);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLAppletElement11();
|
||||
}
|
||||
+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/HTMLBRElement01";
|
||||
}
|
||||
|
||||
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", "br");
|
||||
|
||||
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 clear attribute specifies control flow of text around floats.
|
||||
|
||||
Retrieve the clear 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-82703081
|
||||
*/
|
||||
function HTMLBRElement01() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLBRElement01") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var vclear;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "br");
|
||||
nodeList = doc.getElementsByTagName("br");
|
||||
assertSize("Asize",1,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
vclear = testNode.clear;
|
||||
|
||||
assertEquals("clearLink","none",vclear);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLBRElement01();
|
||||
}
|
||||
Generated
Vendored
+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/HTMLBaseFontElement01";
|
||||
}
|
||||
|
||||
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", "basefont");
|
||||
|
||||
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 color attribute specifies the base font's color.
|
||||
|
||||
Retrieve the color 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-87502302
|
||||
*/
|
||||
function HTMLBaseFontElement01() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLBaseFontElement01") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var vcolor;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "basefont");
|
||||
nodeList = doc.getElementsByTagName("basefont");
|
||||
assertSize("Asize",1,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
vcolor = testNode.color;
|
||||
|
||||
assertEquals("colorLink","#000000",vcolor);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLBaseFontElement01();
|
||||
}
|
||||
Generated
Vendored
+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/HTMLBaseFontElement02";
|
||||
}
|
||||
|
||||
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", "basefont");
|
||||
|
||||
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 face attribute specifies the base font's face identifier.
|
||||
|
||||
Retrieve the face 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-88128969
|
||||
*/
|
||||
function HTMLBaseFontElement02() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLBaseFontElement02") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var vface;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "basefont");
|
||||
nodeList = doc.getElementsByTagName("basefont");
|
||||
assertSize("Asize",1,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
vface = testNode.face;
|
||||
|
||||
assertEquals("faceLink","arial,helvitica",vface);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLBaseFontElement02();
|
||||
}
|
||||
Generated
Vendored
+125
@@ -0,0 +1,125 @@
|
||||
|
||||
/*
|
||||
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/HTMLBaseFontElement03";
|
||||
}
|
||||
|
||||
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", "basefont");
|
||||
|
||||
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 size attribute specifies the base font's size. Retrieve the size attribute and examine its value.
|
||||
|
||||
This test is incompatible with L2 HTML implementations due to a change in the type of the attribute.
|
||||
|
||||
* @author NIST
|
||||
* @author Mary Brady
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-38930424
|
||||
* @see http://www.w3.org/Bugs/Public/show_bug.cgi?id=504
|
||||
*/
|
||||
function HTMLBaseFontElement03() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLBaseFontElement03") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var vsize;
|
||||
var doc;
|
||||
var domImpl;
|
||||
var hasHTML2;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "basefont");
|
||||
domImpl = doc.implementation;
|
||||
hasHTML2 = domImpl.hasFeature("HTML","2.0");
|
||||
|
||||
if(
|
||||
|
||||
!hasHTML2
|
||||
) {
|
||||
nodeList = doc.getElementsByTagName("basefont");
|
||||
assertSize("Asize",1,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
vsize = testNode.size;
|
||||
|
||||
assertEquals("sizeLink","4",vsize);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLBaseFontElement03();
|
||||
}
|
||||
Generated
Vendored
+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/HTMLBodyElement01";
|
||||
}
|
||||
|
||||
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", "body");
|
||||
|
||||
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 aLink attribute specifies the color of active links.
|
||||
|
||||
Retrieve the aLink 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-59424581
|
||||
*/
|
||||
function HTMLBodyElement01() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLBodyElement01") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var valink;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "body");
|
||||
nodeList = doc.getElementsByTagName("body");
|
||||
assertSize("Asize",1,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
valink = testNode.aLink;
|
||||
|
||||
assertEquals("aLinkLink","#0000ff",valink);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLBodyElement01();
|
||||
}
|
||||
Generated
Vendored
+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/HTMLBodyElement02";
|
||||
}
|
||||
|
||||
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", "body");
|
||||
|
||||
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 background attribute specifies the URI fo the background texture
|
||||
tile image.
|
||||
|
||||
Retrieve the background 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-37574810
|
||||
*/
|
||||
function HTMLBodyElement02() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLBodyElement02") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var vbackground;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "body");
|
||||
nodeList = doc.getElementsByTagName("body");
|
||||
assertSize("Asize",1,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
vbackground = testNode.background;
|
||||
|
||||
assertEquals("backgroundLink","./pix/back1.gif",vbackground);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLBodyElement02();
|
||||
}
|
||||
Generated
Vendored
+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/HTMLBodyElement03";
|
||||
}
|
||||
|
||||
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", "body");
|
||||
|
||||
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 bgColor attribute specifies the document background color.
|
||||
|
||||
Retrieve the bgColor 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-24940084
|
||||
*/
|
||||
function HTMLBodyElement03() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLBodyElement03") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var vbgcolor;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "body");
|
||||
nodeList = doc.getElementsByTagName("body");
|
||||
assertSize("Asize",1,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
vbgcolor = testNode.bgColor;
|
||||
|
||||
assertEquals("bgColorLink","#ffff00",vbgcolor);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLBodyElement03();
|
||||
}
|
||||
Generated
Vendored
+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/HTMLBodyElement04";
|
||||
}
|
||||
|
||||
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", "body");
|
||||
|
||||
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 link attribute specifies the color of links that are not active
|
||||
and unvisited.
|
||||
|
||||
Retrieve the link 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-7662206
|
||||
*/
|
||||
function HTMLBodyElement04() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLBodyElement04") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var vlink;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "body");
|
||||
nodeList = doc.getElementsByTagName("body");
|
||||
assertSize("Asize",1,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
vlink = testNode.link;
|
||||
|
||||
assertEquals("linkLink","#ff0000",vlink);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLBodyElement04();
|
||||
}
|
||||
Generated
Vendored
+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/HTMLBodyElement05";
|
||||
}
|
||||
|
||||
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", "body");
|
||||
|
||||
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 text attribute specifies the document text color.
|
||||
|
||||
Retrieve the text 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-73714763
|
||||
*/
|
||||
function HTMLBodyElement05() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLBodyElement05") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var vtext;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "body");
|
||||
nodeList = doc.getElementsByTagName("body");
|
||||
assertSize("Asize",1,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
vtext = testNode.text;
|
||||
|
||||
assertEquals("textLink","#000000",vtext);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLBodyElement05();
|
||||
}
|
||||
Generated
Vendored
+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/HTMLBodyElement06";
|
||||
}
|
||||
|
||||
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", "body");
|
||||
|
||||
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 vLink attribute specifies the color of links that have been
|
||||
visited by the user.
|
||||
|
||||
Retrieve the vLink 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-83224305
|
||||
*/
|
||||
function HTMLBodyElement06() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLBodyElement06") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var vvlink;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "body");
|
||||
nodeList = doc.getElementsByTagName("body");
|
||||
assertSize("Asize",1,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
vvlink = testNode.vLink;
|
||||
|
||||
assertEquals("vLinkLink","#00ffff",vvlink);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLBodyElement06();
|
||||
}
|
||||
Generated
Vendored
+121
@@ -0,0 +1,121 @@
|
||||
|
||||
/*
|
||||
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/HTMLCollection01";
|
||||
}
|
||||
|
||||
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", "collection");
|
||||
|
||||
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';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
An individual node may be accessed by either ordinal index, the node's
|
||||
name or id attributes. (Test ordinal index).
|
||||
|
||||
Retrieve the first TABLE element and create a HTMLCollection by invoking
|
||||
the "rows" attribute. The item located at ordinal index 0 is further
|
||||
retrieved and its "rowIndex" attribute is examined.
|
||||
|
||||
* @author NIST
|
||||
* @author Rick Rivello
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-33262535
|
||||
*/
|
||||
function HTMLCollection01() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLCollection01") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var rowNode;
|
||||
var rowsnodeList;
|
||||
var vrowindex;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "collection");
|
||||
nodeList = doc.getElementsByTagName("table");
|
||||
assertSize("Asize",1,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
rowsnodeList = testNode.rows;
|
||||
|
||||
rowNode = rowsnodeList.item(0);
|
||||
vrowindex = rowNode.rowIndex;
|
||||
|
||||
assertEquals("rowIndexLink",0,vrowindex);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLCollection01();
|
||||
}
|
||||
Generated
Vendored
+121
@@ -0,0 +1,121 @@
|
||||
|
||||
/*
|
||||
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/HTMLCollection02";
|
||||
}
|
||||
|
||||
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", "collection");
|
||||
|
||||
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';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
An individual node may be accessed by either ordinal index, the node's
|
||||
name or id attributes. (Test node name).
|
||||
|
||||
Retrieve the first FORM element and create a HTMLCollection by invoking
|
||||
the elements attribute. The first SELECT element is further retrieved
|
||||
using the elements name attribute.
|
||||
|
||||
* @author NIST
|
||||
* @author Rick Rivello
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-76728479
|
||||
*/
|
||||
function HTMLCollection02() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLCollection02") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var formNode;
|
||||
var formsnodeList;
|
||||
var vname;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "collection");
|
||||
nodeList = doc.getElementsByTagName("form");
|
||||
assertSize("Asize",1,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
formsnodeList = testNode.elements;
|
||||
|
||||
formNode = formsnodeList.namedItem("select1");
|
||||
vname = formNode.nodeName;
|
||||
|
||||
assertEqualsAutoCase("element", "nameIndexLink","SELECT",vname);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLCollection02();
|
||||
}
|
||||
Generated
Vendored
+121
@@ -0,0 +1,121 @@
|
||||
|
||||
/*
|
||||
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/HTMLCollection03";
|
||||
}
|
||||
|
||||
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", "collection");
|
||||
|
||||
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';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
An individual node may be accessed by either ordinal index, the node's
|
||||
name or id attributes. (Test id attribute).
|
||||
|
||||
Retrieve the first FORM element and create a HTMLCollection by invoking
|
||||
the "element" attribute. The first SELECT element is further retrieved
|
||||
using the elements id.
|
||||
|
||||
* @author NIST
|
||||
* @author Rick Rivello
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-21069976
|
||||
*/
|
||||
function HTMLCollection03() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLCollection03") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var formNode;
|
||||
var formsnodeList;
|
||||
var vname;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "collection");
|
||||
nodeList = doc.getElementsByTagName("form");
|
||||
assertSize("Asize",1,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
formsnodeList = testNode.elements;
|
||||
|
||||
formNode = formsnodeList.namedItem("selectId");
|
||||
vname = formNode.nodeName;
|
||||
|
||||
assertEqualsAutoCase("element", "nameIndexLink","select",vname);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLCollection03();
|
||||
}
|
||||
Generated
Vendored
+133
@@ -0,0 +1,133 @@
|
||||
|
||||
/*
|
||||
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/HTMLCollection04";
|
||||
}
|
||||
|
||||
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", "collection");
|
||||
|
||||
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';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
HTMLCollections are live, they are automatically updated when the
|
||||
underlying document is changed.
|
||||
|
||||
Create a HTMLCollection object by invoking the rows attribute of the
|
||||
first TABLE element and examine its length, then add a new row and
|
||||
re-examine the length.
|
||||
|
||||
* @author NIST
|
||||
* @author Rick Rivello
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-40057551
|
||||
*/
|
||||
function HTMLCollection04() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLCollection04") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var rowLength1;
|
||||
var rowLength2;
|
||||
var rowsnodeList;
|
||||
var newRow;
|
||||
var vrowindex;
|
||||
var doc;
|
||||
var result = new Array();
|
||||
|
||||
expectedResult = new Array();
|
||||
expectedResult[0] = 4;
|
||||
expectedResult[1] = 5;
|
||||
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "collection");
|
||||
nodeList = doc.getElementsByTagName("table");
|
||||
assertSize("Asize",1,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
rowsnodeList = testNode.rows;
|
||||
|
||||
rowLength1 = rowsnodeList.length;
|
||||
|
||||
result[result.length] = rowLength1;
|
||||
newRow = testNode.insertRow(4);
|
||||
rowLength2 = rowsnodeList.length;
|
||||
|
||||
result[result.length] = rowLength2;
|
||||
assertEqualsList("rowIndexLink",expectedResult,result);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLCollection04();
|
||||
}
|
||||
Generated
Vendored
+118
@@ -0,0 +1,118 @@
|
||||
|
||||
/*
|
||||
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/HTMLCollection05";
|
||||
}
|
||||
|
||||
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", "collection");
|
||||
|
||||
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 length attribute specifies the length or size of the list.
|
||||
|
||||
Retrieve the first TABLE element and create a HTMLCollection by invoking
|
||||
the "rows" attribute. Retrieve the length attribute of the HTMLCollection
|
||||
object.
|
||||
|
||||
* @author NIST
|
||||
* @author Rick Rivello
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-40057551
|
||||
*/
|
||||
function HTMLCollection05() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLCollection05") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var rowsnodeList;
|
||||
var rowLength;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "collection");
|
||||
nodeList = doc.getElementsByTagName("table");
|
||||
assertSize("Asize",1,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
rowsnodeList = testNode.rows;
|
||||
|
||||
rowLength = rowsnodeList.length;
|
||||
|
||||
assertEquals("rowIndexLink",4,rowLength);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLCollection05();
|
||||
}
|
||||
Generated
Vendored
+122
@@ -0,0 +1,122 @@
|
||||
|
||||
/*
|
||||
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/HTMLCollection06";
|
||||
}
|
||||
|
||||
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", "collection");
|
||||
|
||||
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';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
An item(index) method retrieves an item specified by ordinal index
|
||||
(Test for index=0).
|
||||
|
||||
Retrieve the first TABLE element and create a HTMLCollection by invoking
|
||||
the "rows" attribute. The item located at ordinal index 0 is further
|
||||
retrieved and its "rowIndex" attribute is examined.
|
||||
|
||||
* @author NIST
|
||||
* @author Rick Rivello
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-6156016
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-33262535
|
||||
*/
|
||||
function HTMLCollection06() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLCollection06") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var rowNode;
|
||||
var rowsnodeList;
|
||||
var vrowindex;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "collection");
|
||||
nodeList = doc.getElementsByTagName("table");
|
||||
assertSize("Asize",1,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
rowsnodeList = testNode.rows;
|
||||
|
||||
rowNode = rowsnodeList.item(0);
|
||||
vrowindex = rowNode.rowIndex;
|
||||
|
||||
assertEquals("rowIndexLink",0,vrowindex);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLCollection06();
|
||||
}
|
||||
Generated
Vendored
+121
@@ -0,0 +1,121 @@
|
||||
|
||||
/*
|
||||
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/HTMLCollection07";
|
||||
}
|
||||
|
||||
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", "collection");
|
||||
|
||||
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';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
An item(index) method retrieves an item specified by ordinal index
|
||||
(Test for index=3).
|
||||
|
||||
Retrieve the first TABLE element and create a HTMLCollection by invoking
|
||||
the "rows" attribute. The item located at ordinal index 3 is further
|
||||
retrieved and its "rowIndex" attribute is examined.
|
||||
|
||||
* @author NIST
|
||||
* @author Rick Rivello
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-33262535
|
||||
*/
|
||||
function HTMLCollection07() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLCollection07") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var rowNode;
|
||||
var rowsnodeList;
|
||||
var vrowindex;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "collection");
|
||||
nodeList = doc.getElementsByTagName("table");
|
||||
assertSize("Asize",1,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
rowsnodeList = testNode.rows;
|
||||
|
||||
rowNode = rowsnodeList.item(3);
|
||||
vrowindex = rowNode.rowIndex;
|
||||
|
||||
assertEquals("rowIndexLink",3,vrowindex);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLCollection07();
|
||||
}
|
||||
Generated
Vendored
+121
@@ -0,0 +1,121 @@
|
||||
|
||||
/*
|
||||
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/HTMLCollection08";
|
||||
}
|
||||
|
||||
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", "collection");
|
||||
|
||||
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';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
Nodes in a HTMLCollection object are numbered in tree order.
|
||||
(Depth-first traversal order).
|
||||
|
||||
Retrieve the first TABLE element and create a HTMLCollection by invoking
|
||||
the "rows" attribute. Access the item in the third ordinal index. The
|
||||
resulting rowIndex attribute is examined and should be two.
|
||||
|
||||
* @author NIST
|
||||
* @author Rick Rivello
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-33262535
|
||||
*/
|
||||
function HTMLCollection08() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLCollection08") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var rowNode;
|
||||
var rowsnodeList;
|
||||
var vrowindex;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "collection");
|
||||
nodeList = doc.getElementsByTagName("table");
|
||||
assertSize("Asize",1,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
rowsnodeList = testNode.rows;
|
||||
|
||||
rowNode = rowsnodeList.item(2);
|
||||
vrowindex = rowNode.rowIndex;
|
||||
|
||||
assertEquals("rowIndexLink",2,vrowindex);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLCollection08();
|
||||
}
|
||||
Generated
Vendored
+118
@@ -0,0 +1,118 @@
|
||||
|
||||
/*
|
||||
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/HTMLCollection09";
|
||||
}
|
||||
|
||||
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", "collection");
|
||||
|
||||
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 item(index) method returns null if the index is out of range.
|
||||
|
||||
Retrieve the first TABLE element and create a HTMLCollection by invoking
|
||||
the "rows" attribute. Invoke the item(index) method with an index
|
||||
of 5. This index is out of range and should return null.
|
||||
|
||||
* @author NIST
|
||||
* @author Rick Rivello
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-33262535
|
||||
*/
|
||||
function HTMLCollection09() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLCollection09") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var rowNode;
|
||||
var rowsnodeList;
|
||||
var vrowindex;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "collection");
|
||||
nodeList = doc.getElementsByTagName("table");
|
||||
assertSize("Asize",1,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
rowsnodeList = testNode.rows;
|
||||
|
||||
rowNode = rowsnodeList.item(5);
|
||||
assertNull("rowIndexLink",rowNode);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLCollection09();
|
||||
}
|
||||
Generated
Vendored
+123
@@ -0,0 +1,123 @@
|
||||
|
||||
/*
|
||||
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/HTMLCollection10";
|
||||
}
|
||||
|
||||
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", "collection");
|
||||
|
||||
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 namedItem(name) method retrieves a node using a name. It first
|
||||
searches for a node with a matching id attribute. If it doesn't find
|
||||
one, it then searches for a Node with a matching name attribute, but only
|
||||
on those elements that are allowed a name attribute.
|
||||
|
||||
Retrieve the first FORM element and create a HTMLCollection by invoking
|
||||
the elements attribute. The first SELECT element is further retrieved
|
||||
using the elements name attribute since the id attribute doesn't match.
|
||||
|
||||
* @author NIST
|
||||
* @author Rick Rivello
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-21069976
|
||||
*/
|
||||
function HTMLCollection10() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLCollection10") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var formNode;
|
||||
var formsnodeList;
|
||||
var vname;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "collection");
|
||||
nodeList = doc.getElementsByTagName("form");
|
||||
assertSize("Asize",1,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
formsnodeList = testNode.elements;
|
||||
|
||||
formNode = formsnodeList.namedItem("select1");
|
||||
vname = formNode.nodeName;
|
||||
|
||||
assertEqualsAutoCase("element", "nameIndexLink","SELECT",vname);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLCollection10();
|
||||
}
|
||||
Generated
Vendored
+123
@@ -0,0 +1,123 @@
|
||||
|
||||
/*
|
||||
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/HTMLCollection11";
|
||||
}
|
||||
|
||||
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", "collection");
|
||||
|
||||
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 namedItem(name) method retrieves a node using a name. It first
|
||||
searches for a node with a matching id attribute. If it doesn't find
|
||||
one, it then searches for a Node with a matching name attribute, but only
|
||||
on those elements that are allowed a name attribute.
|
||||
|
||||
Retrieve the first FORM element and create a HTMLCollection by invoking
|
||||
the elements attribute. The first SELECT element is further retrieved
|
||||
using the elements id attribute.
|
||||
|
||||
* @author NIST
|
||||
* @author Rick Rivello
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-76728479
|
||||
*/
|
||||
function HTMLCollection11() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLCollection11") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var formNode;
|
||||
var formsnodeList;
|
||||
var vname;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "collection");
|
||||
nodeList = doc.getElementsByTagName("form");
|
||||
assertSize("Asize",1,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
formsnodeList = testNode.elements;
|
||||
|
||||
formNode = formsnodeList.namedItem("selectId");
|
||||
vname = formNode.nodeName;
|
||||
|
||||
assertEqualsAutoCase("element", "nameIndexLink","select",vname);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLCollection11();
|
||||
}
|
||||
Generated
Vendored
+121
@@ -0,0 +1,121 @@
|
||||
|
||||
/*
|
||||
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/HTMLCollection12";
|
||||
}
|
||||
|
||||
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", "collection");
|
||||
|
||||
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 namedItem(name) method retrieves a node using a name. It first
|
||||
searches for a node with a matching id attribute. If it doesn't find
|
||||
one, it then searches for a Node with a matching name attribute, but only
|
||||
on those elements that are allowed a name attribute. If there isn't
|
||||
a matching node the method returns null.
|
||||
|
||||
Retrieve the first FORM element and create a HTMLCollection by invoking
|
||||
the elements attribute. The method returns null since there is not a
|
||||
match of the name or id attribute.
|
||||
|
||||
* @author NIST
|
||||
* @author Rick Rivello
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-21069976
|
||||
*/
|
||||
function HTMLCollection12() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLCollection12") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var formNode;
|
||||
var formsnodeList;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "collection");
|
||||
nodeList = doc.getElementsByTagName("form");
|
||||
assertSize("Asize",1,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
formsnodeList = testNode.elements;
|
||||
|
||||
formNode = formsnodeList.namedItem("select9");
|
||||
assertNull("nameIndexLink",formNode);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLCollection12();
|
||||
}
|
||||
Generated
Vendored
+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/HTMLDirectoryElement01";
|
||||
}
|
||||
|
||||
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", "directory");
|
||||
|
||||
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 compact attribute specifies a boolean value on whether to display
|
||||
the list more compactly.
|
||||
|
||||
Retrieve the compact 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-75317739
|
||||
*/
|
||||
function HTMLDirectoryElement01() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLDirectoryElement01") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var vcompact;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "directory");
|
||||
nodeList = doc.getElementsByTagName("dir");
|
||||
assertSize("Asize",1,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
vcompact = testNode.compact;
|
||||
|
||||
assertTrue("compactLink",vcompact);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLDirectoryElement01();
|
||||
}
|
||||
Generated
Vendored
+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/HTMLDivElement01";
|
||||
}
|
||||
|
||||
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", "div");
|
||||
|
||||
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 align attribute specifies the horizontal text alignment.
|
||||
|
||||
Retrieve the align 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-70908791
|
||||
*/
|
||||
function HTMLDivElement01() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLDivElement01") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var valign;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "div");
|
||||
nodeList = doc.getElementsByTagName("div");
|
||||
assertSize("Asize",1,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
valign = testNode.align;
|
||||
|
||||
assertEquals("alignLink","center",valign);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLDivElement01();
|
||||
}
|
||||
Generated
Vendored
+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/HTMLDlistElement01";
|
||||
}
|
||||
|
||||
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", "dl");
|
||||
|
||||
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 compact attribute specifies a boolean value on whether to display
|
||||
the list more compactly.
|
||||
|
||||
Retrieve the compact 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-21738539
|
||||
*/
|
||||
function HTMLDlistElement01() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLDlistElement01") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var vcompact;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "dl");
|
||||
nodeList = doc.getElementsByTagName("dl");
|
||||
assertSize("Asize",1,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
vcompact = testNode.compact;
|
||||
|
||||
assertTrue("compactLink",vcompact);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLDlistElement01();
|
||||
}
|
||||
+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/HTMLDocument08";
|
||||
}
|
||||
|
||||
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 applets attribute returns a collection of all OBJECT elements that
|
||||
include applets abd APPLET elements in a document.
|
||||
|
||||
Retrieve the applets attribute from the document and examine its value.
|
||||
|
||||
* @author NIST
|
||||
* @author Rick Rivello
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-85113862
|
||||
*/
|
||||
function HTMLDocument08() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLDocument08") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var vapplets;
|
||||
var vlength;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "document");
|
||||
vapplets = doc.applets;
|
||||
|
||||
vlength = vapplets.length;
|
||||
|
||||
assertEquals("length",4,vlength);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLDocument08();
|
||||
}
|
||||
+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/HTMLDocument11";
|
||||
}
|
||||
|
||||
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 anchors attribute returns a collection of all A elements with values
|
||||
for the name attribute.
|
||||
|
||||
Retrieve the anchors attribute from the document and examine its value.
|
||||
|
||||
* @author NIST
|
||||
* @author Rick Rivello
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-7577272
|
||||
*/
|
||||
function HTMLDocument11() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLDocument11") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var vanchors;
|
||||
var vlength;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "document");
|
||||
vanchors = doc.anchors;
|
||||
|
||||
vlength = vanchors.length;
|
||||
|
||||
assertEquals("lengthLink",1,vlength);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLDocument11();
|
||||
}
|
||||
+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/HTMLDocument13";
|
||||
}
|
||||
|
||||
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 getElementsByName method returns the (possibly empty) collection
|
||||
of elements whose name value is given by the elementName.
|
||||
|
||||
Retrieve all the elements whose name attribute is "mapid".
|
||||
Check the length of the nodelist. It should be 1.
|
||||
|
||||
* @author NIST
|
||||
* @author Rick Rivello
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-71555259
|
||||
*/
|
||||
function HTMLDocument13() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLDocument13") != null) return;
|
||||
var nodeList;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "document");
|
||||
nodeList = doc.getElementsByName("mapid");
|
||||
assertSize("Asize",1,nodeList);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLDocument13();
|
||||
}
|
||||
+110
@@ -0,0 +1,110 @@
|
||||
|
||||
/*
|
||||
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/HTMLDocument14";
|
||||
}
|
||||
|
||||
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 getElementsByName method returns the (possibly empty) collection
|
||||
of elements whose name value is given by the elementName.
|
||||
|
||||
Retrieve all the elements whose name attribute is "noid".
|
||||
Check the length of the nodelist. It should be 0 since
|
||||
the id "noid" does not exist.
|
||||
|
||||
* @author NIST
|
||||
* @author Rick Rivello
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-71555259
|
||||
*/
|
||||
function HTMLDocument14() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLDocument14") != null) return;
|
||||
var nodeList;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "document");
|
||||
nodeList = doc.getElementsByName("noid");
|
||||
assertSize("Asize",0,nodeList);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLDocument14();
|
||||
}
|
||||
Generated
Vendored
+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/HTMLFontElement01";
|
||||
}
|
||||
|
||||
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", "font");
|
||||
|
||||
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 color attribute specifies the font's color.
|
||||
|
||||
Retrieve the color 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-53532975
|
||||
*/
|
||||
function HTMLFontElement01() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLFontElement01") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var vcolor;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "font");
|
||||
nodeList = doc.getElementsByTagName("font");
|
||||
assertSize("Asize",1,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
vcolor = testNode.color;
|
||||
|
||||
assertEquals("colorLink","#000000",vcolor);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLFontElement01();
|
||||
}
|
||||
Generated
Vendored
+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/HTMLFontElement02";
|
||||
}
|
||||
|
||||
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", "font");
|
||||
|
||||
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 face attribute specifies the font's face identifier.
|
||||
|
||||
Retrieve the face 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-55715655
|
||||
* @see http://www.w3.org/TR/DOM-Level-2-HTML/html#HTML-HTMLFormElement-length
|
||||
*/
|
||||
function HTMLFontElement02() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLFontElement02") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var vface;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "font");
|
||||
nodeList = doc.getElementsByTagName("font");
|
||||
assertSize("Asize",1,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
vface = testNode.face;
|
||||
|
||||
assertEquals("faceLink","arial,helvetica",vface);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLFontElement02();
|
||||
}
|
||||
Generated
Vendored
+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/HTMLFontElement03";
|
||||
}
|
||||
|
||||
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", "font");
|
||||
|
||||
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 size attribute specifies the font's size.
|
||||
|
||||
Retrieve the size 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-90127284
|
||||
*/
|
||||
function HTMLFontElement03() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLFontElement03") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var vsize;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "font");
|
||||
nodeList = doc.getElementsByTagName("font");
|
||||
assertSize("Asize",1,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
vsize = testNode.size;
|
||||
|
||||
assertEquals("sizeLink","4",vsize);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLFontElement03();
|
||||
}
|
||||
Generated
Vendored
+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/HTMLFormElement02";
|
||||
}
|
||||
|
||||
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", "form");
|
||||
|
||||
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 length attribute specifies the number of form controls
|
||||
in the form.
|
||||
|
||||
Retrieve the length 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-40002357
|
||||
* @see http://www.w3.org/TR/DOM-Level-2-HTML/html#HTML-HTMLFormElement-length
|
||||
*/
|
||||
function HTMLFormElement02() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLFormElement02") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var vlength;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "form");
|
||||
nodeList = doc.getElementsByTagName("form");
|
||||
assertSize("Asize",1,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
vlength = testNode.length;
|
||||
|
||||
assertEquals("lengthLink",3,vlength);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLFormElement02();
|
||||
}
|
||||
Generated
Vendored
+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/HTMLFrameElement01";
|
||||
}
|
||||
|
||||
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", "frame");
|
||||
|
||||
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 frameBorder attribute specifies the request for frame borders.
|
||||
(frameBorder=1 A border is drawn)
|
||||
(FrameBorder=0 A border is not drawn)
|
||||
|
||||
Retrieve the frameBorder attribute of the first FRAME element 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-11858633
|
||||
*/
|
||||
function HTMLFrameElement01() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLFrameElement01") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var vframeborder;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "frame");
|
||||
nodeList = doc.getElementsByTagName("frame");
|
||||
assertSize("Asize",2,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
vframeborder = testNode.frameBorder;
|
||||
|
||||
assertEquals("frameborderLink","1",vframeborder);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLFrameElement01();
|
||||
}
|
||||
Generated
Vendored
+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/HTMLFrameElement02";
|
||||
}
|
||||
|
||||
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", "frame");
|
||||
|
||||
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 longDesc attribute specifies a URI designating a long description
|
||||
of this image or frame.
|
||||
|
||||
Retrieve the longDesc attribute of the first FRAME element and examine
|
||||
its value.
|
||||
|
||||
* @author NIST
|
||||
* @author Rick Rivello
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-7836998
|
||||
*/
|
||||
function HTMLFrameElement02() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLFrameElement02") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var vlongdesc;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "frame");
|
||||
nodeList = doc.getElementsByTagName("frame");
|
||||
assertSize("Asize",2,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
vlongdesc = testNode.longDesc;
|
||||
|
||||
assertEquals("longdescLink","about:blank",vlongdesc);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLFrameElement02();
|
||||
}
|
||||
Generated
Vendored
+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/HTMLFrameElement03";
|
||||
}
|
||||
|
||||
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", "frame");
|
||||
|
||||
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 marginHeight attribute specifies the frame margin height, in pixels.
|
||||
|
||||
Retrieve the marginHeight attribute of the first FRAME element 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-55569778
|
||||
*/
|
||||
function HTMLFrameElement03() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLFrameElement03") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var vmarginheight;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "frame");
|
||||
nodeList = doc.getElementsByTagName("frame");
|
||||
assertSize("Asize",2,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
vmarginheight = testNode.marginHeight;
|
||||
|
||||
assertEquals("marginheightLink","10",vmarginheight);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLFrameElement03();
|
||||
}
|
||||
Generated
Vendored
+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/HTMLFrameElement04";
|
||||
}
|
||||
|
||||
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", "frame");
|
||||
|
||||
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 marginWidth attribute specifies the frame margin width, in pixels.
|
||||
|
||||
Retrieve the marginWidth attribute of the first FRAME element 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-8369969
|
||||
*/
|
||||
function HTMLFrameElement04() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLFrameElement04") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var vmarginwidth;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "frame");
|
||||
nodeList = doc.getElementsByTagName("frame");
|
||||
assertSize("Asize",2,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
vmarginwidth = testNode.marginWidth;
|
||||
|
||||
assertEquals("marginwidthLink","5",vmarginwidth);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLFrameElement04();
|
||||
}
|
||||
Generated
Vendored
+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/HTMLFrameElement05";
|
||||
}
|
||||
|
||||
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", "frame");
|
||||
|
||||
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 specifies the frame name(object of the target
|
||||
attribute).
|
||||
|
||||
Retrieve the name attribute of the first FRAME element 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-91128709
|
||||
*/
|
||||
function HTMLFrameElement05() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLFrameElement05") != 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", "frame");
|
||||
nodeList = doc.getElementsByTagName("frame");
|
||||
assertSize("Asize",2,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
vname = testNode.name;
|
||||
|
||||
assertEquals("nameLink","Frame1",vname);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLFrameElement05();
|
||||
}
|
||||
Generated
Vendored
+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/HTMLFrameElement06";
|
||||
}
|
||||
|
||||
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", "frame");
|
||||
|
||||
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 noResize attribute specifies if the user can resize the frame. When
|
||||
true, forbid user from resizing frame.
|
||||
|
||||
Retrieve the noResize attribute of the first FRAME element 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-80766578
|
||||
*/
|
||||
function HTMLFrameElement06() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLFrameElement06") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var vnoresize;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "frame");
|
||||
nodeList = doc.getElementsByTagName("frame");
|
||||
assertSize("Asize",2,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
vnoresize = testNode.noResize;
|
||||
|
||||
assertTrue("noresizeLink",vnoresize);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLFrameElement06();
|
||||
}
|
||||
Generated
Vendored
+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/HTMLFrameElement07";
|
||||
}
|
||||
|
||||
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", "frame");
|
||||
|
||||
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 scrolling attribute specifies whether or not the frame should have
|
||||
scrollbars.
|
||||
|
||||
Retrieve the scrolling attribute of the first FRAME element 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-45411424
|
||||
*/
|
||||
function HTMLFrameElement07() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLFrameElement07") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var vscrolling;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "frame");
|
||||
nodeList = doc.getElementsByTagName("frame");
|
||||
assertSize("Asize",2,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
vscrolling = testNode.scrolling;
|
||||
|
||||
assertEquals("scrollingLink","yes",vscrolling);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLFrameElement07();
|
||||
}
|
||||
Generated
Vendored
+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/HTMLFrameElement08";
|
||||
}
|
||||
|
||||
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", "frame");
|
||||
|
||||
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 src attribute specifies a URI designating the initial frame contents.
|
||||
|
||||
Retrieve the src attribute of the first FRAME element 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-78799535
|
||||
*/
|
||||
function HTMLFrameElement08() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLFrameElement08") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var vsrc;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "frame");
|
||||
nodeList = doc.getElementsByTagName("frame");
|
||||
assertSize("Asize",2,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
vsrc = testNode.src;
|
||||
|
||||
assertURIEquals("srcLink",null,null,null,null,"right",null,null,null,vsrc);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLFrameElement08();
|
||||
}
|
||||
Generated
Vendored
+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/HTMLFrameSetElement01";
|
||||
}
|
||||
|
||||
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", "frameset");
|
||||
|
||||
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 cols attribute specifies the number of columns of frames in the
|
||||
frameset.
|
||||
|
||||
Retrieve the cols attribute of the first FRAMESET element 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-98869594
|
||||
*/
|
||||
function HTMLFrameSetElement01() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLFrameSetElement01") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var vcols;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "frameset");
|
||||
nodeList = doc.getElementsByTagName("frameset");
|
||||
assertSize("Asize",2,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
vcols = testNode.cols;
|
||||
|
||||
assertEquals("colsLink","20, 80",vcols);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLFrameSetElement01();
|
||||
}
|
||||
Generated
Vendored
+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/HTMLFrameSetElement02";
|
||||
}
|
||||
|
||||
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", "frameset");
|
||||
|
||||
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 rows attribute specifies the number of rows of frames in the
|
||||
frameset.
|
||||
|
||||
Retrieve the rows attribute of the second FRAMESET element 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-19739247
|
||||
*/
|
||||
function HTMLFrameSetElement02() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLFrameSetElement02") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var vrows;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "frameset");
|
||||
nodeList = doc.getElementsByTagName("frameset");
|
||||
assertSize("Asize",2,nodeList);
|
||||
testNode = nodeList.item(1);
|
||||
vrows = testNode.rows;
|
||||
|
||||
assertEquals("rowsLink","100, 200",vrows);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLFrameSetElement02();
|
||||
}
|
||||
+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/HTMLHRElement01";
|
||||
}
|
||||
|
||||
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", "hr");
|
||||
|
||||
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 align attribute specifies the rule alignment on the page.
|
||||
|
||||
Retrieve the align 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-15235012
|
||||
*/
|
||||
function HTMLHRElement01() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLHRElement01") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var valign;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "hr");
|
||||
nodeList = doc.getElementsByTagName("hr");
|
||||
assertSize("Asize",1,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
valign = testNode.align;
|
||||
|
||||
assertEquals("alignLink","center",valign);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLHRElement01();
|
||||
}
|
||||
+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/HTMLHRElement02";
|
||||
}
|
||||
|
||||
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", "hr");
|
||||
|
||||
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 noShade attribute specifies that the rule should be drawn as
|
||||
a solid color.
|
||||
|
||||
Retrieve the noShade 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-79813978
|
||||
*/
|
||||
function HTMLHRElement02() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLHRElement02") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var vnoshade;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "hr");
|
||||
nodeList = doc.getElementsByTagName("hr");
|
||||
assertSize("Asize",1,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
vnoshade = testNode.noShade;
|
||||
|
||||
assertTrue("noShadeLink",vnoshade);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLHRElement02();
|
||||
}
|
||||
+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/HTMLHRElement03";
|
||||
}
|
||||
|
||||
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", "hr");
|
||||
|
||||
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 size attribute specifies the height of the rule.
|
||||
|
||||
Retrieve the size 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-77612587
|
||||
*/
|
||||
function HTMLHRElement03() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLHRElement03") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var vsize;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "hr");
|
||||
nodeList = doc.getElementsByTagName("hr");
|
||||
assertSize("Asize",1,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
vsize = testNode.size;
|
||||
|
||||
assertEquals("sizeLink","5",vsize);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLHRElement03();
|
||||
}
|
||||
+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/HTMLHRElement04";
|
||||
}
|
||||
|
||||
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", "hr");
|
||||
|
||||
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 width attribute specifies the width of the rule.
|
||||
|
||||
Retrieve the width 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-87744198
|
||||
*/
|
||||
function HTMLHRElement04() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLHRElement04") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var vwidth;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "hr");
|
||||
nodeList = doc.getElementsByTagName("hr");
|
||||
assertSize("Asize",1,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
vwidth = testNode.width;
|
||||
|
||||
assertEquals("widthLink","400",vwidth);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLHRElement04();
|
||||
}
|
||||
Generated
Vendored
+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/HTMLHeadElement01";
|
||||
}
|
||||
|
||||
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", "head");
|
||||
|
||||
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 profile attribute specifies a URI designating a metadata profile.
|
||||
|
||||
Retrieve the profile 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-96921909
|
||||
*/
|
||||
function HTMLHeadElement01() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLHeadElement01") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var vprofile;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "head");
|
||||
nodeList = doc.getElementsByTagName("head");
|
||||
assertSize("Asize",1,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
vprofile = testNode.profile;
|
||||
|
||||
assertURIEquals("profileLink",null,null,null,"profile",null,null,null,null,vprofile);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLHeadElement01();
|
||||
}
|
||||
Generated
Vendored
+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/HTMLHeadingElement01";
|
||||
}
|
||||
|
||||
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", "heading");
|
||||
|
||||
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 align attribute specifies the horizontal text alignment(H1).
|
||||
|
||||
Retrieve the align 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-6796462
|
||||
*/
|
||||
function HTMLHeadingElement01() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLHeadingElement01") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var valign;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "heading");
|
||||
nodeList = doc.getElementsByTagName("h1");
|
||||
assertSize("Asize",1,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
valign = testNode.align;
|
||||
|
||||
assertEquals("alignLink","center",valign);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLHeadingElement01();
|
||||
}
|
||||
Generated
Vendored
+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/HTMLHeadingElement02";
|
||||
}
|
||||
|
||||
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", "heading");
|
||||
|
||||
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 align attribute specifies the horizontal text alignment(H2).
|
||||
|
||||
Retrieve the align 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-6796462
|
||||
*/
|
||||
function HTMLHeadingElement02() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLHeadingElement02") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var valign;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "heading");
|
||||
nodeList = doc.getElementsByTagName("h2");
|
||||
assertSize("Asize",1,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
valign = testNode.align;
|
||||
|
||||
assertEquals("alignLink","left",valign);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLHeadingElement02();
|
||||
}
|
||||
Generated
Vendored
+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/HTMLHeadingElement03";
|
||||
}
|
||||
|
||||
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", "heading");
|
||||
|
||||
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 align attribute specifies the horizontal text alignment(H3).
|
||||
|
||||
Retrieve the align 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-6796462
|
||||
*/
|
||||
function HTMLHeadingElement03() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLHeadingElement03") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var valign;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "heading");
|
||||
nodeList = doc.getElementsByTagName("h3");
|
||||
assertSize("Asize",1,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
valign = testNode.align;
|
||||
|
||||
assertEquals("alignLink","right",valign);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLHeadingElement03();
|
||||
}
|
||||
Generated
Vendored
+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/HTMLHeadingElement04";
|
||||
}
|
||||
|
||||
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", "heading");
|
||||
|
||||
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 align attribute specifies the horizontal text alignment(H4).
|
||||
|
||||
Retrieve the align 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-6796462
|
||||
*/
|
||||
function HTMLHeadingElement04() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLHeadingElement04") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var valign;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "heading");
|
||||
nodeList = doc.getElementsByTagName("h4");
|
||||
assertSize("Asize",1,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
valign = testNode.align;
|
||||
|
||||
assertEquals("alignLink","justify",valign);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLHeadingElement04();
|
||||
}
|
||||
Generated
Vendored
+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/HTMLHeadingElement05";
|
||||
}
|
||||
|
||||
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", "heading");
|
||||
|
||||
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 align attribute specifies the horizontal text alignment(H5).
|
||||
|
||||
Retrieve the align 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-6796462
|
||||
*/
|
||||
function HTMLHeadingElement05() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLHeadingElement05") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var valign;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "heading");
|
||||
nodeList = doc.getElementsByTagName("h5");
|
||||
assertSize("Asize",1,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
valign = testNode.align;
|
||||
|
||||
assertEquals("alignLink","center",valign);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLHeadingElement05();
|
||||
}
|
||||
Generated
Vendored
+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/HTMLHeadingElement06";
|
||||
}
|
||||
|
||||
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", "heading");
|
||||
|
||||
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 align attribute specifies the horizontal text alignment(H6).
|
||||
|
||||
Retrieve the align 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-6796462
|
||||
*/
|
||||
function HTMLHeadingElement06() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLHeadingElement06") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var valign;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "heading");
|
||||
nodeList = doc.getElementsByTagName("h6");
|
||||
assertSize("Asize",1,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
valign = testNode.align;
|
||||
|
||||
assertEquals("alignLink","left",valign);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLHeadingElement06();
|
||||
}
|
||||
Generated
Vendored
+124
@@ -0,0 +1,124 @@
|
||||
|
||||
/*
|
||||
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/HTMLHtmlElement01";
|
||||
}
|
||||
|
||||
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", "html");
|
||||
|
||||
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 version attribute specifies version information about the document's
|
||||
DTD.
|
||||
|
||||
Retrieve the version attribute and examine its value.
|
||||
|
||||
Test is only applicable to HTML, version attribute is not supported in XHTML.
|
||||
|
||||
* @author NIST
|
||||
* @author Mary Brady
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-9383775
|
||||
*/
|
||||
function HTMLHtmlElement01() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLHtmlElement01") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var vversion;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "html");
|
||||
nodeList = doc.getElementsByTagName("html");
|
||||
assertSize("Asize",1,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
vversion = testNode.version;
|
||||
|
||||
|
||||
if(
|
||||
|
||||
(builder.contentType == "text/html")
|
||||
|
||||
) {
|
||||
assertEquals("versionLink","-//W3C//DTD HTML 4.01 Transitional//EN",vversion);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLHtmlElement01();
|
||||
}
|
||||
Generated
Vendored
+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/HTMLIFrameElement01";
|
||||
}
|
||||
|
||||
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", "iframe");
|
||||
|
||||
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 align attribute aligns this object(vertically or horizontally with
|
||||
respect to its surrounding text.
|
||||
|
||||
Retrieve the align attribute of the first IFRAME element 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-11309947
|
||||
*/
|
||||
function HTMLIFrameElement01() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLIFrameElement01") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var valign;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "iframe");
|
||||
nodeList = doc.getElementsByTagName("iframe");
|
||||
assertSize("Asize",1,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
valign = testNode.align;
|
||||
|
||||
assertEquals("alignLink","top",valign);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLIFrameElement01();
|
||||
}
|
||||
Generated
Vendored
+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/HTMLIFrameElement02";
|
||||
}
|
||||
|
||||
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", "iframe");
|
||||
|
||||
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 frameBorder attribute specifies the request for frame borders.
|
||||
(frameBorder=1 A border is drawn)
|
||||
(FrameBorder=0 A border is not drawn)
|
||||
|
||||
Retrieve the frameBorder attribute of the first IFRAME element 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-22463410
|
||||
*/
|
||||
function HTMLIFrameElement02() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLIFrameElement02") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var vframeborder;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "iframe");
|
||||
nodeList = doc.getElementsByTagName("iframe");
|
||||
assertSize("Asize",1,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
vframeborder = testNode.frameBorder;
|
||||
|
||||
assertEquals("frameborderLink","1",vframeborder);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLIFrameElement02();
|
||||
}
|
||||
Generated
Vendored
+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/HTMLIFrameElement04";
|
||||
}
|
||||
|
||||
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", "iframe");
|
||||
|
||||
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 longDesc attribute specifies a URI designating a long description
|
||||
of this image or frame.
|
||||
|
||||
Retrieve the longDesc attribute of the first IFRAME element and examine
|
||||
its value.
|
||||
|
||||
* @author NIST
|
||||
* @author Rick Rivello
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-70472105
|
||||
*/
|
||||
function HTMLIFrameElement04() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLIFrameElement04") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var vlongdesc;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "iframe");
|
||||
nodeList = doc.getElementsByTagName("iframe");
|
||||
assertSize("Asize",1,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
vlongdesc = testNode.longDesc;
|
||||
|
||||
assertEquals("longdescLink","about:blank",vlongdesc);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLIFrameElement04();
|
||||
}
|
||||
Generated
Vendored
+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/HTMLIFrameElement05";
|
||||
}
|
||||
|
||||
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", "iframe");
|
||||
|
||||
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 marginWidth attribute specifies the frame margin width, in pixels.
|
||||
|
||||
Retrieve the marginWidth attribute of the first FRAME element 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-66486595
|
||||
*/
|
||||
function HTMLIFrameElement05() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLIFrameElement05") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var vmarginwidth;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "iframe");
|
||||
nodeList = doc.getElementsByTagName("iframe");
|
||||
assertSize("Asize",1,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
vmarginwidth = testNode.marginWidth;
|
||||
|
||||
assertEquals("marginwidthLink","5",vmarginwidth);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLIFrameElement05();
|
||||
}
|
||||
Generated
Vendored
+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/HTMLIFrameElement06";
|
||||
}
|
||||
|
||||
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", "iframe");
|
||||
|
||||
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 marginHeight attribute specifies the frame margin height, in pixels.
|
||||
|
||||
Retrieve the marginHeight attribute of the first IFRAME element 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-91371294
|
||||
*/
|
||||
function HTMLIFrameElement06() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLIFrameElement06") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var vmarginheight;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "iframe");
|
||||
nodeList = doc.getElementsByTagName("iframe");
|
||||
assertSize("Asize",1,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
vmarginheight = testNode.marginHeight;
|
||||
|
||||
assertEquals("marginheightLink","10",vmarginheight);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLIFrameElement06();
|
||||
}
|
||||
Generated
Vendored
+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/HTMLIFrameElement08";
|
||||
}
|
||||
|
||||
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", "iframe");
|
||||
|
||||
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 scrolling attribute specifies whether or not the frame should have
|
||||
scrollbars.
|
||||
|
||||
Retrieve the scrolling attribute of the first FRAME element 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-36369822
|
||||
*/
|
||||
function HTMLIFrameElement08() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLIFrameElement08") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var vscrolling;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "iframe");
|
||||
nodeList = doc.getElementsByTagName("iframe");
|
||||
assertSize("Asize",1,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
vscrolling = testNode.scrolling;
|
||||
|
||||
assertEquals("scrollingLink","yes",vscrolling);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLIFrameElement08();
|
||||
}
|
||||
Generated
Vendored
+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/HTMLImageElement01";
|
||||
}
|
||||
|
||||
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", "img");
|
||||
|
||||
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 specifies the name of the element.
|
||||
|
||||
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-47534097
|
||||
*/
|
||||
function HTMLImageElement01() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLImageElement01") != 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", "img");
|
||||
nodeList = doc.getElementsByTagName("img");
|
||||
assertSize("Asize",1,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
vname = testNode.name;
|
||||
|
||||
assertEquals("nameLink","IMAGE-1",vname);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLImageElement01();
|
||||
}
|
||||
Generated
Vendored
+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/HTMLImageElement02";
|
||||
}
|
||||
|
||||
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", "img");
|
||||
|
||||
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 align attribute aligns this object with respect to its surrounding
|
||||
text.
|
||||
|
||||
Retrieve the align 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-3211094
|
||||
*/
|
||||
function HTMLImageElement02() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLImageElement02") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var valign;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "img");
|
||||
nodeList = doc.getElementsByTagName("img");
|
||||
assertSize("Asize",1,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
valign = testNode.align;
|
||||
|
||||
assertEquals("alignLink","middle",valign);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLImageElement02();
|
||||
}
|
||||
Generated
Vendored
+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/HTMLImageElement03";
|
||||
}
|
||||
|
||||
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", "img");
|
||||
|
||||
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 alternative text for user agenst 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-95636861
|
||||
*/
|
||||
function HTMLImageElement03() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLImageElement03") != 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", "img");
|
||||
nodeList = doc.getElementsByTagName("img");
|
||||
assertSize("Asize",1,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
valt = testNode.alt;
|
||||
|
||||
assertEquals("altLink","DTS IMAGE LOGO",valt);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLImageElement03();
|
||||
}
|
||||
Generated
Vendored
+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/HTMLImageElement04";
|
||||
}
|
||||
|
||||
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", "img");
|
||||
|
||||
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 border attribute specifies the width of the border around the image.
|
||||
|
||||
Retrieve the border 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-136671
|
||||
*/
|
||||
function HTMLImageElement04() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLImageElement04") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var vborder;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "img");
|
||||
nodeList = doc.getElementsByTagName("img");
|
||||
assertSize("Asize",1,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
vborder = testNode.border;
|
||||
|
||||
assertEquals("borderLink","0",vborder);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLImageElement04();
|
||||
}
|
||||
Generated
Vendored
+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/HTMLImageElement08";
|
||||
}
|
||||
|
||||
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", "img");
|
||||
|
||||
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 longDesc attribute contains an URI designating a long description
|
||||
of this image or frame.
|
||||
|
||||
Retrieve the longDesc 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-77376969
|
||||
*/
|
||||
function HTMLImageElement08() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLImageElement08") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var vlongdesc;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "img");
|
||||
nodeList = doc.getElementsByTagName("img");
|
||||
assertSize("Asize",1,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
vlongdesc = testNode.longDesc;
|
||||
|
||||
assertURIEquals("longDescLink",null,null,null,"desc.html",null,null,null,null,vlongdesc);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLImageElement08();
|
||||
}
|
||||
Generated
Vendored
+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/HTMLImageElement10";
|
||||
}
|
||||
|
||||
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", "img");
|
||||
|
||||
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 useMap attribute specifies to use the client-side image map.
|
||||
|
||||
Retrieve the useMap 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-35981181
|
||||
*/
|
||||
function HTMLImageElement10() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLImageElement10") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var vusemap;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "img");
|
||||
nodeList = doc.getElementsByTagName("img");
|
||||
assertSize("Asize",1,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
vusemap = testNode.useMap;
|
||||
|
||||
assertEquals("useMapLink","#DTS-MAP",vusemap);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLImageElement10();
|
||||
}
|
||||
Generated
Vendored
+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/HTMLImageElement14";
|
||||
}
|
||||
|
||||
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", "img");
|
||||
|
||||
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 lowSrc attribute specifies an URI designating a long description of
|
||||
this image or frame.
|
||||
|
||||
Retrieve the lowSrc attribute of the first IMG element and examine
|
||||
its value. Should be "" since lowSrc is not a valid attribute for IMG.
|
||||
|
||||
* @author NIST
|
||||
* @author Rick Rivello
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-91256910
|
||||
*/
|
||||
function HTMLImageElement14() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLImageElement14") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var vlow;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "img");
|
||||
nodeList = doc.getElementsByTagName("img");
|
||||
assertSize("Asize",1,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
vlow = testNode.lowSrc;
|
||||
|
||||
assertEquals("lowLink","",vlow);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLImageElement14();
|
||||
}
|
||||
Generated
Vendored
+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/HTMLInputElement06";
|
||||
}
|
||||
|
||||
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", "input");
|
||||
|
||||
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 align attribute aligns this object(vertically or horizontally)
|
||||
with respect to the surrounding text.
|
||||
|
||||
Retrieve the align attribute of the 4th INPUT 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-96991182
|
||||
*/
|
||||
function HTMLInputElement06() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLInputElement06") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var valign;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "input");
|
||||
nodeList = doc.getElementsByTagName("input");
|
||||
assertSize("Asize",9,nodeList);
|
||||
testNode = nodeList.item(3);
|
||||
valign = testNode.align;
|
||||
|
||||
assertEquals("alignLink","bottom".toLowerCase(),valign.toLowerCase());
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLInputElement06();
|
||||
}
|
||||
Generated
Vendored
+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/HTMLInputElement17";
|
||||
}
|
||||
|
||||
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", "input");
|
||||
|
||||
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 useMap attribute specifies the use of the client-side image map.
|
||||
|
||||
Retrieve the useMap attribute of the 8th INPUT 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-32463706
|
||||
*/
|
||||
function HTMLInputElement17() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLInputElement17") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var vusemap;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "input");
|
||||
nodeList = doc.getElementsByTagName("input");
|
||||
assertSize("Asize",9,nodeList);
|
||||
testNode = nodeList.item(7);
|
||||
vusemap = testNode.useMap;
|
||||
|
||||
assertEquals("usemapLink","#submit-map",vusemap);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLInputElement17();
|
||||
}
|
||||
Generated
Vendored
+122
@@ -0,0 +1,122 @@
|
||||
|
||||
/*
|
||||
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/HTMLIsIndexElement01";
|
||||
}
|
||||
|
||||
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", "isindex");
|
||||
|
||||
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-87069980
|
||||
*/
|
||||
function HTMLIsIndexElement01() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLIsIndexElement01") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var vform;
|
||||
var fNode;
|
||||
var doc;
|
||||
var prompt;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "isindex");
|
||||
nodeList = doc.getElementsByTagName("isindex");
|
||||
testNode = nodeList.item(0);
|
||||
assertNotNull("notnull",testNode);
|
||||
prompt = testNode.prompt;
|
||||
|
||||
assertEquals("IsIndex.Prompt","New Employee: ",prompt);
|
||||
fNode = testNode.form;
|
||||
|
||||
assertNotNull("formNotNull",fNode);
|
||||
vform = fNode.id;
|
||||
|
||||
assertEquals("formLink","form1",vform);
|
||||
assertSize("Asize",2,nodeList);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLIsIndexElement01();
|
||||
}
|
||||
Generated
Vendored
+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/HTMLIsIndexElement02";
|
||||
}
|
||||
|
||||
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", "isindex");
|
||||
|
||||
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-87069980
|
||||
*/
|
||||
function HTMLIsIndexElement02() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLIsIndexElement02") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var vform;
|
||||
var doc;
|
||||
var prompt;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "isindex");
|
||||
nodeList = doc.getElementsByTagName("isindex");
|
||||
testNode = nodeList.item(1);
|
||||
assertNotNull("notnull",testNode);
|
||||
prompt = testNode.prompt;
|
||||
|
||||
assertEquals("IsIndex.Prompt","Old Employee: ",prompt);
|
||||
vform = testNode.form;
|
||||
|
||||
assertNull("formNullLink",vform);
|
||||
assertSize("Asize",2,nodeList);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLIsIndexElement02();
|
||||
}
|
||||
Generated
Vendored
+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/HTMLIsIndexElement03";
|
||||
}
|
||||
|
||||
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", "isindex");
|
||||
|
||||
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 prompt attribute specifies the prompt message.
|
||||
|
||||
Retrieve the prompt attribute of the 1st isindex 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-33589862
|
||||
*/
|
||||
function HTMLIsIndexElement03() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLIsIndexElement03") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var vprompt;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "isindex");
|
||||
nodeList = doc.getElementsByTagName("isindex");
|
||||
assertSize("Asize",2,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
vprompt = testNode.prompt;
|
||||
|
||||
assertEquals("promptLink","New Employee: ",vprompt);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLIsIndexElement03();
|
||||
}
|
||||
+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/HTMLLIElement01";
|
||||
}
|
||||
|
||||
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", "li");
|
||||
|
||||
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 is a list item bullet style.
|
||||
|
||||
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-52387668
|
||||
*/
|
||||
function HTMLLIElement01() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLLIElement01") != 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", "li");
|
||||
nodeList = doc.getElementsByTagName("li");
|
||||
assertSize("Asize",2,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
vtype = testNode.type;
|
||||
|
||||
assertEquals("typeLink","square",vtype);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLLIElement01();
|
||||
}
|
||||
Generated
Vendored
+117
@@ -0,0 +1,117 @@
|
||||
|
||||
/*
|
||||
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/HTMLLegendElement01";
|
||||
}
|
||||
|
||||
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", "legend");
|
||||
|
||||
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 from the first LEGEND 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-29594519
|
||||
*/
|
||||
function HTMLLegendElement01() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLLegendElement01") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var vform;
|
||||
var fNode;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "legend");
|
||||
nodeList = doc.getElementsByTagName("legend");
|
||||
assertSize("Asize",2,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
fNode = testNode.form;
|
||||
|
||||
vform = fNode.id;
|
||||
|
||||
assertEquals("formLink","form1",vform);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLLegendElement01();
|
||||
}
|
||||
Generated
Vendored
+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/HTMLLegendElement02";
|
||||
}
|
||||
|
||||
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", "legend");
|
||||
|
||||
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 second ELEMENT and examine its form element.
|
||||
|
||||
* @author NIST
|
||||
* @author Mary Brady
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-29594519
|
||||
*/
|
||||
function HTMLLegendElement02() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLLegendElement02") != 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", "legend");
|
||||
nodeList = doc.getElementsByTagName("legend");
|
||||
assertSize("Asize",2,nodeList);
|
||||
testNode = nodeList.item(1);
|
||||
vform = testNode.form;
|
||||
|
||||
assertNull("formNullLink",vform);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLLegendElement02();
|
||||
}
|
||||
Generated
Vendored
+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/HTMLLegendElement03";
|
||||
}
|
||||
|
||||
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", "legend");
|
||||
|
||||
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-11297832
|
||||
*/
|
||||
function HTMLLegendElement03() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLLegendElement03") != 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", "legend");
|
||||
nodeList = doc.getElementsByTagName("legend");
|
||||
assertSize("Asize",2,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
vaccesskey = testNode.accessKey;
|
||||
|
||||
assertEquals("accesskeyLink","b",vaccesskey);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLLegendElement03();
|
||||
}
|
||||
Generated
Vendored
+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/HTMLLegendElement04";
|
||||
}
|
||||
|
||||
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", "legend");
|
||||
|
||||
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 align attribute specifies the text alignment relative to FIELDSET.
|
||||
|
||||
Retrieve the align 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-79538067
|
||||
*/
|
||||
function HTMLLegendElement04() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLLegendElement04") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var valign;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "legend");
|
||||
nodeList = doc.getElementsByTagName("legend");
|
||||
assertSize("Asize",2,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
valign = testNode.align;
|
||||
|
||||
assertEquals("alignLink","top",valign);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLLegendElement04();
|
||||
}
|
||||
Generated
Vendored
+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/HTMLLinkElement02";
|
||||
}
|
||||
|
||||
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", "link");
|
||||
|
||||
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 charset attribute indicates the character encoding of the linked
|
||||
resource.
|
||||
|
||||
Retrieve the charset 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-63954491
|
||||
*/
|
||||
function HTMLLinkElement02() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLLinkElement02") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var vcharset;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "link");
|
||||
nodeList = doc.getElementsByTagName("link");
|
||||
assertSize("Asize",2,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
vcharset = testNode.charset;
|
||||
|
||||
assertEquals("charsetLink","Latin-1",vcharset);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLLinkElement02();
|
||||
}
|
||||
Generated
Vendored
+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/HTMLLinkElement07";
|
||||
}
|
||||
|
||||
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", "link");
|
||||
|
||||
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 rev attribute specifies the reverse link type.
|
||||
|
||||
Retrieve the rev 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-40715461
|
||||
*/
|
||||
function HTMLLinkElement07() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLLinkElement07") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var vrev;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "link");
|
||||
nodeList = doc.getElementsByTagName("link");
|
||||
assertSize("Asize",2,nodeList);
|
||||
testNode = nodeList.item(1);
|
||||
vrev = testNode.rev;
|
||||
|
||||
assertEquals("revLink","stylesheet",vrev);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLLinkElement07();
|
||||
}
|
||||
Generated
Vendored
+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/HTMLLinkElement09";
|
||||
}
|
||||
|
||||
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", "link2");
|
||||
|
||||
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 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-84183095
|
||||
*/
|
||||
function HTMLLinkElement09() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLLinkElement09") != 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", "link2");
|
||||
nodeList = doc.getElementsByTagName("link");
|
||||
assertSize("Asize",2,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
vtarget = testNode.target;
|
||||
|
||||
assertEquals("targetLink","dynamic",vtarget);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLLinkElement09();
|
||||
}
|
||||
Generated
Vendored
+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/HTMLMapElement01";
|
||||
}
|
||||
|
||||
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", "map");
|
||||
|
||||
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 areas attribute is a list of areas defined for the image map.
|
||||
|
||||
Retrieve the areas attribute and find the number of areas defined.
|
||||
|
||||
* @author NIST
|
||||
* @author Mary Brady
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-71838730
|
||||
*/
|
||||
function HTMLMapElement01() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLMapElement01") != null) return;
|
||||
var nodeList;
|
||||
var areasnodeList;
|
||||
var testNode;
|
||||
var vareas;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "map");
|
||||
nodeList = doc.getElementsByTagName("map");
|
||||
assertSize("Asize",1,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
areasnodeList = testNode.areas;
|
||||
|
||||
vareas = areasnodeList.length;
|
||||
|
||||
assertEquals("areasLink",3,vareas);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLMapElement01();
|
||||
}
|
||||
Generated
Vendored
+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/HTMLMenuElement01";
|
||||
}
|
||||
|
||||
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", "menu");
|
||||
|
||||
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 compact attribute specifies a boolean value on whether to display
|
||||
the list more compactly.
|
||||
|
||||
Retrieve the compact 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-68436464
|
||||
*/
|
||||
function HTMLMenuElement01() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLMenuElement01") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var vcompact;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "menu");
|
||||
nodeList = doc.getElementsByTagName("menu");
|
||||
assertSize("Asize",1,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
vcompact = testNode.compact;
|
||||
|
||||
assertTrue("compactLink",vcompact);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLMenuElement01();
|
||||
}
|
||||
Generated
Vendored
+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/HTMLOListElement01";
|
||||
}
|
||||
|
||||
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", "olist");
|
||||
|
||||
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 compact attribute specifies a boolean value on whether to display
|
||||
the list more compactly.
|
||||
|
||||
Retrieve the compact 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-76448506
|
||||
*/
|
||||
function HTMLOListElement01() {
|
||||
var success;
|
||||
if(checkInitialization(builder, "HTMLOListElement01") != null) return;
|
||||
var nodeList;
|
||||
var testNode;
|
||||
var vcompact;
|
||||
var doc;
|
||||
|
||||
var docRef = null;
|
||||
if (typeof(this.doc) != 'undefined') {
|
||||
docRef = this.doc;
|
||||
}
|
||||
doc = load(docRef, "doc", "olist");
|
||||
nodeList = doc.getElementsByTagName("ol");
|
||||
assertSize("Asize",1,nodeList);
|
||||
testNode = nodeList.item(0);
|
||||
vcompact = testNode.compact;
|
||||
|
||||
assertTrue("compactLink",vcompact);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function runTest() {
|
||||
HTMLOListElement01();
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user