| Index: LayoutTests/dom/html/level1/core/hc_nodeinsertbefore.js
|
| diff --git a/LayoutTests/dom/html/level1/core/hc_nodeinsertbefore.js b/LayoutTests/dom/html/level1/core/hc_nodeinsertbefore.js
|
| index f73bd6d0e9a1207326180afa898bb8cdd77cc486..1b5b90c3eee380935d4f90c31776743a1d78b171 100644
|
| --- a/LayoutTests/dom/html/level1/core/hc_nodeinsertbefore.js
|
| +++ b/LayoutTests/dom/html/level1/core/hc_nodeinsertbefore.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,12 +67,11 @@ function loadComplete() {
|
| }
|
| }
|
|
|
| -
|
| /**
|
| -*
|
| +*
|
| The "insertBefore(newChild,refChild)" method inserts the
|
| - node "newChild" before the node "refChild".
|
| -
|
| + node "newChild" before the node "refChild".
|
| +
|
| Insert a newly created Element node before the second
|
| sup element in the document and check the "newChild"
|
| and "refChild" after insertion for correct placement.
|
| @@ -112,7 +106,7 @@ function hc_nodeinsertbefore() {
|
| expected[6] = "acronym";
|
|
|
| var nodeType;
|
| -
|
| +
|
| var docRef = null;
|
| if (typeof(this.doc) != 'undefined') {
|
| docRef = this.doc;
|
| @@ -130,23 +124,19 @@ function hc_nodeinsertbefore() {
|
| child = childList.item(indexN10091);
|
| nodeType = child.nodeType;
|
|
|
| -
|
| - if(
|
| - (1 == nodeType)
|
| - ) {
|
| - childName = child.nodeName;
|
| + if(
|
| + (1 == nodeType)
|
| + ) {
|
| + childName = child.nodeName;
|
|
|
| actual[actual.length] = childName;
|
|
|
| - }
|
| -
|
| - }
|
| - assertEqualsListAutoCase("element", "nodeNames",expected,actual);
|
| -
|
| -}
|
| -
|
| + }
|
|
|
| + }
|
| + assertEqualsListAutoCase("element", "nodeNames",expected,actual);
|
|
|
| +}
|
|
|
| function runTest() {
|
| hc_nodeinsertbefore();
|
|
|