Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(175)

Unified Diff: LayoutTests/dom/xhtml/level3/core/nodereplacechild27.js

Issue 756123002: Remove tabs and trailing whitspace in LayoutTests/dom/.../*.js (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: LayoutTests/dom/xhtml/level3/core/nodereplacechild27.js
diff --git a/LayoutTests/dom/xhtml/level3/core/nodereplacechild27.js b/LayoutTests/dom/xhtml/level3/core/nodereplacechild27.js
index 33bbfadd32d68bfcbc9e6bde752818930e9f360c..35feb04f8a9263bb77940bc231d90cf4c981ca98 100644
--- a/LayoutTests/dom/xhtml/level3/core/nodereplacechild27.js
+++ b/LayoutTests/dom/xhtml/level3/core/nodereplacechild27.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
@@ -43,32 +40,30 @@ function setUpPage() {
setImplementationAttribute("expandEntityReferences", false);
docsLoaded = 0;
-
+
var docRef = null;
if (typeof(this.doc) != 'undefined') {
docRef = this.doc;
}
docsLoaded += preload(docRef, "doc", "hc_staff");
-
+
var doc2Ref = null;
if (typeof(this.doc2) != 'undefined') {
doc2Ref = this.doc2;
}
docsLoaded += preload(doc2Ref, "doc2", "hc_staff");
-
+
if (docsLoaded == 2) {
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,
@@ -80,14 +75,13 @@ function loadComplete() {
}
}
-
/**
-*
- The method replaceChild replaces the child node oldChild with newChild in the list of
- children, and returns the oldChild node.
+*
+ The method replaceChild replaces the child node oldChild with newChild in the list of
+ children, and returns the oldChild node.
- Using replaceChild on an Element node attempt to replace an Element node with another
- Element from another document and verify if a WRONG_DOCUMENT_ERR gets thrown.
+ Using replaceChild on an Element node attempt to replace an Element node with another
+ Element from another document and verify if a WRONG_DOCUMENT_ERR gets thrown.
* @author IBM
* @author Neil Delima
@@ -105,7 +99,7 @@ function nodereplacechild27() {
var firstChild;
var nodeName;
var replaced;
-
+
var docRef = null;
if (typeof(this.doc) != 'undefined') {
docRef = this.doc;
@@ -115,7 +109,6 @@ function nodereplacechild27() {
elem = childList.item(0);
firstChild = elem.firstChild;
-
var doc2Ref = null;
if (typeof(this.doc2) != 'undefined') {
doc2Ref = this.doc2;
@@ -123,23 +116,20 @@ function nodereplacechild27() {
doc2 = load(doc2Ref, "doc2", "hc_staff");
childList2 = doc2.getElementsByTagNameNS("*","p");
elem2 = childList2.item(0);
-
- {
- success = false;
- try {
+
+ {
+ success = false;
+ try {
replaced = elem.replaceChild(elem2,firstChild);
}
- catch(ex) {
+ catch(ex) {
success = (typeof(ex.code) != 'undefined' && ex.code == 4);
- }
- assertTrue("WRONG_DOCUMENT_ERR_nodereplacechild27",success);
- }
+ }
+ assertTrue("WRONG_DOCUMENT_ERR_nodereplacechild27",success);
+ }
}
-
-
-
function runTest() {
nodereplacechild27();
}
« no previous file with comments | « LayoutTests/dom/xhtml/level3/core/nodereplacechild26.js ('k') | LayoutTests/dom/xhtml/level3/core/nodereplacechild28.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698