| Index: LayoutTests/dom/xhtml/level3/core/documentadoptnode21.js
|
| diff --git a/LayoutTests/dom/xhtml/level3/core/documentadoptnode21.js b/LayoutTests/dom/xhtml/level3/core/documentadoptnode21.js
|
| index e3582a059dee6352d705ad2b6d278a7bbab8c9c6..b7424f728a889cd55f2b76a018d40607dc9f53da 100644
|
| --- a/LayoutTests/dom/xhtml/level3/core/documentadoptnode21.js
|
| +++ b/LayoutTests/dom/xhtml/level3/core/documentadoptnode21.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
|
| @@ -42,26 +39,24 @@ function setUpPage() {
|
| setImplementationAttribute("namespaceAware", true);
|
|
|
| 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,
|
| @@ -73,16 +68,15 @@ function loadComplete() {
|
| }
|
| }
|
|
|
| -
|
| /**
|
| -*
|
| - The adoptNode method changes the ownerDocument of a node, its children, as well as the
|
| - attached attribute nodes if there are any. If the node has a parent it is first removed
|
| - from its parent child list.
|
| -
|
| - Invoke the adoptNode method on this Document with the source node being an existing attribute
|
| +*
|
| + The adoptNode method changes the ownerDocument of a node, its children, as well as the
|
| + attached attribute nodes if there are any. If the node has a parent it is first removed
|
| + from its parent child list.
|
| +
|
| + Invoke the adoptNode method on this Document with the source node being an existing attribute
|
| that is a part of this Document. Verify that the returned adopted node's nodeName, nodeValue
|
| - and nodeType are as expected and that the ownerElement attribute of the returned attribute node
|
| + and nodeType are as expected and that the ownerElement attribute of the returned attribute node
|
| was set to null.
|
|
|
| * @author IBM
|
| @@ -102,7 +96,7 @@ function documentadoptnode21() {
|
| var nodeName;
|
| var nodeType;
|
| var nodeValue;
|
| -
|
| +
|
| var docRef = null;
|
| if (typeof(this.doc) != 'undefined') {
|
| docRef = this.doc;
|
| @@ -124,11 +118,8 @@ function documentadoptnode21() {
|
| assertEquals("documentadoptnode21_nodeType",2,nodeType);
|
| assertEquals("documentadoptnode21_nodeValue","Yes",nodeValue);
|
| assertNull("documentadoptnode21_ownerDoc",attrOwnerElem);
|
| -
|
| -}
|
| -
|
| -
|
|
|
| +}
|
|
|
| function runTest() {
|
| documentadoptnode21();
|
|
|