| Index: LayoutTests/dom/xhtml/level1/core/hc_elementnotfounderr.js
|
| diff --git a/LayoutTests/dom/xhtml/level1/core/hc_elementnotfounderr.js b/LayoutTests/dom/xhtml/level1/core/hc_elementnotfounderr.js
|
| index ad15587a247363f8802ce5fe6fe7f3b6ba499ec3..83b6bf5258812c419092f7856198cbbbb6f2e38c 100644
|
| --- a/LayoutTests/dom/xhtml/level1/core/hc_elementnotfounderr.js
|
| +++ b/LayoutTests/dom/xhtml/level1/core/hc_elementnotfounderr.js
|
| @@ -1,17 +1,14 @@
|
| -
|
| /*
|
| -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.
|
| +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
|
| @@ -41,26 +38,24 @@ function setUpPage() {
|
| builder = createConfiguredBuilder();
|
|
|
| docsLoaded = 0;
|
| -
|
| +
|
| var docRef = null;
|
| if (typeof(this.doc) != 'undefined') {
|
| docRef = this.doc;
|
| }
|
| docsLoaded += preload(docRef, "doc", "hc_staff");
|
| -
|
| +
|
| if (docsLoaded == 1) {
|
| setUpPageStatus = 'complete';
|
| }
|
| } catch(ex) {
|
| - catchInitializationError(builder, ex);
|
| + catchInitializationError(builder, ex);
|
| setUpPageStatus = 'complete';
|
| }
|
| }
|
|
|
| -
|
| -
|
| //
|
| -// This method is called on the completion of
|
| +// This method is called on the completion of
|
| // each asychronous load started in setUpTests.
|
| //
|
| // When every synchronous loaded document has completed,
|
| @@ -72,17 +67,16 @@ function loadComplete() {
|
| }
|
| }
|
|
|
| -
|
| /**
|
| -*
|
| +*
|
| The "removeAttributeNode(oldAttr)" method raises a
|
| NOT_FOUND_ERR DOMException if the "oldAttr" attribute
|
| is not an attribute of the element.
|
| -
|
| +
|
| Retrieve the last employee and attempt to remove
|
| a non existing attribute node. This should cause the
|
| intended exception to be raised. This test makes use
|
| - of the "createAttribute(name)" method from the Document
|
| + of the "createAttribute(name)" method from the Document
|
| interface.
|
|
|
| * @author Curt Arnold
|
| @@ -99,7 +93,7 @@ function hc_elementnotfounderr() {
|
| var addressElementList;
|
| var testAddress;
|
| var attrAddress;
|
| -
|
| +
|
| var docRef = null;
|
| if (typeof(this.doc) != 'undefined') {
|
| docRef = this.doc;
|
| @@ -108,23 +102,20 @@ function hc_elementnotfounderr() {
|
| addressElementList = doc.getElementsByTagName("acronym");
|
| testAddress = addressElementList.item(4);
|
| oldAttribute = doc.createAttribute("title");
|
| -
|
| - {
|
| - success = false;
|
| - try {
|
| +
|
| + {
|
| + success = false;
|
| + try {
|
| attrAddress = testAddress.removeAttributeNode(oldAttribute);
|
| }
|
| - catch(ex) {
|
| + catch(ex) {
|
| success = (typeof(ex.code) != 'undefined' && ex.code == 8);
|
| - }
|
| - assertTrue("throw_NOT_FOUND_ERR",success);
|
| - }
|
| + }
|
| + assertTrue("throw_NOT_FOUND_ERR",success);
|
| + }
|
|
|
| }
|
|
|
| -
|
| -
|
| -
|
| function runTest() {
|
| hc_elementnotfounderr();
|
| }
|
|
|